首先我以这种方式运行:
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)
我找不到其他错误关键字。错误在哪里?
--log-file=
将报告写入文件中吗?当终端混乱时,这非常有用。 - dlmeetei--log-file
,只有这两行包含了error
这个词。 - Sato