I'm checking out valgrind for the first time and I like the current results, however I'm curious to whether valgrind will always return memory leaks that it has encountered or if some may get away from it, specificity depending on how the program is shut down. For example, if a program is killed using 'killall -9 program'.
我第一次检查了valgrind,我喜欢现在的结果,但是我好奇的是valgrind是否总是会返回它遇到的内存泄漏或者是否会有其他的泄漏,具体取决于程序是如何关闭的。例如,如果一个程序被“killall -9程序”杀死。
Here's the result of my current program, stopped by using 'end process' in the Ubuntu System Monitor
这是我当前程序的结果,在Ubuntu系统监视器中使用“end process”来停止
==10182== HEAP SUMMARY:
==10182== in use at exit: 0 bytes in 0 blocks
==10182== total heap usage: 8,747,225 allocs, 8,747,225 frees, 1,352,535,387 bytes allocated
==10182==
==10182== All heap blocks were freed -- no leaks are possible
==10182==
==10182== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Does this result confirm that there was literally zero leaks or context errors?
这个结果是否确实没有泄漏或上下文错误?
1 个解决方案
#1
0
According to this, Vallgrind can't detect stack out of bounds, global out of bounds and use after return.
据此,Vallgrind不能检测堆栈越界、全局越界以及返回后使用。
#1
0
According to this, Vallgrind can't detect stack out of bounds, global out of bounds and use after return.
据此,Vallgrind不能检测堆栈越界、全局越界以及返回后使用。