Calling ShareableList.count
in threads aborts: Assertion 'self->exports == 0' failed
#127085
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-free-threading
topic-multiprocessing
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report
What happened?
It's possible to abort the interpreter by calling
multiprocessing.shared_memory.ShareableList.count
in threads withPYTHON_GIL=0
in a debug build:Result:
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.14.0a2+ experimental free-threading build (heads/main-dirty:c9b399fbdb0, Nov 19 2024, 20:12:48) [GCC 11.4.0]
The text was updated successfully, but these errors were encountered: