Skip to main content
Topic: Valgrind issue (Read 216 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Valgrind issue

Hi everyone.
I cannot get Valgrind to work.
I have debuginfod. I have set the $DEBUGINFOD_URLS correctly. GDB works fine, and before running clearly says its downloading debuginfo without any issue.

Code: [Select]
➜  valgrind -v ls
==12483== Memcheck, a memory error detector
==12483== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==12483== Using Valgrind-3.22.0-bd4db67b1d-20231031 and LibVEX; rerun with -h for copyright info
==12483== Command: ls
==12483==
--12483-- Valgrind options:
--12483--    -v
--12483-- Contents of /proc/version:
--12483--   Linux version 6.7.4-artix1-1 (linux@artixlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Tue, 06 Feb 2024 01:37:44 +0000
--12483--
--12483-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-ssse3-avx-avx2-bmi-f16c-rdrand-rdseed
--12483-- Page sizes: currently 4096, max supported 4096
--12483-- Valgrind library directory: /usr/lib/valgrind
--12483-- Reading syms from /usr/bin/ls
--12483-- Reading syms from /usr/lib/ld-linux-x86-64.so.2
==12483== Downloading debug info for /usr/lib/ld-linux-x86-64.so.2...
==12483== Server query failed: No such file or directory

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

Trying to download manually gives:
Code: [Select]
➜  debuginfod-find debuginfo /usr/lib/ld-linux-x86-64.so.2
Server query failed: No such file or directory

Using debuginfod /usr/lib/ld-linux-x86-64.so.2 gives:
Code: [Select]
➜  debuginfod debuginfo /usr/lib/ld-linux-x86-64.so.2
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): warning: without -F -R -U -Z, ignoring PATHs
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): opened database /home/nic/.debuginfod.sqlite rw ro
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): sqlite version 3.45.1
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): service mode active
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): libmicrohttpd version 1.0.0
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): started http server on IPv4 IPv6 port=8002
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): search concurrency 8
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): webapi connection pool 8
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): rescan time 300
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): scan checkpoint 256
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): fdcache fds 144
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): fdcache mbs 67423
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): fdcache prefetch 64
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): fdcache tmpdir /tmp
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): fdcache tmpdir min% 25
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): groom time 86400
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): prefetch fds 72
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): prefetch mbs 33711
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): forwarded ttl limit 8
[Sat 17 Feb 2024 12:49:59 PM GMT] (14258/14258): upstream debuginfod servers: https://debuginfod.artixlinux.org
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): grooming database
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): database record counts:
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): file d/e 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): file s 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): archive d/e 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): archive sref 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): archive sdef 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): buildids 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): filenames 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): fileparts 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): files scanned (#) 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): files scanned (mb) 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): index db size (mb) 0
[Sat 17 Feb 2024 12:50:00 PM GMT] (14258/14267): groomed database in 0.0011434s