[issue5912] import deadlocks when using fork
Alan Pevec ape...@gmail.com added the comment: Issue is not reproducible with python 2.5, following patch fixes it on python 2.4: --- os.py-2.4 2009-05-14 12:54:08.0 + +++ os.py 2009-05-14 13:06:21.0 + @@ -351,8 +351,8 @@ __all__.extend([execl,execle,execlp,execlpe,execvp,execvpe]) +from errno import ENOENT, ENOTDIR def _execvpe(file, args, env=None): -from errno import ENOENT, ENOTDIR if env is not None: func = execve -- nosy: +apevec versions: -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5912] import deadlocks when using fork
Benjamin Peterson benja...@python.org added the comment: 2.4 is no longer supported. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5912] import deadlocks when using fork
Changes by Stefan Ring stefan...@gmail.com: -- nosy: +Ringding ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5912] import deadlocks when using fork
New submission from ayal baron ayal.ba...@rocketier.com: 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 Issue1590864 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 -- components: None messages: 87044 nosy: abaron severity: normal status: open title: import deadlocks when using fork type: crash versions: Python 2.4, Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com