multiprocessing child segfault when passing lock as an argument #119413
Labels
pending
The issue will be closed if no feedback is provided
type-crash
A hard crash of the interpreter, possibly with a core dump
Uh oh!
There was an error while loading. Please reload this page.
Crash report
What happened?
It seems that the below code will serialize the pointer to the lock handle over to the child process, and then rebuild the raw pointer in https://github.com/python/cpython/blob/main/Modules/_multiprocessing/clinic/semaphore.c.h#L331
this then segfaults the child process - which seems to cause new children to spin up.
CPython versions tested on:
3.10, 3.11
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
The text was updated successfully, but these errors were encountered: