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 ryan.petrello
Recipients ryan.petrello
Date 2019-06-27.12:39:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561639162.28.0.948669559671.issue37429@roundup.psfhosted.org>
In-reply-to
Content
It's possible to cause Python child processes to encountered a deadlock and hang on fork by:

1) Spawning one or more threads in a parent process
2) Have one of those threads emit log lines
3) Have the main thread use os.fork()
4) In the child, log immediately

The attached Python script can be used to reproduce this issue in Python 2.7.15 and Python 3.6.5
History
Date User Action Args
2019-06-27 12:39:22ryan.petrellosetrecipients: + ryan.petrello
2019-06-27 12:39:22ryan.petrellosetmessageid: <1561639162.28.0.948669559671.issue37429@roundup.psfhosted.org>
2019-06-27 12:39:22ryan.petrellolinkissue37429 messages
2019-06-27 12:39:21ryan.petrellocreate