[Python-bugs-list] [Bug #114780] Rare hangs in w9xpopen.exe

noreply@sourceforge.net noreply@sourceforge.net
Tue, 19 Sep 2000 05:51:18 -0700


Bug #114780, was updated on 2000-Sep-19 01:50
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 7
Summary: Rare hangs in w9xpopen.exe

Details: Every two or three days, when I'm running the std test suite on my Win98SE box, test_popen2 just hangs.  wintop shows that w9xpopen.exe is alive, but not consuming any cycles.  test_popen2.py is waiting on a .read().

No other clues.  It *may* be the case that I'm establishing a modem connection near the time test_popen2 starts to run.  I'll try to provoke that.

Assigned to MarkH simply to share the misery <wink>.  Mark, I don't expect you to "fix this", but I don't expect me to either -- it's just something we should both be aware of.


Follow-Ups:

Date: 2000-Sep-19 05:51
By: gvanrossum

Comment:
Tim, do you remember the problem I had with using popen() from IDLE? I had code that essentially did os.popen("start "+url).close(). This worked fine in a DOS box but hung inexplicably for 30 seconds before returning and starting the browser when used in IDLE. The problem went away (the call returned immediately and the browser was started within 2-3 seconds) when I saved the pipe object in an instance variable. We never fixed this, but I tracked it down to probably something having to do with the need to pump events. Mark will understand. I don't doubt that popen2, popen3, popen4 all share this problem. (Check webbrowser.py, class WindowsDefault, for the current solution.)
-------------------------------------------------------

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