|
From: Philippe W. <phi...@sk...> - 2015-04-03 16:20:56
|
On Fri, 2015-04-03 at 14:47 +0100, lmx wrote:
> how can total heap be:
> total heap usage: 0 allocs, 0 frees, 0 bytes allocated ???
>
> even with "valgrind --tool=memcheck ./program"
>
> i get the same :(
>
> does any one knows how to track the mallocs and free ??
The classical explanations for the above are:
1. the application is statically linked
2. the application is using an alternate malloc library
(e.g. tcmalloc or jemalloc or ...)
3. the dynamic loader does not support LD_PRELOAD
For 1 and 2, you can use --soname-synonyms=... to indicate to
valgrind that the malloc lib is static or in which soname it is found.
For 3, you have to find (or recompile) a dynamic loader
that supports LD_PRELOAD.
Philippe
|