[Python-bugs-list] [Bug #110676] fd.readlines() hangs (via popen3) (PR#385)

noreply@sourceforge.net noreply@sourceforge.net
Sat, 16 Sep 2000 14:57:50 -0700


Bug #110676, was updated on 2000-Jul-31 14:13
Here is a current snapshot of the bug.

Project: Python
Category: Modules
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 5
Summary: fd.readlines() hangs (via popen3) (PR#385)

Details: Jitterbug-Id: 385
Submitted-By: aron@gweep.net
Date: Tue,  4 Jul 2000 19:07:55 -0400 (EDT)
Version: 1.5.2
OS: Red Hat Linux 6.1 (2.1.12-20)


The following scripts cause a hang at the denoted line. To execute
this code, copy the first bit to master.py and the second to slave.py
(both should be in the same directory). Then, "cd" to that directory
and "python master.py".

Manually killing the program is necessary.

This script has also been tested on a Solaris 5.7 box and worked.

---master.py---
import popen2

r,w,e = popen2.popen3 ( 'python slave.py' )
r.readlines() # Hangs here
e.readlines()
r.close()
e.close()
w.close()

---end---

---slave.py---
import sys

e = sys.stderr.write
w = sys.stdout.write

e(400*'this is a test\n')
w(400*'this is another test\n')
---end---



====================================================================
Audit trail:
Tue Jul 11 08:24:23 2000	guido	moved from incoming to open

Follow-Ups:

Date: 2000-Sep-07 15:03
By: jhylton

Comment:
Please do triage on this bug.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110676&group_id=5470