New submission from Maries Ionel Cristian: 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) ---------- components: IO, Interpreter Core messages: 229825 nosy: ionel.mc priority: normal severity: normal status: open title: Deadlock with writing to stderr from forked process versions: Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22697> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com