【问题标题】:Using the valgrind massif tool, Result file not created使用 valgrind massif 工具,未创建结果文件
【发布时间】:2015-08-30 12:52:16
【问题描述】:
【问题讨论】:
标签:
c++11
memory-leaks
valgrind
heap-memory
massif
【解决方案1】:
如果你查看你的日志文件,你会发现 Valgrind 有
崩溃了,它解释了为什么,以及你应该做些什么来修复它。
valgrind: m_mallocfree.c:304 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
valgrind: Heap block lo/hi size mismatch: lo = 91849568, hi = 1425748016.
This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata. If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away. Please try that before reporting this as a bug.
使用 Valgrind 的 memcheck 修复
您的程序,然后重试。