Calling cProfile.runctx
in threads on a free-threading build segfaults
#126884
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
extension-modules
C modules in the Modules dir
topic-free-threading
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
On a no-gil build running with
PYTHON_GIL=0
, repeatedly callingcProfile.runctx
in threads leads to a segfault:Backtrace:
Found using fusil by @vstinner.
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a1+ experimental free-threading build (heads/main-dirty:54c63a32d0, Nov 8 2024, 20:16:36) [GCC 11.4.0]
The text was updated successfully, but these errors were encountered: