[New-bugs-announce] [issue22697] Deadlock with writing to stderr from forked process
Maries Ionel Cristian
report at bugs.python.org
Wed Oct 22 15:59:27 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue22697>
_______________________________________
More information about the New-bugs-announce
mailing list