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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 24 Dec 2000 09:40:28 -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 : mhammond
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 09:40
By: tim_one

Comment:
Mark, any idea?  The first example also appears to hang for me consistently
(W98SE).  In a debug build under the debugger, breaking during the hang
yields a gibberish disassembly window (i.e., it's not showing code!), so I
didn't get anywhere after 5 minutes of thrashing.
-------------------------------------------------------

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