[Python-bugs-list] [Bug #131204] fork()/execv() IDE Crash

noreply@sourceforge.net noreply@sourceforge.net
Mon, 05 Feb 2001 18:51:43 -0800


Bug #131204, was updated on 2001-Feb-05 18:35
Here is a current snapshot of the bug.

Project: Python
Category: IDLE
Status: Open
Resolution: None
Bug Group: Platform-specific
Priority: 3
Submitted by: nobody
Assigned to : effbot
Summary: fork()/execv() IDE Crash

Details: I'm just learning the fork()/execv() business and i'm sure this
code is crappy... but it does crash IDLE on Windows 98
#system test
import os
MyList = ['127.0.0.1']
while 1:
    
    os.execv('C:\Windows\ping', MyList )
    os.fork()


Follow-Ups:

Date: 2001-Feb-05 18:51
By: tim_one

Comment:
Assigned to effbot for pondering.  On Win98SE, the loop isn't needed, and
neither is the fork.  os.execv is enough to crash IDLE.  It dies in
tk83.dll.  If I do

bin = r'\bin\wc.exe'
os.execv(bin, [bin, bin])

then wc does run to completion, so I imagine Tk is mondo confused about
Python going away.

"Nobody", fork doesn't even exist on Windows:

>>> import os
>>> os.fork
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'os' module has no attribute 'fork'
>>>

This is stuff is natural only on Unix systems.  On Windows, play with the
os.spawn* functions instead.
-------------------------------------------------------

Date: 2001-Feb-05 18:36
By: nobody

Comment:
Questions/Comments can be sent to radiohead83@yahoo.com
-------------------------------------------------------

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