You are not logged in.

#1 2023-05-31 22:38:25

Nulled7888
Member
Registered: 2023-05-31
Posts: 2

Valgrind Fatal Error when using Arch

Hey there, ive recently had issues when using valgrind.

So apparently, this seems to be an issue with the ld binary,
though since its part of gcc there is no safe way for me to rollback to an older version which would allow me to use valgrind again.
I have also ruled out the possiblity of it solely being the project im working on. A colleague of mine had the same issue and was unable to resolve it.

I have reinstalled valgrind multiple times, updated my kernel and searched on the web for solutions which was all to no avail. So my last resort is asking here.
If this is not the right place to ask for this stuff, please don't mind this post or redirect me to the correct place :)
Also excuse me for any formatting mistakes in my post, first one.

Versions:
valgrind-3.20.0
gcc-Version 12.2.1 20230201

--- Output of valgrind ---

Fatal error at startup: a function redirection
which is mandatory for this platform-tool combination
cannot be set up.  Details of the redirection are:

A must-be-redirected function
whose name matches the pattern:      strlen
in an object with soname matching:   ld-linux-x86-64.so.2
was not found whilst processing
symbols from the object with soname: ld-linux-x86-64.so.2

Possible fixes: (1, short term): install glibc's debuginfo
package on this machine.  (2, longer term): ask the packagers
for your Linux distribution to please in future ship a non-
stripped ld.so (or whatever the dynamic linker .so is called)
that exports the above-named function using the standard
calling conventions for this platform.  The package you need
to install for fix (1) is called

  On Debian, Ubuntu:                 libc6-dbg
  On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo

Note that if you are debugging a 32 bit process on a
64 bit system, you will need a corresponding 32 bit debuginfo
package (e.g. libc6-dbg:i386).

Cannot continue -- exiting now.  Sorry.

--- Output end ---

Offline

#2 2023-05-31 23:10:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,778

Re: Valgrind Fatal Error when using Arch

You'll want to get debug symbols, e.g. via debuginfod: https://wiki.archlinux.org/title/Debuginfod

Offline

#3 2023-05-31 23:17:40

Nulled7888
Member
Registered: 2023-05-31
Posts: 2

Re: Valgrind Fatal Error when using Arch

V1del wrote:

You'll want to get debug symbols, e.g. via debuginfod: https://wiki.archlinux.org/title/Debuginfod

i have Debuginfod installed (v0.189-1) and the DEBUGINFOD_URLS env is set to "https://debuginfod.archlinux.org/", is there something im missing?

Last edited by Nulled7888 (2023-05-31 23:18:00)

Offline

#4 2023-06-01 10:03:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,291

Re: Valgrind Fatal Error when using Arch

Versions:
valgrind-3.20.0
gcc-Version 12.2.1 20230201

valgrind was updated to 3.21.0 on may 7, gcc to 13.1.1 at end of april.
When was your last pacman -Syu ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB