I get same stuff from valgrind for similar source code. I use Ubuntu 9.10 x86
==3058== HEAP SUMMARY: ==3058== in use at exit: 28 bytes in 1 blocks ==3058== total heap usage: 44 allocs, 43 frees, 122,820 bytes allocated ==3058== ==3058== Searching for pointers to 1 not-freed blocks ==3058== Checked 138,468 bytes ==3058== ==3058== 28 bytes in 1 blocks are still reachable in loss record 1 of 1 ==3058== at 0x4024C1C: malloc (vg_replace_malloc.c:195) ==3058== by 0x400C01E: _dl_map_object_deps (dl-deps.c:506) ==3058== by 0x40117E0: dl_open_worker (dl-open.c:297) ==3058== by 0x400D485: _dl_catch_error (dl-error.c:178) ==3058== by 0x401119F: _dl_open (dl-open.c:586) ==3058== by 0x42930C1: do_dlopen (dl-libc.c:86) ==3058== by 0x400D485: _dl_catch_error (dl-error.c:178) ==3058== by 0x42931C0: dlerror_run (dl-libc.c:47) ==3058== by 0x42932DA: __libc_dlopen_mode (dl-libc.c:160) ==3058== by 0x4185876: pthread_cancel_init (unwind-forcedunwind.c:53) ==3058== by 0x4181EC3: pthread_cancel (pthread_cancel.c:40) ==3058== by 0x804D7ED: main (main.c:149) ==3058== ==3058== LEAK SUMMARY: ==3058== definitely lost: 0 bytes in 0 blocks ==3058== indirectly lost: 0 bytes in 0 blocks ==3058== possibly lost: 0 bytes in 0 blocks ==3058== still reachable: 28 bytes in 1 blocks ==3058== suppressed: 0 bytes in 0 blocks ==3058== ==3058== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 6) --3058-- --3058-- used_suppression: 27 Debian libc6 (2.10.x) stripped dynamic linker ==3058== ==3058== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 27 from 6) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/50722 Title: Memory problems on pthread_cancel() -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs