Repository navigation
Possible race condition in signal handling #102397
Copy link
Copy link
Closed
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errorinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump3.12only security fixesonly security fixes
on Mar 3, 2023 Guess I found a minimal reproducer:
import _thread class Foo(): def __del__(self): _thread.interrupt_main() x = Foo()
This, as well as original one, crashes on 3.10.8, 3.11.0 and current main under Linux.
Yeah, both of these crashes are basically the same, they both crash in
compare_handlerin signal handling, I am working on a fix.Reacted by Owain Davies, chgnrdv, Gregory P. Smith and Oleg Iarygin- added a commit that references this issue
on Mar 8, 2023 Fixed in main and backported, closing.
- added a commit that references this issue
on Mar 8, 2023
Metadata
Metadata
Assignees
Labels
3.10 (EOL)end of lifeend of life3.11only security fixesonly security fixes3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
The following code segfaults the interpreter on Linux. Tested on current main.
Linked PRs