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 ionelmc
Recipients ionelmc
Date 2014-10-22.13:59:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413986367.14.0.352107167307.issue22697@psf.upfronthosting.co.za>
In-reply-to
Content
Example code:

import os
import sys
import threading


def run():
    sys.stderr.write("in parent thread\n")

threading.Thread(target=run).start()
pid = os.fork()
if pid:
    os.waitpid(pid, 0)
else:
    sys.stderr.write("in child\n")


To run:  while python3 deadlock.py; do; done        

Note: does not reproduce if ran with `python -u` (unbuffered)
History
Date User Action Args
2014-10-22 13:59:27ionelmcsetrecipients: + ionelmc
2014-10-22 13:59:27ionelmcsetmessageid: <1413986367.14.0.352107167307.issue22697@psf.upfronthosting.co.za>
2014-10-22 13:59:27ionelmclinkissue22697 messages
2014-10-22 13:59:26ionelmccreate