-
Notifications
You must be signed in to change notification settings - Fork 97
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
TimerQueue crash #346
Comments
please provide a stack trace from such a crash |
I will send you a trace but only tell me if this is a possible bug. The timer funcion executes doTimer but not drachtio::LockingTimerQueue::doTimer so is violating the mutex and also crash void timer_function( void rm, su_timer_t * timer, void p ) {
} |
Log of crash |
stack trace? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes the service crash due to pointer exception in function TimerQueue::remove because entry->m_prev and entry->m_next are null pointers.
I think that something is wrong in the function doTimer. In the following code when !expired, set both links prev and next of ptr to NULL
and after, makes this ptr = ptr->m_next so original ptr is orphan. This produce that when remove is invoked with this ptr, application crash
The text was updated successfully, but these errors were encountered: