[Bug nss/22184] Memory leak(s) in getaddrinfo_a
carlos at redhat dot com
sourceware-bugzilla@sourceware.org
Sat Sep 23 13:06:00 GMT 2017
https://sourceware.org/bugzilla/show_bug.cgi?id=22184
--- Comment #4 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Tim Rühsen from comment #3)
> (In reply to Carlos O'Donell from comment #1)
> > Are you able to try reproducing this with glibc master or 2.26? Both have
> > some cleanups in this area.
>
> Just checked with current master.
> CFLAGS="-O1 -g" ../configure --prefix=/usr/tim/src/glibc/myinstall
> --disable-werror
> make
> make install
> gcc -I../myinstall/include gai_leak.c -o gai_leak -L../myinstall/lib
> ../myinstall/lib/libanl.so ../myinstall/lib/libc.so
> ../myinstall/lib/libpthread.so
> valgrind ./gai_leak
>
> ...
> ==29332== in use at exit: 2,440 bytes in 5 blocks
> ==29332== total heap usage: 74 allocs, 69 frees, 104,809 bytes allocated
> ==29332==
> ==29332== LEAK SUMMARY:
> ==29332== definitely lost: 0 bytes in 0 blocks
> ==29332== indirectly lost: 0 bytes in 0 blocks
> ==29332== possibly lost: 272 bytes in 1 blocks
> ==29332== still reachable: 2,168 bytes in 4 blocks
> ...
You must use -rpath to build a binary that uses the new libraries, otherwise
this uses your system libraries.
Please see this document for steps on how to do that:
https://sourceware.org/glibc/wiki/Testing/Builds
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list