Bug 589574 - Anaconda is leaking descriptors in getDevices
Anaconda is leaking descriptors in getDevices
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: anaconda (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Martin Sivák
Release Test Team
Depends On:
Blocks: 586905 589580 590015
  Show dependency treegraph
Reported: 2010-05-06 09:12 EDT by Martin Sivák
Modified: 2010-11-10 14:43 EST (History)
1 user (show)

See Also:
Fixed In Version: anaconda-13.21.37-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 589580 (view as bug list)
Last Closed: 2010-11-10 14:43:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Cleanup after dir scanning (793 bytes, patch)
2010-05-06 09:13 EDT, Martin Sivák
no flags Details | Diff

  None (edit)
Description Martin Sivák 2010-05-06 09:12:52 EDT
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

How reproducible:

With modified RHEL6b1 loader (patch from #586905) anaconda partially segfaults and then tries to connect to NM with Too many open files errors.
Comment 1 Martin Sivák 2010-05-06 09:13:47 EDT
Created attachment 412011 [details]
Cleanup after dir scanning
Comment 2 RHEL Product and Program Management 2010-05-06 09:34:54 EDT
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
Comment 3 Martin Sivák 2010-05-07 04:45:38 EDT
This will be included in the next anaconda build anaconda-13.21.37-1.
Comment 5 Marian Ganisin 2010-07-07 08:31:07 EDT
Successfully reproduced in anaconda 13.21.32 and verified issue is fixed in RHEL6.0-20100701.3
Comment 6 releng-rhel@redhat.com 2010-11-10 14:43:09 EST
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.

Note You need to log in before you can comment on or make changes to this bug.