Bug 456506 - dlopen/dlclose causes memory leak in _dl_map_object_from_fd
dlopen/dlclose causes memory leak in _dl_map_object_from_fd
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc (Show other bugs)
All Linux
low Severity low
: rc
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2008-07-24 04:38 EDT by Makoto Kato
Modified: 2008-08-09 19:16 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-08-09 19:16:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
sample program written by C (227 bytes, text/plain)
2008-07-24 04:38 EDT, Makoto Kato
no flags Details

  None (edit)
Description Makoto Kato 2008-07-24 04:38:50 EDT
Description of problem:

dlopen/dlclose causes memory leak in _dl_map_object_from_fd 

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

How reproducible:

Steps to Reproduce:
1. run test progam on valgrind
Actual results:
leak detected

==26199== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==26199==    at 0x40053C0: malloc (vg_replace_malloc.c:149)
==26199==    by 0x8B3E27: _dl_map_object_from_fd (in /lib/ld-2.5.so)
==26199==    by 0x8B5333: _dl_map_object (in /lib/ld-2.5.so)
==26199==    by 0x8B90D5: openaux (in /lib/ld-2.5.so)
==26199==    by 0x8BAB45: _dl_catch_error (in /lib/ld-2.5.so)
==26199==    by 0x8B9699: _dl_map_object_deps (in /lib/ld-2.5.so)
==26199==    by 0x8BE614: dl_open_worker (in /lib/ld-2.5.so)
==26199==    by 0x8BAB45: _dl_catch_error (in /lib/ld-2.5.so)
==26199==    by 0x8BE0D1: _dl_open (in /lib/ld-2.5.so)
==26199==    by 0xA32C2C: dlopen_doit (in /lib/libdl-2.5.so)
==26199==    by 0x8BAB45: _dl_catch_error (in /lib/ld-2.5.so)
==26199==    by 0xA332AB: _dlerror_run (in /lib/libdl-2.5.so)

Expected results:
don't leak memory

Additional info:
Comment 1 Makoto Kato 2008-07-24 04:38:50 EDT
Created attachment 312537 [details]
sample program written by C
Comment 2 Ulrich Drepper 2008-08-09 19:16:56 EDT
Contact your Red Hat account manager to raise the bug.

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