When I run valgrind on a 64bit app it appears to work ok.
When I switch to running valgrind on a 32bit app I get lots of system related
messages (ld-2.24.so, libc-2.24.so, pthread-2.24.so … etc) like these
[[snip]]
As a test I have tried just installing 32bit valgrind and I get the same
results.
What am I missing to get my 32bit app not to print 100’s of these messages ?
What other useful info can I provide ?
1) Check the default suppressions file; something like
/usr/lib*/valgrind/default.supp
("strace -o strace.out -e trace=file valgrind /bin/date" to find the exact
names).
Make sure it has suppressions for ld-2.24 like on x86_64, such as:
{
dl-hack3-cond-1
Memcheck:Cond
obj:*/lib*/ld-2.24*.so*
obj:*/lib*/ld-2.24*.so*
obj:*/lib*/ld-2.24*.so*
}
2) Run with "--trace-origins=yes" to get better clues to what memcheck was
thinking,
or where the problem actually started.
3) Install the debuginfo packages for glibc and other system libraries
in order to get more information in tracebacks. You get line numbers
and source code (!!) to help you understand what's happening.
4) Run under vgdb: valgrind --vgdb-error=0 --trace-origins=yes /bin/date
and have another terminal window available. This may seem cumbersome at first,
but you get exquisite control and visibility to what is going on. Hint:
after initialization, then the first "unscripted" command is:
(gdb) continue
which can be abbreviated "c".
5) Either under vdbg or plain gdb, examine the instruction stream
that surrounds the pc of the fault:
(gdb) x/15i $pc-10*4
Try to identify what's going on.
6) There may be only a dozen or so locations (tracebacks) that cause most
of the problems, so generate (and use) suppressions for them.
"valgrind --gen-suppressions=yes ..." and so on.
--
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users