diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 02:28:22 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 02:28:22 +0200 |
commit | 4a338d66c6ab8d9d27ae54b624011b974f3e731d (patch) | |
tree | 23b0eec2ca06ef716879c9be79b536908c4d0d22 /Python/pythonrun.c | |
parent | 090b840e7893c45716a2fb6f1598dbfd335b2c3c (diff) | |
download | cpython-4a338d66c6ab8d9d27ae54b624011b974f3e731d.tar.gz |
Issue #11393: Fix faulthandler_thread(): release cancel lock before join lock
If the thread releases the join lock before the cancel lock, the thread may
sometimes still be alive at cancel_dump_tracebacks_later() exit. So the cancel
lock may be destroyed while the thread is still alive, whereas the thread will
try to release the cancel lock, which just crash.
Another minor fix: the thread doesn't release the cancel lock if it didn't
acquire it.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions