This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/3112] New: sysdeps/i386/backtrace.c:init dlopens libgcc_s.so but does not close it resulting in memory leaks


The init function in the i386 version of backtrace opens the libgcc_s.so, but
does not close it anywhere, which is reported as memory leak by e.g. valgrind.

A minimal test case is the backtrace example from the libc info pages.

A possible solution would be to add a hook to __libc_subfreeres that frees the
allocated resources.

-- 
           Summary: sysdeps/i386/backtrace.c:init dlopens libgcc_s.so but
                    does not close it resulting in memory leaks
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: bt-sources-redhat-com at c0ffee dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=3112

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]