Commit 37215fa
authored
fix: crash when attaching to a running process (#699)
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'1 parent 92b6ec6 commit 37215fa
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
| 690 | + | |
| 691 | + | |
691 | 692 | | |
692 | 693 | | |
693 | 694 | | |
| |||
0 commit comments