==17977== Memcheck, a memory error detector. ==17977== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==17977== Using LibVEX rev 1854, a library for dynamic binary translation. ==17977== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==17977== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. ==17977== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==17977== ==17977== My PID = 17977, parent PID = 8564. Prog and args are: ==17977== btnx ==17977== --17977-- --17977-- Command line --17977-- btnx --17977-- Startup, with flags: --17977-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp --17977-- -v --17977-- --tool=memcheck --17977-- --leak-check=full --17977-- --num-callers=40 --17977-- --log-file=valgrind.log --17977-- Contents of /proc/version: --17977-- Linux version 2.6.28-7-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-3ubuntu2) ) #20-Ubuntu SMP Mon Feb 9 15:43:21 UTC 2009 --17977-- Arch and hwcaps: X86, x86-sse1-sse2 --17977-- Page sizes: currently 4096, max supported 4096 --17977-- Valgrind library directory: /usr/lib/valgrind --17977-- Reading syms from /lib/ld-2.9.so (0x4000000) --17977-- Reading debug info from /lib/ld-2.9.so... --17977-- ... CRC mismatch (computed 2cec3325 wanted ec97c9c3) --17977-- object doesn't have a symbol table --17977-- Reading syms from /usr/sbin/btnx (0x8048000) --17977-- Reading debug info from /usr/sbin/btnx... --17977-- ... CRC mismatch (computed 64cb354b wanted 5a1e240e) --17977-- object doesn't have a symbol table --17977-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000) --17977-- object doesn't have a dynamic symbol table --17977-- Reading suppressions file: /usr/lib/valgrind/debian-libc6-dbg.supp --17977-- Reading suppressions file: /usr/lib/valgrind/default.supp --17977-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4020000) --17977-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4023000) --17977-- Reading syms from /usr/lib/libdaemon.so.0.4.0 (0x4042000) --17977-- Reading debug info from /usr/lib/libdaemon.so.0.4.0... --17977-- ... CRC mismatch (computed 0d1ed080 wanted 1844f6d7) --17977-- object doesn't have a symbol table --17977-- Reading syms from /lib/tls/i686/cmov/libc-2.9.so (0x4049000) --17977-- Reading debug info from /lib/tls/i686/cmov/libc-2.9.so... --17977-- ... CRC mismatch (computed 3c62a77d wanted ab08089b) --17977-- object doesn't have a symbol table ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400BF23: (within /lib/ld-2.9.so) ==17977== by 0x400325B: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A9EC: (within /lib/ld-2.9.so) ==17977== by 0x400325B: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400B6C1: (within /lib/ld-2.9.so) ==17977== by 0x400325B: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A6C6: (within /lib/ld-2.9.so) ==17977== by 0x4003364: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A6CE: (within /lib/ld-2.9.so) ==17977== by 0x4003364: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A9EC: (within /lib/ld-2.9.so) ==17977== by 0x4003364: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) --17977-- REDIR: 0x40c0a60 (rindex) redirected to 0x4027080 (rindex) --17977-- REDIR: 0x40ba520 (free) redirected to 0x4025a90 (free) --17977-- REDIR: 0x40bc930 (malloc) redirected to 0x4026c70 (malloc) --17977-- REDIR: 0x40c5390 (strchrnul) redirected to 0x4028410 (strchrnul) --17977-- REDIR: 0x40c05e0 (strlen) redirected to 0x4027430 (strlen) --17977-- REDIR: 0x40c2850 (memcpy) redirected to 0x40278a0 (memcpy) --17977-- REDIR: 0x40c23a0 (mempcpy) redirected to 0x4028470 (mempcpy) --17977-- REDIR: 0x40c0800 (strncmp) redirected to 0x40276a0 (strncmp) --17977-- REDIR: 0x40c2530 (stpcpy) redirected to 0x40280d0 (stpcpy) --17977-- REDIR: 0x4144140 (__strcpy_chk) redirected to 0x40289f0 (__strcpy_chk) ==17977== ==17977== Invalid read of size 1 ==17977== at 0x4028A18: __strcpy_chk (mc_replace_strmem.c:614) ==17977== by 0x804AA71: (within /usr/sbin/btnx) ==17977== by 0x80496C4: (within /usr/sbin/btnx) ==17977== by 0x405F774: (below main) (in /lib/tls/i686/cmov/libc-2.9.so) ==17977== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==17977== ==17977== Process terminating with default action of signal 11 (SIGSEGV) ==17977== Access not within mapped region at address 0x0 ==17977== at 0x4028A18: __strcpy_chk (mc_replace_strmem.c:614) ==17977== by 0x804AA71: (within /usr/sbin/btnx) ==17977== by 0x80496C4: (within /usr/sbin/btnx) ==17977== by 0x405F774: (below main) (in /lib/tls/i686/cmov/libc-2.9.so) ==17977== ==17977== ERROR SUMMARY: 14 errors from 7 contexts (suppressed: 0 from 0) ==17977== ==17977== 1 errors in context 1 of 7: ==17977== Invalid read of size 1 ==17977== at 0x4028A18: __strcpy_chk (mc_replace_strmem.c:614) ==17977== by 0x804AA71: (within /usr/sbin/btnx) ==17977== by 0x80496C4: (within /usr/sbin/btnx) ==17977== by 0x405F774: (below main) (in /lib/tls/i686/cmov/libc-2.9.so) ==17977== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==17977== ==17977== 1 errors in context 2 of 7: ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A9EC: (within /lib/ld-2.9.so) ==17977== by 0x4003364: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== 1 errors in context 3 of 7: ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A6CE: (within /lib/ld-2.9.so) ==17977== by 0x4003364: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== 1 errors in context 4 of 7: ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A6C6: (within /lib/ld-2.9.so) ==17977== by 0x4003364: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== 2 errors in context 5 of 7: ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400B6C1: (within /lib/ld-2.9.so) ==17977== by 0x400325B: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== 3 errors in context 6 of 7: ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400A9EC: (within /lib/ld-2.9.so) ==17977== by 0x400325B: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== ==17977== 5 errors in context 7 of 7: ==17977== Conditional jump or move depends on uninitialised value(s) ==17977== at 0x400BF23: (within /lib/ld-2.9.so) ==17977== by 0x400325B: (within /lib/ld-2.9.so) ==17977== by 0x40147B0: (within /lib/ld-2.9.so) ==17977== by 0x4000C1C: (within /lib/ld-2.9.so) ==17977== by 0x4000816: (within /lib/ld-2.9.so) ==17977== IN SUMMARY: 14 errors from 7 contexts (suppressed: 0 from 0) ==17977== ==17977== malloc/free: in use at exit: 18 bytes in 1 blocks. ==17977== malloc/free: 3 allocs, 2 frees, 470 bytes allocated. ==17977== ==17977== searching for pointers to 1 not-freed blocks. ==17977== checked 56,200 bytes. ==17977== ==17977== LEAK SUMMARY: ==17977== definitely lost: 0 bytes in 0 blocks. ==17977== possibly lost: 0 bytes in 0 blocks. ==17977== still reachable: 18 bytes in 1 blocks. ==17977== suppressed: 0 bytes in 0 blocks. ==17977== Reachable blocks (those to which a pointer was found) are not shown. ==17977== To see them, rerun with: --leak-check=full --show-reachable=yes --17977-- memcheck: sanity checks: 0 cheap, 1 expensive --17977-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --17977-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10 --17977-- memcheck: auxmaps_L2: 0 searches, 0 nodes --17977-- memcheck: SMs: n_issued = 8 (128k, 0M) --17977-- memcheck: SMs: n_deissued = 0 (0k, 0M) --17977-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M) --17977-- memcheck: SMs: max_undefined = 0 (0k, 0M) --17977-- memcheck: SMs: max_defined = 23 (368k, 0M) --17977-- memcheck: SMs: max_non_DSM = 8 (128k, 0M) --17977-- memcheck: max sec V bit nodes: 0 (0k, 0M) --17977-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0) --17977-- memcheck: max shadow mem size: 432k, 0M --17977-- translate: fast SP updates identified: 2,105 ( 88.8%) --17977-- translate: generic_known SP updates identified: 147 ( 6.2%) --17977-- translate: generic_unknown SP updates identified: 116 ( 4.8%) --17977-- tt/tc: 4,250 tt lookups requiring 4,319 probes --17977-- tt/tc: 4,250 fast-cache updates, 2 flushes --17977-- transtab: new 2,121 (45,687 -> 660,282; ratio 144:10) [0 scs] --17977-- transtab: dumped 0 (0 -> ??) --17977-- transtab: discarded 0 (0 -> ??) --17977-- scheduler: 32,375 jumps (bb entries). --17977-- scheduler: 0/2,233 major/minor sched events. --17977-- sanity: 1 cheap, 1 expensive checks. --17977-- exectx: 769 lists, 12 contexts (avg 0 per list) --17977-- exectx: 19 searches, 7 full compares (368 per 1000) --17977-- exectx: 0 cmp2, 30 cmp4, 0 cmpAll --17977-- errormgr: 8 supplist searches, 720 comparisons during search --17977-- errormgr: 14 errlist searches, 36 comparisons during search