3
首先,我像这样运行:如何获取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)
我找不到其他错误关键字。错误在哪里?
整个报告只有2行吗?你有没有试过'--log-file ='在文件中写入报告,当终端出现乱码时有用 – dlmeetei
是的,我用'--log-file',只有这两行包含'error' – Sato