如何获取valgrind的错误报告?

时间:2017-09-15 00:56:24

标签: memory-leaks valgrind

首先我这样跑:

valgrind --leak-check=full --show-leak-kinds=all test_proc

和日志:

==30349== For counts of detected and suppressed errors, rerun with: -v
==30349== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 0 from 0)

所以我使用-v

运行

valgrind -v --leak-check=full --show-leak-kinds=all test_proc

和日志:

==8020== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 0 from 0)
==8020== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 0 from 0)

我找不到其他错误关键字。错误在哪里?

1 个答案:

答案 0 :(得分:1)

我想我已经弄明白了,7代表possibly lostdefinitely lost记录的总数。