开发者

Valgrind (memcheck) is not displaying the leak/error summary. Help?

开发者 https://www.devze.com 2023-03-18 13:49 出处:网络
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

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 eve开发者_JS百科n set --leak-check-full, among other things. It is like Valgrind is not seeing my options that I am setting.


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

valgrind --tool=memcheck --leak-check=yes ./myprogramname

and see if that works better.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号