当我在我的代码上运行Valgrind时,我得到了数千个实例
12 bytes in 1 blocks are possibly lost in loss record 545 of 29,459从不同的帖子中,我能够确定这不是一个bug,而是一个特性,因为它是gnu库为stl提供高效分配的方式。也就是说,看到几千个这样的漏洞,很难找到真正的bug。如何将Valgrind设置为不显示这些错误?
我安装了valgrind-3.13.0valgrind --tool=massif --massif-out-file=/tmpbugreport.java.com/bugreport/crash.jsp==12441==
==12441== Process terminating with default action of signal 6 (SIGABRT