首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复valgrind启动时的致命错误(连接libc6-dbg和libc6-dbg:i386 )

如何修复valgrind启动时的致命错误(连接libc6-dbg和libc6-dbg:i386 )
EN

Stack Overflow用户
提问于 2020-02-16 06:39:54
回答 3查看 1.5K关注 0票数 2

这个问题无论如何都不能解决。我试图安装libc6-dbg和libc6-dbg:i386,但是没有帮助(我有64位的Ubuntu 19.10)。

代码语言:javascript
复制
valgrind:  Fatal error at startup: a function redirection
    valgrind:  which is mandatory for this platform-tool combination
    valgrind:  cannot be set up.  Details of the redirection are:
    valgrind:  
    valgrind:  A must-be-redirected function
    valgrind:  whose name matches the pattern:      strlen
    valgrind:  in an object with soname matching:   ld-linux-x86-64.so.2
    valgrind:  was not found whilst processing
    valgrind:  symbols from the object with soname: ld-linux-x86-64.so.2
    valgrind:  
    valgrind:  Possible fixes: (1, short term): install glibc's debuginfo
    valgrind:  package on this machine.  (2, longer term): ask the packagers
    valgrind:  for your Linux distribution to please in future ship a non-
    valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)
    valgrind:  that exports the above-named function using the standard
    valgrind:  calling conventions for this platform.  The package you need
    valgrind:  to install for fix (1) is called
    valgrind:  
    valgrind:    On Debian, Ubuntu:                 libc6-dbg
    valgrind:    On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo
    valgrind:  
    valgrind:  Note that if you are debugging a 32 bit process on a
    valgrind:  64 bit system, you will need a corresponding 32 bit debuginfo
    valgrind:  package (e.g. libc6-dbg:i386).
    valgrind:  
    valgrind:  Cannot continue -- exiting now.  Sorry.

因此,向您展示已安装的包。正如您所看到的,一切都已正确安装,但无法正常工作。我不知道该怎么做才能让它工作。

用于amd64的包

代码语言:javascript
复制
Package: libc6-dbg
Status: install ok installed
Priority: optional
Section: debug
Installed-Size: 44570
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: glibc
Version: 2.30-0ubuntu2
Provides: libc-dbg
Depends: libc6 (= 2.30-0ubuntu2)
Description: GNU C Library: detached debugging symbols
 This package contains the detached debugging symbols for the GNU C
 library.
Homepage: https://www.gnu.org/software/libc/libc.html
Original-Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>

用于i386的包

代码语言:javascript
复制
Package: libc6-dbg
Status: install ok installed
Priority: optional
Section: debug
Installed-Size: 35315
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Multi-Arch: same
Source: glibc
Version: 2.30-0ubuntu2
Provides: libc-dbg
Depends: libc6 (= 2.30-0ubuntu2)
Description: GNU C Library: detached debugging symbols
 This package contains the detached debugging symbols for the GNU C
 library.
Homepage: https://www.gnu.org/software/libc/libc.html
Original-Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
EN

回答 3

Stack Overflow用户

发布于 2020-05-04 01:36:06

我在Ubuntu 20.04上遇到了同样的问题。正如用户phd在他们的评论中指出的那样,这是一个Valgrind错误,已在提交db07db4c8706d17124a621a254bee1b6f08d2e1d中修复

您可以通过运行以下命令轻松构建valgrind

代码语言:javascript
复制
git clone git://sourceware.org/git/valgrind.git
cd valgrind
./autogen.sh
./configure
make -j
sudo make install

(如果您不确定命令的作用,请不要以sudo身份运行命令)

票数 0
EN

Stack Overflow用户

发布于 2020-07-23 21:47:20

valgrind正在错误的路径中查找文件。

Ubuntu在/usr/lib/debug中有一个烂摊子。如果您将/usr/lib/debug/lib/usr/lib/debug/usr/lib统一起来,它应该可以工作。

至少,这为我解决了这个问题。

票数 0
EN

Stack Overflow用户

发布于 2020-11-18 01:17:38

代码语言:javascript
复制
apt install -y libc6-dbg

这对我很管用。(注:不使用:i386。)

可能是install valgrind, Fatal error at startup的副本。

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

https://stackoverflow.com/questions/60243778

复制
相关文章

相似问题

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