hdh@gunship [23:45:39]:~/e1/KDE4-trunk/bag/backtraces/testcase $ valgrind -v ./testcase ==8987== Memcheck, a memory error detector. ==8987== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==8987== Using LibVEX rev 1732, a library for dynamic binary translation. ==8987== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==8987== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation framework. ==8987== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==8987== --8987-- Command line --8987-- ./testcase --8987-- Startup, with flags: --8987-- -v --8987-- Contents of /proc/version: --8987-- Linux version 2.6.22-11-generic (buildd@yellow) (gcc version 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)) #1 SMP Mon Sep 17 03:18:44 GMT 2007 --8987-- Arch and hwcaps: AMD64, amd64-sse2 --8987-- Page sizes: currently 4096, max supported 4096 --8987-- Valgrind library directory: /usr/lib/valgrind --8987-- Reading syms from /home/hdh/e1/KDE4-trunk/bag/backtraces/testcase/testcase (0x400000) --8987-- Reading syms from /lib/ld-2.6.1.so (0x4000000) --8987-- Reading debug info from /lib/ld-2.6.1.so... --8987-- ... CRC mismatch (computed F18656F0 wanted 247B0180) --8987-- object doesn't have a symbol table --8987-- Reading syms from /usr/lib/valgrind/amd64-linux/memcheck (0x38000000) --8987-- object doesn't have a dynamic symbol table --8987-- Reading suppressions file: /usr/lib/valgrind/default.supp vex amd64->IR: unhandled instruction bytes: 0x66 0x66 0x66 0x66 ==8987== valgrind: Unrecognised instruction at address 0x4016321. ==8987== Your program just tried to execute an instruction that Valgrind ==8987== did not recognise. There are two possible reasons for this. ==8987== 1. Your program has a bug and erroneously jumped to a non-code ==8987== location. If you are running Memcheck and you just saw a ==8987== warning about a bad jump, it's probably your program's fault. ==8987== 2. The instruction is legitimate but Valgrind doesn't handle it, ==8987== i.e. it's Valgrind's fault. If you think this is the case or ==8987== you are not sure, please let us know and we'll try to fix it. ==8987== Either way, Valgrind will now raise a SIGILL signal which will ==8987== probably kill your program. ==8987== ==8987== Process terminating with default action of signal 4 (SIGILL) ==8987== Illegal opcode at address 0x4016321 ==8987== at 0x4016321: (within /lib/ld-2.6.1.so) ==8987== by 0x4007909: (within /lib/ld-2.6.1.so) ==8987== by 0x4007C65: (within /lib/ld-2.6.1.so) ==8987== by 0x4003329: (within /lib/ld-2.6.1.so) ==8987== by 0x4014457: (within /lib/ld-2.6.1.so) ==8987== by 0x400230A: (within /lib/ld-2.6.1.so) ==8987== by 0x4000A67: (within /lib/ld-2.6.1.so) ==8987== ==8987== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==8987== malloc/free: in use at exit: 0 bytes in 0 blocks. ==8987== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==8987== ==8987== All heap blocks were freed -- no leaks are possible. --8987-- memcheck: sanity checks: 0 cheap, 1 expensive --8987-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --8987-- memcheck: auxmaps: 0 searches, 0 comparisons --8987-- memcheck: SMs: n_issued = 7 (112k, 0M) --8987-- memcheck: SMs: n_deissued = 0 (0k, 0M) --8987-- memcheck: SMs: max_noaccess = 524287 (8388592k, 8191M) --8987-- memcheck: SMs: max_undefined = 0 (0k, 0M) --8987-- memcheck: SMs: max_defined = 1 (16k, 0M) --8987-- memcheck: SMs: max_non_DSM = 7 (112k, 0M) --8987-- memcheck: max sec V bit nodes: 0 (0k, 0M) --8987-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0) --8987-- memcheck: max shadow mem size: 4256k, 4M --8987-- translate: fast SP updates identified: 117 ( 88.6%) --8987-- translate: generic_known SP updates identified: 10 ( 7.5%) --8987-- translate: generic_unknown SP updates identified: 5 ( 3.7%) --8987-- tt/tc: 644 tt lookups requiring 643 probes --8987-- tt/tc: 644 fast-cache updates, 2 flushes --8987-- transtab: new 322 (6,973 -> 117,968; ratio 169:10) [0 scs] --8987-- transtab: dumped 0 (0 -> ??) --8987-- transtab: discarded 0 (0 -> ??) --8987-- scheduler: 808 jumps (bb entries). --8987-- scheduler: 0/328 major/minor sched events. --8987-- sanity: 1 cheap, 1 expensive checks. --8987-- exectx: 30,011 lists, 0 contexts (avg 0 per list) --8987-- exectx: 0 searches, 0 full compares (0 per 1000) --8987-- exectx: 0 cmp2, 0 cmp4, 0 cmpAll Illegal instruction (core dumped)