【问题标题】:Valgrind not working on MacOS Mojave? Installed with CondaValgrind 不能在 MacOS Mojave 上运行?与康达一起安装
【发布时间】:2019-03-01 06:51:36
【问题描述】:

我正在尝试检查我用 C 编写的程序中的内存泄漏。我正在运行 MacOS Mojave。当我运行 valgrind 时,出现此错误:

$ valgrind --leak-check=full --show-reachable=yes ./shell.out
valgrind: mmap-FIXED(0x0, 520192) failed in UME (load_segment1) with error 12 (Cannot allocate memory).

【问题讨论】:

    标签: c valgrind dr-memory


    【解决方案1】:

    Valgrind 可能与最新的 macOS(10.14 Mojave) 不兼容。 请检查:How to install Valgrind on macOS Mojave(10.14) with Homebrew?

    【讨论】:

      猜你喜欢
      • 2019-03-14
      • 2019-03-27
      • 2019-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-29
      • 2022-01-10
      相关资源
      最近更新 更多