|
From: Philippe W. <phi...@sk...> - 2014-10-09 21:54:17
|
On Wed, 2014-10-08 at 14:46 -0400, Woodrow Barlow wrote:
> Basically, Valgrind doesn't detect any heap usage even though I've
> used the heap. Why might this be? Are any of my assumptions (below)
> wrong?
The 3 known causes are:
A statically linked
B LD_PRELOAD not supported/not configured
C linked with a library whose soname does not match the expected name
The tests you have done exclude causes A and B.
To exclude C, can you check the soname of the library that provides
malloc ?
I.e. something like:
readelf -d /lib/libc.so.6 | grep SONAME
giving
0x0000000e (SONAME) Library soname: [libc.so.6]
The resulting soname should match the default expected soname pattern,
i.e. on a linux, it is expected to match libc.so*
If the soname of your lib does not match the above, then you can use
--soname-synonyms=somalloc=xxxxxxxx
where xxxxxxxx is something which matches your soname
Assuming the above is not the problem, then something else/unknown is
happening.
Can you then run a small test program dynamically linked, that does
a malloc call
and use valgrind options
-v -v -v -d -d -d --trace-malloc=yes --trace-redir=yes
and send the resulting log file?
If the file is big, you can compress it, and send it only to me.
Hoping this helps
Philippe
|