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

Fix timeout handler segfault #393

Merged
merged 4 commits into from
May 14, 2018
Merged

Fix timeout handler segfault #393

merged 4 commits into from
May 14, 2018

Conversation

julianoes
Copy link
Collaborator

This fixes the rare case where the "next" timer was deleted during the timeout callback which caused a segfault when iterating (++).

It turns out that we trigger a segfault if we remove the next timer in
the list during a callback.

This test adds a segfault for the unit test that needs to be fixed.
We should not continue the loop once some entry has been removed from
the map.
When the map has been invalidated we should not bail out completely
because some other timers might be due in this iteration. Instead we
should start over and work  our way through them again.
@JonasVautherin JonasVautherin merged commit e1b5dfb into develop May 14, 2018
@JonasVautherin JonasVautherin deleted the fix-timeout-handler branch May 14, 2018 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants