Bug 230793 - File descriptors leakage
File descriptors leakage
Product: Fedora
Classification: Fedora
Component: elfutils (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
: Patch
Depends On:
Blocks: 173278 229424
  Show dependency treegraph
Reported: 2007-03-02 16:46 EST by Jan Kratochvil
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version: 0.127-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-19 14:17:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix + a testcase. (5.86 KB, patch)
2007-03-02 16:46 EST, Jan Kratochvil
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Sourceware 3863 None None None Never

  None (edit)
Description Jan Kratochvil 2007-03-02 16:46:00 EST
Description of problem:
A program often calling (not caching) dwfl_begin()...dwfl_end() will get out of
the file descriptors (.so and .so.debug files left open in /proc/self/fd/ ).

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

How reproducible:

Steps to Reproduce:
Found during libunwind patching for elfutils.  Testcase included.

Actual results:
dwfl-bug-fd-leak: dwfl-bug-fd-leak.c:134: main: Assertion `fd_counted ==
fd_count ()' failed.
/bin/sh: line 4: 22798 Aborted                 ./test-wrapper.sh
../libdw:../backends:../libelf:../libasm ${dir}$tst
FAIL: dwfl-bug-fd-leak

Expected results:
PASS: dwfl-bug-fd-leak

Additional info:
Comment 1 Jan Kratochvil 2007-03-02 16:46:00 EST
Created attachment 149158 [details]
Fix + a testcase.
Comment 2 Roland McGrath 2007-03-04 17:42:31 EST
Fixed upstream.
Comment 3 Roland McGrath 2007-04-19 14:17:27 EDT
0.127 fixes this.

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