Valgrind (memcheck) 不显示泄漏/错误摘要。帮助?
我输入了>> valgrind ./myprogramname --tools-memcheck --leak-check=yes
但是当程序结束时,内存泄漏和错误的摘要没有打印出来。我正在运行 Centos 5.5,甚至升级到最新版本的 Valgrind 来尝试让它工作。当我打开泄漏检查选项之前,我已经看到它打印出问题摘要。有人遇到过这个问题吗?
我什至还设置了 --leak-check-full 等。就像 Valgrind 没有看到我设置的选项一样。
I typed in >>valgrind ./myprogramname --tools-memcheck --leak-check=yes
But the summary of the memory leaks and errors are not printing out when the program ends. I am running Centos 5.5 and have even upgraded to the latest version of Valgrind to try and get this to work. I have seen it print out a summary of problems before when I had the leak check option turn on. Has anybody ever ran into this issue?
And I have even set --leak-check-full, among other things. It is like Valgrind is not seeing my options that I am setting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,您将 valgrind 的参数放置在它们将被解释为程序参数的位置。
尝试
看看是否效果更好。
It looks to me like you are placing the arguments for valgrind in a location where they will be interpreted as arguments to your program.
Try
and see if that works better.