|
From: John R. <jr...@bi...> - 2013-06-22 00:10:14
|
> $ ~/local/bin/valgrind -d -d -d -v -v -v --leak-check=yes ./clock_gettime CLOCK_MONOTONIC
> It looks like this might be the problem. The only section I'm getting
> that starts with teh Load initial debug info looks like this:
>
> --1688:1:main Load initial debug info
> --1688-- Reading syms from /home/root/software/clock_gettime
> --1688-- svma 0x00000084ac, avma 0x00000084ac
> --1688-- Reading syms from /lib/ld-2.12.2.so
> --1688-- svma 0x0000000790, avma 0x0004000790
> --1688-- Considering /lib/ld-2.12.2.so ..
> --1688-- .. CRC mismatch (computed ebfc32b7 wanted 596e7f90)
> --1688-- Considering /lib/.debug/ld-2.12.2.so ..
> --1688-- .. CRC mismatch (computed 4cc18107 wanted 596e7f90)
> --1688-- object doesn't have a symbol table
>
> The open() syscalls in the strace out I got from the approach you
> described in your other email didn't seem like they were mentioning a
> debug library either (I've attached that output).
>
> The stuff in the debug output sounds like its saying the library is
> there but is corrupt (or possibly the wrong version or something)?
The correct debug info cannot be found. The first attempted location was inside
the ld-2.12.2.so itself:
> --1688-- Considering /lib/ld-2.12.2.so ..
> --1688-- .. CRC mismatch (computed ebfc32b7 wanted 596e7f90)
but the debuginfo was not there. (Perhaps it was empty, such as removed
by "strip" or "ld -S".)
The second attempted location was:
> --1688-- Considering /lib/.debug/ld-2.12.2.so ..
> --1688-- .. CRC mismatch (computed 4cc18107 wanted 596e7f90)
and that file does have debuginfo, but it does not match.
The third attempted location was (from the strace.out):
1412 open("/usr/lib/debug/lib/ld-2.12.2.so", O_RDONLY) = -1 ENOENT (No such file or directory)
but that file was not found.
So /lib/ld-2.12.2.so does not match /lib/.debug/ld-2.12.2.so.
Either the wrong version was installed in the first place, or an update
was performed on one file but not the other. Check the dates via "ls -l"
(and follow symlinks until you get to regular files.)
They should be close to each other: no more than about a minute apart.
Try a re-install of *both* files.
|