You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2006-06-22.20:32:42.000>created_at=<Date2006-06-15.16:06:27.000>labels= ['library']
title='If MAXFD too high, popen2/subprocess produce MemoryErrors'updated_at=<Date2006-06-22.20:32:42.000>user='https://bugs.python.org/pav3901'
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().
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: