Red Hat Bugzilla – Bug 589574
Anaconda is leaking descriptors in getDevices
Last modified: 2010-11-10 14:43:09 EST
Description of problem:
While working on another bug, which used lots of calls to getDevices, anaconda crashed with "Too many open files". After investigating it I found the culprit.
We open directories in getDevices, but we never close them when we are done with them and we run out of free descriptors after a while...
Version-Release number of selected component (if applicable):
RHEL6 Beta1, but we have this error almost in all versions. This has to be fixed for
With modified RHEL6b1 loader (patch from #586905) anaconda partially segfaults and then tries to connect to NM with Too many open files errors.
Created attachment 412011 [details]
Cleanup after dir scanning
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
This will be included in the next anaconda build anaconda-13.21.37-1.
Successfully reproduced in anaconda 13.21.32 and verified issue is fixed in RHEL6.0-20100701.3
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.