小编lva*_*vad的帖子

valgrind 要求调试信息 libc6-dbg

我已经浏览了与此错误相关的答案。但是,我的问题是一旦我有了 libc 的调试信息,我应该把这个库放在什么位置,以便 valgrind 看到它?

我已经为我的目标环境下载了 valgrind 和交叉编译。我尝试了以下所有不同的组合:

  1. 我把 libc 放在 /lib 和 debuginfo 放在 /lib/debug
  2. 将 debuginfo 重命名为 libc.debug
  3. 导出 VALGRIND_LIB 以包含 /lib、/lib/debug

最后但并非最不重要的是,以下是实际错误:

==29946== Memcheck, a memory error detector
==29946== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==29946== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==29946== Command: /bin/my_prog
==29946==

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details …
Run Code Online (Sandbox Code Playgroud)

valgrind

5
推荐指数
1
解决办法
2332
查看次数

标签 统计

valgrind ×1