The same errors with debug symbols:
sundb...@fs1:~$ valgrind  --error-exitcode=1 --leak-check=full
--show-reachable=yes ./silly
==32537== Memcheck, a memory error detector.
==32537== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==32537== Using LibVEX rev 1854, a library for dynamic binary translation.
==32537== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==32537== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==32537== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==32537== For more details, rerun with: -v
==32537==

In main: creating thread 0
In main: creating thread 1
Hello World! It's me, thread #1!
In main: creating thread 2
Hello World! It's me, thread #2!
In main: creating thread 3
Hello World! It's me, thread #3!
In main: creating thread 4
Hello World! It's me, thread #4!
Hello World! It's me, thread #0!
==32537==
==32537== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 16 from 1)
==32537== malloc/free: in use at exit: 1,588 bytes in 10 blocks.
==32537== malloc/free: 10 allocs, 0 frees, 1,588 bytes allocated.
==32537== For counts of detected errors, rerun with: -v
==32537== searching for pointers to 10 not-freed blocks.
==32537== checked 41,988,668 bytes.
==32537==
==32537== 19 bytes in 1 blocks are still reachable in loss record 1 of 6
==32537==    at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==32537==    by 0x400A551: _dl_new_object (in /lib/ld-2.7.so)
==32537==    by 0x4005FB2: _dl_map_object_from_fd (in /lib/ld-2.7.so)
==32537==    by 0x4007E0C: _dl_map_object (in /lib/ld-2.7.so)
==32537==    by 0x4011B46: dl_open_worker (in /lib/ld-2.7.so)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x401154D: _dl_open (in /lib/ld-2.7.so)
==32537==    by 0x413E8B1: do_dlopen (dl-libc.c:86)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x413E9B0: dlerror_run (dl-libc.c:47)
==32537==    by 0x413EAD5: __libc_dlopen_mode (dl-libc.c:160)
==32537==    by 0x4035146: pthread_cancel_init (unwind-forcedunwind.c:47)
==32537==
==32537==
==32537== 19 bytes in 1 blocks are still reachable in loss record 2 of 6
==32537==    at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==32537==    by 0x4004D7E: local_strdup (in /lib/ld-2.7.so)
==32537==    by 0x400809B: _dl_map_object (in /lib/ld-2.7.so)
==32537==    by 0x4011B46: dl_open_worker (in /lib/ld-2.7.so)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x401154D: _dl_open (in /lib/ld-2.7.so)
==32537==    by 0x413E8B1: do_dlopen (dl-libc.c:86)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x413E9B0: dlerror_run (dl-libc.c:47)
==32537==    by 0x413EAD5: __libc_dlopen_mode (dl-libc.c:160)
==32537==    by 0x4035146: pthread_cancel_init (unwind-forcedunwind.c:47)
==32537==    by 0x4035270: _Unwind_ForcedUnwind (unwind-forcedunwind.c:98)
==32537==
==32537==
==32537== 28 bytes in 1 blocks are still reachable in loss record 3 of 6
==32537==    at 0x4023D6E: malloc (vg_replace_malloc.c:207)
==32537==    by 0x400C355: _dl_map_object_deps (in /lib/ld-2.7.so)
==32537==    by 0x4011BA6: dl_open_worker (in /lib/ld-2.7.so)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x401154D: _dl_open (in /lib/ld-2.7.so)
==32537==    by 0x413E8B1: do_dlopen (dl-libc.c:86)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x413E9B0: dlerror_run (dl-libc.c:47)
==32537==    by 0x413EAD5: __libc_dlopen_mode (dl-libc.c:160)
==32537==    by 0x4035146: pthread_cancel_init (unwind-forcedunwind.c:47)
==32537==    by 0x4035270: _Unwind_ForcedUnwind (unwind-forcedunwind.c:98)
==32537==    by 0x4032E80: __pthread_unwind (unwind.c:130)
==32537==
==32537==
==32537== 224 bytes in 1 blocks are still reachable in loss record 4 of 6
==32537==    at 0x4021E22: calloc (vg_replace_malloc.c:397)
==32537==    by 0x400F44D: _dl_check_map_versions (in /lib/ld-2.7.so)
==32537==    by 0x4011E3E: dl_open_worker (in /lib/ld-2.7.so)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x401154D: _dl_open (in /lib/ld-2.7.so)
==32537==    by 0x413E8B1: do_dlopen (dl-libc.c:86)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x413E9B0: dlerror_run (dl-libc.c:47)
==32537==    by 0x413EAD5: __libc_dlopen_mode (dl-libc.c:160)
==32537==    by 0x4035146: pthread_cancel_init (unwind-forcedunwind.c:47)
==32537==    by 0x4035270: _Unwind_ForcedUnwind (unwind-forcedunwind.c:98)
==32537==    by 0x4032E80: __pthread_unwind (unwind.c:130)
==32537==
==32537==
==32537== 618 bytes in 1 blocks are still reachable in loss record 5 of 6
==32537==    at 0x4021E22: calloc (vg_replace_malloc.c:397)
==32537==    by 0x400A2EA: _dl_new_object (in /lib/ld-2.7.so)
==32537==    by 0x4005FB2: _dl_map_object_from_fd (in /lib/ld-2.7.so)
==32537==    by 0x4007E0C: _dl_map_object (in /lib/ld-2.7.so)
==32537==    by 0x4011B46: dl_open_worker (in /lib/ld-2.7.so)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x401154D: _dl_open (in /lib/ld-2.7.so)
==32537==    by 0x413E8B1: do_dlopen (dl-libc.c:86)
==32537==    by 0x400DA15: _dl_catch_error (in /lib/ld-2.7.so)
==32537==    by 0x413E9B0: dlerror_run (dl-libc.c:47)
==32537==    by 0x413EAD5: __libc_dlopen_mode (dl-libc.c:160)
==32537==    by 0x4035146: pthread_cancel_init (unwind-forcedunwind.c:47)
==32537==
==32537==
==32537== 680 bytes in 5 blocks are possibly lost in loss record 6 of 6
==32537==    at 0x4021E22: calloc (vg_replace_malloc.c:397)
==32537==    by 0x4010C7B: _dl_allocate_tls (in /lib/ld-2.7.so)
==32537==    by 0x402C5A7: pthread_create@@GLIBC_2.1 (allocatestack.c:535)
==32537==    by 0x8048539: main (silly.c:20)
==32537==
==32537== LEAK SUMMARY:
==32537==    definitely lost: 0 bytes in 0 blocks.
==32537==      possibly lost: 680 bytes in 5 blocks.
==32537==    still reachable: 908 bytes in 5 blocks.
==32537==         suppressed: 0 bytes in 0 blocks.
sundb...@fs1:~$
sundb...@fs1:~$





