0

我正在尝试使用 waf 运行 valgrind。命令是 ./waf --command-template="valgrind %s" --run 程序名。

我收到 valgrind 的内部错误。如果连 valgrind 都失败了,我还能尝试什么?

--6446-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--6446-- si_code=80;  Faulting address: 0x0;  sp: 0x40b3c9df0

valgrind: the 'impossible' happened:
   Killed by fatal signal
==6446==    at 0x38058236: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0x38021ADC: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0x38021CCD: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0x380902A7: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0x3809F7D5: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0x3809FA5A: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0x380BBEAD: ??? (in /usr/lib/valgrind/memcheck-amd64-linux)
==6446==    by 0xDEADBEEFDEADBEEE: ???
==6446==    by 0xDEADBEEFDEADBEEE: ???
==6446==    by 0xDEADBEEFDEADBEEE: ???
4

1 回答 1

-1

我已经很久没有尝试过了,但是您可以使用 Boehm GC 来检测 C/C++ 代码中的泄漏。

http://www.hboehm.info/gc/leak.html

于 2012-07-09T03:18:24.710 回答