Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
哪个 openSUSE rpm 包含 dmalloc?没有存储库有它。尝试从为 SLE 12 找到的 src.rpm 构建它。但是它不包含 libdmalloc* 库。如何做 LD_PRELOAD="libdmalloc.so" ./my_program?还是没有必要?
无需 LD_PRELOAD 即可工作,似乎不再需要,只是简单:
1) eval `dmalloc -d 0 -l leak.log -p log-non-free` 2) ./my_program
然而程序应该被构建并与 dmalloc 链接:
#include <dmalloc.h>
关联:
$ g++ -L/usr/lib64 -ldmalloc ...