【问题标题】:Using the valgrind massif tool, Result file not created使用 valgrind massif 工具,未创建结果文件
【发布时间】:2015-08-30 12:52:16
【问题描述】:

我一直在关注本教程以供参考: 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 文件?

【问题讨论】:

    标签: 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 修复 您的程序,然后重试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多