Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 456506

Summary: dlopen/dlclose causes memory leak in _dl_map_object_from_fd
Product: Red Hat Enterprise Linux 5 Reporter: Makoto Kato <mkato>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED DEFERRED QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: dkovalsk, drepper
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-09 23:16:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sample program written by C none

Description Makoto Kato 2008-07-24 08:38:50 UTC
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 08:38:50 UTC
Created attachment 312537 [details]
sample program written by C

Comment 2 Ulrich Drepper 2008-08-09 23:16:56 UTC
Contact your Red Hat account manager to raise the bug.