Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null function pointer call in OnTVServiceCallback #184

Open
popcornmix opened this issue Jan 22, 2016 · 1 comment
Open

Null function pointer call in OnTVServiceCallback #184

popcornmix opened this issue Jan 22, 2016 · 1 comment
Labels

Comments

@popcornmix
Copy link
Contributor

This backtrace showed up in this forum post.

Presumably:

m_callback->HandlePhysicalAddressChanged(iNewAddress);

was called with m_callback->HandlePhysicalAddressChanged being NULL.
I assume a:

if (m_callback && m_callback->HandlePhysicalAddressChanged)
  m_callback->HandlePhysicalAddressChanged(iNewAddress);

would be the simple way of avoiding the crash, but there may be a better solution.

@opdenkamp
Copy link
Contributor

Looks like CEC::CCECClient::Process didn't get stopped correctly there too, both threads 13 and 15 are blocked in it.

What I think is happening is that it's not hitting this line for some reason https://github.com/Pulse-Eight/libcec/blob/master/src/libcec/adapter/RPi/RPiCECAdapterCommunication.cpp#L357 which should unregister the callback. The only way for m_callback to become NULL is when the connection gets closed.

I'll have to take another look at this one

@opdenkamp opdenkamp added the bug label Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants