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 when dropping removed token #155

Closed
wants to merge 3 commits into from

Conversation

chrisduerr
Copy link
Contributor

This fixes an issue where calloop would crash internally when the PostAction::Drop was invoked after the user manually cancelled the source in the callback.

This fixes an issue where calloop would crash internally when the
`PostAction::Drop` was invoked after the user manually cancelled the
source in the callback.
@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (7ae6f36) 86.84% compared to head (d4e9304) 86.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #155      +/-   ##
==========================================
- Coverage   86.84%   86.75%   -0.10%     
==========================================
  Files          14       14              
  Lines        1817     1819       +2     
==========================================
  Hits         1578     1578              
- Misses        239      241       +2     
Flag Coverage Δ
macos-latest 85.79% <74.57%> (-0.11%) ⬇️
ubuntu-latest 86.28% <74.57%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/loop_logic.rs 87.03% <74.57%> (-0.51%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elinorbgr
Copy link
Member

Could you give a quick summary of what you changed and why? This diff is not very clear to read...

@chrisduerr
Copy link
Contributor Author

Could you give a quick summary of what you changed and why? This diff is not very clear to read...

Just changed the remove to try_remove. Just also tried to make the code somewhat readable at least.

@kchibisov
Copy link
Member

This probably needs a test given that it sounds like simple to repro?

@elinorbgr
Copy link
Member

Alright, I took the time to figure out exactly what happens, and this seems like a good way to fix this, thanks.

Could you please just add a changelog entry for this under the "unreleased" section?

@elinorbgr
Copy link
Member

Ok so, it appears that a deeper issue with this PR as a special case was found & fixed in #156.

@elinorbgr
Copy link
Member

closing in favor of #156

@elinorbgr elinorbgr closed this Oct 5, 2023
@chrisduerr chrisduerr deleted the fix_remove_crash branch October 5, 2023 20:04
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.

3 participants