You are not logged in.

#1 2024-03-18 02:34:37

AmberSylveon
Member
Registered: 2024-03-18
Posts: 2

Valgrind not working for unknown reason

Valgrind is giving me this error message all of the sudden:

==21276== Memcheck, a memory error detector
==21276== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==21276== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==21276== Command: ls
==21276== 

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:  

I have tried editing environment variables in .bashrc, .bash_profile, .profile. I also tried updating my packages and rebooting multiple times. I also added the debug stuff in the/etc/pacman.conf file according to the Arch wiki.

Just a couple of days ago I had no issues, but all of the sudden I do.

Offline

#2 2024-03-18 03:36:56

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,536
Website

Re: Valgrind not working for unknown reason

Your are not retrieving glibc debug symbols. You should have this set:

$ echo $DEBUGINFOD_URLS
https://debuginfod.archlinux.org

Offline

#3 2024-03-21 19:26:19

AmberSylveon
Member
Registered: 2024-03-18
Posts: 2

Re: Valgrind not working for unknown reason

I already tried setting this according to another post with no luck. I just decided to reinstall Arch because I have noticed many problems along with this one. I will post an update if there are issues after the reinstall.

Offline

#4 2024-05-03 09:31:56

Interplanetary
Member
Registered: 2021-05-22
Posts: 7

Re: Valgrind not working for unknown reason

I had the same problem, even with

DEBUGINFOD_URLS=https://debuginfod.archlinux.org

Only when using gdb did I find that debuginfod worked for most libraries, but logged

Download failed: Connection reset by peer.

for /lib64/ld-linux-x86-64.so.2, system-supplied DSO, /usr/lib/libc.so.6 and /usr/lib/libm.so.6.

Adding https://debuginfod.elfutils.org/ to my DEBUGINFOD_URLS (space-separated) fixed this, and memcheck works now. Why the hell does debuginfod.archlinux.org not provide symbols for the libc? My system is fully up to date!

Last edited by Interplanetary (2024-05-03 09:32:20)

Offline

Board footer

Powered by FluxBB