|
|
finding memory leaks with librcheck or libmalloc
|
|
12/11/2009 12:17 PM
post43676
|
finding memory leaks with librcheck or libmalloc
Hi,
I'm trying to find some memory leak on a running program on my target.
I've seen the subject wiki3513, but when I set the following environment variable:
export LD_PRELOAD=librcheck.so.1
and run my program, I'v the error message :
# unknown symbol: pthread_setname_np
unknown symbol: __ldd_deregister_eh
unknown symbol: __ldd_register_eh
Could not resolve all symbols
How can I fix that?
Is it possible to do the same thing with the libmalloc?
With the libmalloc tool I get a dump file (using MALLOC_DUMP_LEAKS=/tmp/leak_mem), but I miss the allocation backtrace.
Maÿlis
|
|
|
|
|