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 nss/22184] Memory leak(s) in getaddrinfo_a


https://sourceware.org/bugzilla/show_bug.cgi?id=22184

--- Comment #7 from Andreas Schwab <schwab@linux-m68k.org> ---
This works for me, giving the following result:

==32477== Memcheck, a memory error detector
==32477== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==32477== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==32477== Command: ./gai_leak
==32477== 
resolving example.com:80...
freeaddrinfo 0x560c7b0
==32477== 
==32477== HEAP SUMMARY:
==32477==     in use at exit: 2,384 bytes in 3 blocks
==32477==   total heap usage: 14 allocs, 11 frees, 10,166 bytes allocated
==32477== 
==32477== 272 bytes in 1 blocks are possibly lost in loss record 2 of 3
==32477==    at 0x4C30250: calloc (vg_replace_malloc.c:711)
==32477==    by 0x4011AD1: allocate_dtv (dl-tls.c:286)
==32477==    by 0x401244D: _dl_allocate_tls (dl-tls.c:530)
==32477==    by 0x50462C3: allocate_stack (allocatestack.c:623)
==32477==    by 0x50462C3: pthread_create@@GLIBC_2.2.5 (pthread_create.c:644)
==32477==    by 0x4E3B46A: __gai_create_helper_thread (gai_misc.h:113)
==32477==    by 0x4E3B46A: __gai_enqueue_request (gai_misc.c:253)
==32477==    by 0x4E3BB84: getaddrinfo_a (getaddrinfo_a.c:67)
==32477==    by 0x400829: main (gai_leak.c:34)
==32477== 
==32477== LEAK SUMMARY:
==32477==    definitely lost: 0 bytes in 0 blocks
==32477==    indirectly lost: 0 bytes in 0 blocks
==32477==      possibly lost: 272 bytes in 1 blocks
==32477==    still reachable: 2,112 bytes in 2 blocks
==32477==         suppressed: 0 bytes in 0 blocks
==32477== Reachable blocks (those to which a pointer was found) are not shown.
==32477== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==32477== 
==32477== For counts of detected and suppressed errors, rerun with: -v
==32477== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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