Which openSUSE rpm contains dmalloc? No repository have it. Tried to build it from src.rpm found for SLE 12. However it does not contain libdmalloc* libraries. How to do LD_PRELOAD="libdmalloc.so" ./my_program? Or it is not necessary?
Asked
Active
Viewed 47 times
1 Answers
0
Works without LD_PRELOAD, seems not necessary any more, just simple:
1) eval `dmalloc -d 0 -l leak.log -p log-non-free`
2) ./my_program
However program should be built and linked with dmalloc:
#include <dmalloc.h>
Link:
$ g++ -L/usr/lib64 -ldmalloc ...

Aleksey Kontsevich
- 4,671
- 4
- 46
- 101