You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-05-14.17:24:19.669>created_at=<Date2009-05-03.11:50:27.836>labels= ['type-crash']
title='import deadlocks when using fork'updated_at=<Date2009-05-14.17:24:19.659>user='https://bugs.python.org/abaron'
While running 2 or more threads, if one thread is importing anything
(i.e. has the import lock) and the other thread runs fork and then the
child process runs import then the child and parent will hang forever
(the child waits on the import lock but the parent receives the signal).
see bpo-1590864 for another example of this.
Following is a simple way to reproduce this behavior:
mysleep.py:
import time
time.sleep(1)
run_me_and_hang.py:
import os
import threading
import subprocess
class F(threading.Thread):
def run(self):
import mysleep
print "f is out"
f = F()
f.start()
a = subprocess.call(["echo", "DONE"])
print "exit"
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: