This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients Ján Stanček, cstratak, petr.viktorin
Date 2017-03-01.11:14:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488366847.73.0.728843671351.issue29640@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-03-01 11:14:07petr.viktorinsetrecipients: + petr.viktorin, cstratak, Ján Stanček
2017-03-01 11:14:07petr.viktorinsetmessageid: <1488366847.73.0.728843671351.issue29640@psf.upfronthosting.co.za>
2017-03-01 11:14:07petr.viktorinlinkissue29640 messages
2017-03-01 11:14:07petr.viktorincreate