Huuuuge memory leak (third attempt)

Jeff Epler jepler at inetnebr.com
Mon Feb 19 18:32:56 EST 2001


On Mon, 19 Feb 2001 09:12:40 +0100, jurgen.defurne at philips.com
 <jurgen.defurne at philips.com> wrote:
>Thanks, everybody,
>
>for the comments on the multiple assignment. Unfortunately,
>that was the least of my problems.

I would suggest entering this bug in the bug tracking system at
	http://sourceforge.net/projects/python/
This may be a genuine bug.

Another thing you could do is try the equivalent program written in
C on Windows NT, to see if it exhibits the problem.  It is possible
that this is a bug in Windows, not in Python.

I don't know what the equivalent of "/bin/false" is in Windows NT, but
does the result change if a more trivial program is executed?

Running the following code on Linux/Python 2.0, I soon get an error
due to the number of "zombie" processes.  "zombie" processes are those
whose exit codes have not been read by the waitpid() or wait() functions
in the os module.  Is something like "waitpid()" necessary/possible under
NT?  Adding waitpid() lets it run seemingly forever without error.

import os, time

while 1:
        pid = os.spawnv(os.P_NOWAIT, "false", "/bin/false")
        #print pid, os.waitpid(pid, 0)

Jeff



More information about the Python-list mailing list