Skip to content

Fix crash when attaching to a running process #699

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

dfaure-kdab
Copy link
Member

If the user clicks the button while the process list is updating, the future is canceled, and calling result() on it is undefined behavior (and crashes). ASAN just says
/usr/include/c++/14/bits/stl_tree.h:359:59: runtime error: member call on null pointer of type 'const struct _Rb_tree_node'

@dfaure-kdab dfaure-kdab requested a review from milianw March 11, 2025 22:16
@dfaure-kdab dfaure-kdab force-pushed the work/dfaure/fix-crash-futurewatcher branch from 2b5e06f to 5adeddd Compare March 11, 2025 22:17
If the user clicks the button while the process list is updating,
the future is canceled, and calling result() on it is undefined
behavior (and crashes). ASAN just says
/usr/include/c++/14/bits/stl_tree.h:359:59: runtime error: member call on null pointer of type 'const struct _Rb_tree_node'
@dfaure-kdab dfaure-kdab force-pushed the work/dfaure/fix-crash-futurewatcher branch from 5adeddd to 07cbcec Compare March 11, 2025 22:18
@dfaure-kdab dfaure-kdab merged commit 37215fa into master Mar 12, 2025
25 checks passed
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