A few days back, I was using valgrind on
Ertf; when I stumbled upon an interesting bug. On 64-bit Arch linux systems, valgrind 3.5.0-5 was showing a problem with getimeofday(). Finally, I had found a problem with Arch linux [the first since
installation.]. However, the very next day,
pacman -Syu
showed valgrind 3.5.0-6, which had the bug fixed. To nail down the bug, I had tested valgrind with a simple program calling
ecore_time_get(). The output is below.
==4230== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==4230== Command: ./try_timer
==4230==
./try_timer: error while loading shared libraries: libecore-ver-pre-svn-05.so.0: cannot open shared object file: No such file or directory
==4230== Jump to the invalid address stated on the next line
==4230== at 0x426: ???
==4230== by 0x400D604: _dl_signal_error (in /lib/ld-2.12.so)
==4230== by 0x400C70D: _dl_map_object_deps (in /lib/ld-2.12.so)
==4230== by 0x4002BA3: dl_main (in /lib/ld-2.12.so)
==4230== by 0x4013B6D: _dl_sysdep_start (in /lib/ld-2.12.so)
==4230== by 0x40046B6: _dl_start (in /lib/ld-2.12.so)
==4230== by 0x4000A97: ??? (in /lib/ld-2.12.so)
==4230== Address 0x426 is not stack'd, malloc'd or (recently) free'd
==4230==
==4230==
==4230== Process terminating with default action of signal 11 (SIGSEGV)
==4230== Bad permissions for mapped region at address 0x426
==4230== at 0x426: ???
==4230== by 0x400D604: _dl_signal_error (in /lib/ld-2.12.so)
==4230== by 0x400C70D: _dl_map_object_deps (in /lib/ld-2.12.so)
==4230== by 0x4002BA3: dl_main (in /lib/ld-2.12.so)
==4230== by 0x4013B6D: _dl_sysdep_start (in /lib/ld-2.12.so)
==4230== by 0x40046B6: _dl_start (in /lib/ld-2.12.so)
==4230== by 0x4000A97: ??? (in /lib/ld-2.12.so)
==4230==
==4230== HEAP SUMMARY:
==4230== in use at exit: 0 bytes in 0 blocks
==4230== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==4230==
==4230== All heap blocks were freed -- no leaks are possible
==4230==
==4230== For counts of detected and suppressed errors, rerun with: -v
==4230== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 3 from 3)
No comments:
Post a Comment