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 crash in IceTransport::TimeoutCallback with libnice #1103

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

paullouisageneau
Copy link
Owner

This PR fixes a possible race condition when destroying IceTransport with libnice: the destructor disarms the timer, the nice agent changes states and rearms the timer, then the destructor destroys the nice agent. It would result in IceTransport::TimeoutCallback being called later for a destroyed object.

It should fix #1102

@paullouisageneau paullouisageneau force-pushed the fix-crash-timeoutcallback-nice branch 2 times, most recently from c3535fb to a390eac Compare February 26, 2024 09:29
@paullouisageneau paullouisageneau force-pushed the fix-crash-timeoutcallback-nice branch from a390eac to 294f64c Compare March 12, 2024 10:53
@paullouisageneau paullouisageneau changed the base branch from master to v0.20 March 12, 2024 10:54
@paullouisageneau paullouisageneau merged commit 9cbe6a2 into v0.20 Mar 12, 2024
12 checks passed
@paullouisageneau paullouisageneau deleted the fix-crash-timeoutcallback-nice branch March 12, 2024 11:03
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.

SIGABRT in IceTransport::TimeoutCallback with libnice
1 participant