==13139== Memcheck, a memory error detector. ==13139== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==13139== Using LibVEX rev 1854, a library for dynamic binary translation. ==13139== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==13139== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework. ==13139== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==13139== ==13139== My PID = 13139, parent PID = 13078. Prog and args are: ==13139== ttysnoops ==13139== --13139-- --13139-- Command line --13139-- ttysnoops --13139-- Startup, with flags: --13139-- -v --13139-- --tool=memcheck --13139-- --leak-check=full --13139-- --num-callers=40 --13139-- --log-file=valgrind.log --13139-- Contents of /proc/version: --13139-- Linux version 2.6.27-11-generic (buildd@rothera) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Thu Jan 29 19:24:39 UTC 2009 --13139-- Arch and hwcaps: X86, x86-sse1-sse2 --13139-- Page sizes: currently 4096, max supported 4096 --13139-- Valgrind library directory: /usr/lib/valgrind --13139-- Reading syms from /lib/ld-2.8.90.so (0x4000000) --13139-- Reading debug info from /lib/ld-2.8.90.so... --13139-- ... CRC mismatch (computed 376a4995 wanted 3e537389) --13139-- object doesn't have a symbol table --13139-- Reading syms from /usr/sbin/ttysnoops (0x8048000) --13139-- object doesn't have a symbol table --13139-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000) --13139-- object doesn't have a dynamic symbol table --13139-- Reading suppressions file: /usr/lib/valgrind/default.supp --13139-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x401F000) --13139-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4022000) --13139-- Reading syms from /lib/tls/i686/cmov/libcrypt-2.8.90.so (0x403B000) --13139-- Reading debug info from /lib/tls/i686/cmov/libcrypt-2.8.90.so... --13139-- ... CRC mismatch (computed 21ca440d wanted 20980c03) --13139-- object doesn't have a symbol table --13139-- Reading syms from /lib/tls/i686/cmov/libc-2.8.90.so (0x406D000) --13139-- Reading debug info from /lib/tls/i686/cmov/libc-2.8.90.so... --13139-- ... CRC mismatch (computed dde89453 wanted 2e106c0f) --13139-- object doesn't have a symbol table --13139-- REDIR: 0x40e4770 (rindex) redirected to 0x4026080 (rindex) --13139-- REDIR: 0x40e0830 (malloc) redirected to 0x4025c70 (malloc) --13139-- REDIR: 0x40e3df0 (strcpy) redirected to 0x4026490 (strcpy) --13139-- REDIR: 0x40e3d80 (strcmp) redirected to 0x4026730 (strcmp) --13139-- REDIR: 0x40de420 (free) redirected to 0x4024a90 (free) --13139-- REDIR: 0x40e4620 (strncpy) redirected to 0x4026560 (strncpy) --13139-- REDIR: 0x40e5b70 (memcpy) redirected to 0x40268a0 (memcpy) --13140-- REDIR: 0x40e5160 (memchr) redirected to 0x4026850 (memchr) --13140-- REDIR: 0x40e4510 (strncmp) redirected to 0x40266a0 (strncmp) --13139-- REDIR: 0x40e6780 (strchrnul) redirected to 0x4027410 (strchrnul) --13139-- REDIR: 0x40e42f0 (strlen) redirected to 0x4026430 (strlen) --13139-- REDIR: 0x40e56c0 (mempcpy) redirected to 0x4027470 (mempcpy) --13139-- REDIR: 0x40e4510 (strncmp) redirected to 0x40266a0 (strncmp) ==13139== Invalid read of size 1 ==13139== at 0x4026940: memcpy (mc_replace_strmem.c:402) ==13139== by 0x80492D1: (within /usr/sbin/ttysnoops) ==13139== by 0x804934C: (within /usr/sbin/ttysnoops) ==13139== by 0x4098947: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x804921B: (within /usr/sbin/ttysnoops) ==13139== by 0x4098947: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40D7A55: _IO_file_xsputn (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40B1836: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40ACC6D: vfprintf (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x804A773: (within /usr/sbin/ttysnoops) ==13139== by 0x804A4BC: (within /usr/sbin/ttysnoops) ==13139== by 0x4083684: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== Address 0x17f is not stack'd, malloc'd or (recently) free'd ==13139== ==13139== Process terminating with default action of signal 11 (SIGSEGV) ==13139== Access not within mapped region at address 0x17F ==13139== at 0x4026940: memcpy (mc_replace_strmem.c:402) ==13139== by 0x80492D1: (within /usr/sbin/ttysnoops) ==13139== by 0x804934C: (within /usr/sbin/ttysnoops) ==13139== by 0x4098947: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x804921B: (within /usr/sbin/ttysnoops) ==13139== by 0x4098947: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40D7A55: _IO_file_xsputn (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40B1836: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40ACC6D: vfprintf (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x804A773: (within /usr/sbin/ttysnoops) ==13139== by 0x804A4BC: (within /usr/sbin/ttysnoops) ==13139== by 0x4083684: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== ==13139== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 13 from 1) ==13139== ==13139== 1 errors in context 1 of 1: ==13139== Invalid read of size 1 ==13139== at 0x4026940: memcpy (mc_replace_strmem.c:402) ==13139== by 0x80492D1: (within /usr/sbin/ttysnoops) ==13139== by 0x804934C: (within /usr/sbin/ttysnoops) ==13139== by 0x4098947: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x804921B: (within /usr/sbin/ttysnoops) ==13139== by 0x4098947: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40D7A55: _IO_file_xsputn (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40B1836: (within /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x40ACC6D: vfprintf (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== by 0x804A773: (within /usr/sbin/ttysnoops) ==13139== by 0x804A4BC: (within /usr/sbin/ttysnoops) ==13139== by 0x4083684: (below main) (in /lib/tls/i686/cmov/libc-2.8.90.so) ==13139== Address 0x17f is not stack'd, malloc'd or (recently) free'd --13139-- --13139-- supp: 13 dl-hack3-cond-1 ==13139== ==13139== IN SUMMARY: 1 errors from 1 contexts (suppressed: 13 from 1) ==13139== ==13139== malloc/free: in use at exit: 0 bytes in 0 blocks. ==13139== malloc/free: 3 allocs, 3 frees, 4,832 bytes allocated. ==13139== ==13139== All heap blocks were freed -- no leaks are possible. --13139-- memcheck: sanity checks: 0 cheap, 1 expensive --13139-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --13139-- memcheck: auxmaps_L1: 0 searches, 0 cmps, ratio 0:10 --13139-- memcheck: auxmaps_L2: 0 searches, 0 nodes --13139-- memcheck: SMs: n_issued = 8 (128k, 0M) --13139-- memcheck: SMs: n_deissued = 0 (0k, 0M) --13139-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M) --13139-- memcheck: SMs: max_undefined = 0 (0k, 0M) --13139-- memcheck: SMs: max_defined = 24 (384k, 0M) --13139-- memcheck: SMs: max_non_DSM = 8 (128k, 0M) --13139-- memcheck: max sec V bit nodes: 0 (0k, 0M) --13139-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0) --13139-- memcheck: max shadow mem size: 432k, 0M --13139-- translate: fast SP updates identified: 2,477 ( 89.8%) --13139-- translate: generic_known SP updates identified: 161 ( 5.8%) --13139-- translate: generic_unknown SP updates identified: 119 ( 4.3%) --13139-- tt/tc: 4,810 tt lookups requiring 4,875 probes --13139-- tt/tc: 4,810 fast-cache updates, 2 flushes --13139-- transtab: new 2,394 (50,661 -> 741,423; ratio 146:10) [0 scs] --13139-- transtab: dumped 0 (0 -> ??) --13139-- transtab: discarded 0 (0 -> ??) --13139-- scheduler: 39,992 jumps (bb entries). --13139-- scheduler: 0/2,563 major/minor sched events. --13139-- sanity: 1 cheap, 1 expensive checks. --13139-- exectx: 769 lists, 12 contexts (avg 0 per list) --13139-- exectx: 20 searches, 8 full compares (400 per 1000) --13139-- exectx: 0 cmp2, 30 cmp4, 0 cmpAll --13139-- errormgr: 7 supplist searches, 177 comparisons during search --13139-- errormgr: 14 errlist searches, 36 comparisons during search