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



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to