|
From: Eyal L. <ey...@ey...> - 2005-01-23 12:34:30
|
Please do not ignore the original report, the problem is still there. Attached is a program that shows how the backtrace is displayed when in main but is missing from a thread. ==19059== Memcheck, a memory error detector for x86-linux. ==19059== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==19059== Using valgrind-2.3.0.CVS, a program supervision framework for x86-linux. ==19059== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==19059== For more details, rerun with: -v ==19059== /home/eyal/zz/zz36.c(75) testing in main ==19059== Conditional jump or move depends on uninitialised value(s) ==19059== at 0x1B905D32: memcmp (mac_replace_strmem.c:325) <<<<< good stack ***** ==19059== by 0x8048636: func (zz36.c:23) ==19059== by 0x8048831: main (zz36.c:77) 0 /home/eyal/zz/zz36.c(80) testing in thread /home/eyal/zz/zz36.c(38) will pthread_attr_init /home/eyal/zz/zz36.c(41) pthread_attr_init=0 ==19059== ==19059== Thread 2: ==19059== Conditional jump or move depends on uninitialised value(s) ==19059== at 0x1B905D32: memcmp (mac_replace_strmem.c:325) <<<<<< missing stack ***** 0 /home/eyal/zz/zz36.c(60) joined /home/eyal/zz/zz36.c(65) pthread_attr_destroy=0 /home/eyal/zz/zz36.c(85) test done ==19059== ==19059== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 13 from 1) ==19059== malloc/free: in use at exit: 68 bytes in 1 blocks. ==19059== malloc/free: 3 allocs, 2 frees, 70 bytes allocated. ==19059== For counts of detected errors, rerun with: -v ==19059== searching for pointers to 1 not-freed blocks. ==19059== checked 9860212 bytes. ==19059== ==19059== ==19059== 68 bytes in 1 blocks are possibly lost in loss record 1 of 1 ==19059== at 0x1B904FE5: calloc (vg_replace_malloc.c:175) ==19059== by 0x1B8F25A8: (within /lib/ld-2.3.2.so) ==19059== by 0x1B8F287B: _dl_allocate_tls (in /lib/ld-2.3.2.so) ==19059== by 0x1B92424A: allocate_stack (in /lib/tls/libpthread-0.60.so) ==19059== by 0x1B923C54: pthread_create@@GLIBC_2.1 (in /lib/tls/libpthread-0.60.so) ==19059== by 0x80486DF: test (zz36.c:43) ==19059== by 0x8048868: main (zz36.c:82) ==19059== ==19059== LEAK SUMMARY: ==19059== definitely lost: 0 bytes in 0 blocks. ==19059== possibly lost: 68 bytes in 1 blocks. ==19059== still reachable: 0 bytes in 0 blocks. ==19059== suppressed: 0 bytes in 0 blocks. ==19059== Reachable blocks (those to which a pointer was found) are not shown. ==19059== To see them, rerun with: --show-reachable=yes -- Eyal Lebedinsky (ey...@ey...) <http://samba.org/eyal/> attach .zip as .dat |