Repository navigation
Assertion failure in tstate_set_stack #143191
Copy link
Copy link
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Description
Activity
- addedextension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
on Dec 26, 2025 Not free threading specific -- crash happens in the default build too
- changed the title
[-]Assertion failure in `tstate_set_stack` on a free threading build[/-][+]Assertion failure in `tstate_set_stack`[/+]on Dec 28, 2025 - addedneeds backport to 3.14bugs and security fixesbugs and security fixesand removedneeds backport to 3.14bugs and security fixesbugs and security fixes
on Jan 9, 2026 Fixed in 3.14 and main branches. Thanks for your bug report.
- added a commit that references this issue
on Jan 9, 2026 - added a commit that references this issue
on Sep 14, 2026
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
It's possible to make the interpreter abort by running the code below:
Backtrace:
Sometimes a different abort will happen, but I was never able to record it under GDB.
Message for abort 2:
Found using fusil by @vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.15.0a3+ free-threading build (heads/main:cf6758ff9eb, Dec 26 2025, 14:20:15) [Clang 21.1.2 (2ubuntu6)]
Linked PRs