Message288753
Here is a proof of concept patch from Jaroslav Škarvada. It fixes the problem by holding the mutex used for PyThread_create_key while forking.
To make it more than PoC it needs adding _PyThread_AcquireKeyLock and _ReleaseKeyLock (similar to _PyImport_AcquireLock() etc.) and calling those. Other than that, does this approach look reasonable? |
|
Date |
User |
Action |
Args |
2017-03-01 11:14:07 | petr.viktorin | set | recipients:
+ petr.viktorin, cstratak, Ján Stanček |
2017-03-01 11:14:07 | petr.viktorin | set | messageid: <1488366847.73.0.728843671351.issue29640@psf.upfronthosting.co.za> |
2017-03-01 11:14:07 | petr.viktorin | link | issue29640 messages |
2017-03-01 11:14:07 | petr.viktorin | create | |
|