In Heptapod by bitbucket_importer on Oct 17, 2014, 24:14
Created originally on Bitbucket by ionelmc (Ionel Cristian Mărieș)
Minimal testcase:
import os
import sys
import threading
class Thread(threading.Thread):
def run(self):
print >> sys.stderr, "BLAM!"
t = Thread()
t.daemon = True
t.start()
pid = os.fork()
if pid:
print('waiting for process', pid)
os.waitpid(pid, 0)
else:
print >> sys.stderr, "BOOM!"
os.execvp('true', ['true'])
print('process ended')
To run: while pypy deadlock.py; do true; done
Reproduces on PyPy 2.3.0 and 2.4.0
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4