From: Vignesh <mv...@ya...> - 2014-05-26 09:53:23
|
Thank you. My executable was a statically linked one. Will change it to a dynamic executable and hope to have no issues. -Vignesh On Saturday, 24 May 2014, 23:24, Philippe Waroquiers <phi...@sk...> wrote: On Sat, 2014-05-24 at 12:21 +0100, Vignesh wrote: > > ==268== HEAP SUMMARY: > ==268== in use at exit: 0 bytes in 0 blocks > ==268== total heap usage: 0 allocs, 0 frees, 0 bytes allocated This seems to indicate that malloc interception is not working. Try to run with -v -v -v -d -d -d -trace-redir=yes and look in the trace to see what is going wrong. Note that your application cannot be statically linked, otherwise redir of malloc et al does not work. (the dynamic linker must be invoked). The malloc library itself can be statically linked but you need to use --soname-synonyms=somalloc=NONE arg then. Philippe |