Suppressions:

{
   pthread-exit-supp-00
   Memcheck:Leak
   fun:malloc
   fun:_dl_new_object
   fun:_dl_map_object_from_fd
   fun:_dl_map_object
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:do_dlopen
   fun:_dl_catch_error
   fun:dlerror_run
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
}
{
   pthread-exit-supp-00
   Memcheck:Leak
   fun:malloc
   fun:local_strdup
   fun:_dl_map_object
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:do_dlopen
   fun:_dl_catch_error
   fun:dlerror_run
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
   fun:_Unwind_ForcedUnwind
}
{
   pthread-exit-supp-00
   Memcheck:Leak
   fun:malloc
   fun:_dl_map_object_deps
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:do_dlopen
   fun:_dl_catch_error
   fun:dlerror_run
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
   fun:_Unwind_ForcedUnwind
   fun:__pthread_unwind
}
{
   pthread-exit-supp-00
   Memcheck:Leak
   fun:calloc
   fun:_dl_check_map_versions
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:do_dlopen
   fun:_dl_catch_error
   fun:dlerror_run
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
   fun:_Unwind_ForcedUnwind
   fun:__pthread_unwind
}
{
   pthread-exit-supp-00
   Memcheck:Leak
   fun:calloc
   fun:_dl_new_object
   fun:_dl_map_object_from_fd
   fun:_dl_map_object
   fun:dl_open_worker
   fun:_dl_catch_error
   fun:_dl_open
   fun:do_dlopen
   fun:_dl_catch_error
   fun:dlerror_run
   fun:__libc_dlopen_mode
   fun:pthread_cancel_init
}
{
   pthread-exit-supp-00
   Memcheck:Leak
   fun:calloc
   fun:_dl_allocate_tls
   fun:pthread_create@@GLIBC_2.1
   fun:main
}




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to