首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用valgrind massif工具时,未创建结果文件

使用valgrind massif工具时,未创建结果文件
EN

Stack Overflow用户
提问于 2015-06-15 13:52:00
回答 1查看 2K关注 0票数 2

我一直在关注这个教程以供参考:http://valgrind.org/docs/manual/ms-manual.html

当我使用valgrind --tool=massif --time-unit=B ./run.o命令分析我的应用程序时,它会完成,但不会生成任何输出文件。下面是使用上面提到的命令运行它时的日志。

https://www.dropbox.com/s/yae78rm9wmdbph1/ValGring_massif_Log?dl=0

请告诉我为什么它不能生成massif.out.xxxxx文件?

EN

回答 1

Stack Overflow用户

发布于 2015-06-15 15:50:20

如果你查看你的日志文件,你会发现Valgrind已经崩溃了,它解释了为什么,以及你应该做什么来修复它。

代码语言:javascript
复制
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修复您的程序,然后重试。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30838182

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档