Bugs item #1506758, was opened at 2006-06-15 18:06
Message generated for change (Comment added) made by astrand
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1506758&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Peter Vetere (pav3901)
>Assigned to: Peter Åstrand (astrand)
Summary: If MAXFD too high, popen2/subprocess produce MemoryErrors

Initial Comment:
Both the subprocess and the popen2 modules use the
range(...) function to iterate over and close inherited
file descriptors when a subprocess is spawned.  In the
OS environment, it possible (using ulimit -n) to set
SC_OPEN_MAX (and thus MAXFD in these modules) to a very
high value.  This can exhaust the limitations of the
range() function, producing a MemoryError.  The better
thing to do would be to use xrange() instead.

In particular, this bug occurs in
subprocess._close_fds()  and popen2._run_child().


----------------------------------------------------------------------

>Comment By: Peter Åstrand (astrand)
Date: 2006-06-22 22:32

Message:
Logged In: YES 
user_id=344921

Patch 1506760 has been applied. 

----------------------------------------------------------------------

Comment By: Peter Vetere (pav3901)
Date: 2006-06-15 21:31

Message:
Logged In: YES 
user_id=652852

I've submitted a patch against release24-maint for this bug:
 1506760

----------------------------------------------------------------------

Comment By: Peter Vetere (pav3901)
Date: 2006-06-15 18:15

Message:
Logged In: YES 
user_id=652852

I've submitted a patch against release24-maint for this bug:
 1506760

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1506758&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to