Bug 90563 - du leaks file-descriptors during processing
du leaks file-descriptors during processing
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: coreutils (Show other bugs)
1.0
i386 Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-05-09 13:32 EDT by matti aarnio
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version: 5.0-4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-05-12 12:24:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description matti aarnio 2003-05-09 13:32:10 EDT
Description of problem:
  The 'du'  seems to leak file descriptors for each  argv  parameter,
  with end result that:
    du *
  in a directory with _lots_ of _files_ gives error message:
  (actually lots of argv entries, even if they are the same file)

  du: cannot open current directory: Too many open files
  du: `30968': Too many open files

  (files with all numeric names in my test case)

  My  ulimit -n   is 1024,  and first error is on line 1022 of the output.

Version-Release number of selected component (if applicable):
  coreutils-5.0-3

How reproducible:
  Always

Steps to Reproduce:
  1. Create a directory with about a dozen files (or go to such),
  2. ulimit -n 8
  3. du -s *

Additional info:
  For this to happen,  'du'  argument set must have more elements, than
  your current 'ulimit -n' value is (n=10 allows 10-2 args without failure)
Comment 1 Tim Waugh 2003-05-12 06:40:23 EDT
Thanks for the report.  Reported upstream too.
Comment 2 Tim Waugh 2003-05-12 12:24:42 EDT
Fixed package will shortly appear in rawhide.

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