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 locking in PushPullCallback #3882

Merged
merged 4 commits into from
Feb 12, 2024
Merged

Fix locking in PushPullCallback #3882

merged 4 commits into from
Feb 12, 2024

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Feb 12, 2024

The journal replaying for #3872 was not completely conclusive as it didn't reproduce the crash. However, it told us exactly what code we were executing when the crash happened. After staring at this code for a while, @eggrobin noticed that the PushPullCallback class would always be destroyed with its internal mutex held. That's violates the invariants of Mutex and might cause plague and pestilence.

This change may or may not address #3872.

@eggrobin eggrobin added the LGTM label Feb 12, 2024
@pleroy pleroy merged commit 9beb44b into mockingbirdnest:master Feb 12, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants