1

I have a main.c that's using library of 1000's of files

is there a method to ask valgrnd to look for memory leaks only in main.c rather than digging through the library ?

also if valgrind reports an error like this within the library

vex x86->IR: unhandled instruction bytes: 0xC5 0xF8 0x10 0x83 ==1796== valgrind: Unrecognised instruction at address 0x812b234.

is the ability to use valgrind toast ?

4

1 回答 1

0

您可以使用抑制文件告诉 valgrind 忽略错误,包括内存泄漏。

该指令0xC5 0xF8 0x10 0x83可能是 VEX 编码指令的开始,例如vmovups. 您将需要具有 AVX 支持的更新版本的 valgrind。

于 2019-10-03T16:45:46.067 回答