[Python-bugs-list] [Bug #126766] popen('python -c"...."') tends to hang

noreply@sourceforge.net noreply@sourceforge.net
Sun, 24 Dec 2000 08:11:45 -0800


Bug #126766, was updated on 2000-Dec-24 08:08
Here is a current snapshot of the bug.

Project: Python
Category: Windows
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: sabren
Assigned to : nobody
Summary: popen('python -c"...."') tends to hang

Details: eg:

import os
os.popen('python -c"x=1;print x"').readlines()


.. On my machine, using popen to call a second instance of python almost
always causes python to freeze. No window pops up, but if I press alt-tab,
there's an icon for w9xpopen.exe

oddly:


>>> os.popen('python -c"print"').readlines()

and

>> os.popen('python -c""').readlines()

both work fine.


... This bug is different from #114780 in that it is repeatable and
consistent.

It happens on open, so is different from #125891. Eg:

>>> proc = os.popen('python -c"x=1; print x"')

will cause the crash.

Follow-Ups:

Date: 2000-Dec-24 08:11
By: sabren

Comment:
.. er.. whoops.. It hangs/freezes, not crashes. And in fact, it
occasionally returns control to python after several minutes.
-------------------------------------------------------

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