Фатальная ошибка Valgrind при запуске в Arch LinuxLinux

Ответить Пред. темаСлед. тема
Anonymous
 Фатальная ошибка Valgrind при запуске в Arch Linux

Сообщение Anonymous »

Я установил valgrind в свою систему Arch через

Код: Выделить всё

sudo pacman -S valgrind
и при попытке запуска появляется такое сообщение:

Код: Выделить всё

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

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:      strcmp
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.
Я попробовал перезагрузить свою систему, и мой DEBUGINFOD_URLS выглядит так:

Код: Выделить всё

❯ echo $DEBUGINFOD_URLS
https://debuginfod.archlinux.org
Также это вывод для pacman -Qi debuginfod

Код: Выделить всё

Installed From  : None
Name            : debuginfod
Version         : 0.191-3
Description     : Handle ELF object files and DWARF debugging information (debuginfod)
Architecture    : x86_64
URL             : https://sourceware.org/elfutils/
Licenses        : GPL-3.0-or-later
Groups          : None
Provides        : None
Depends On      : gcc-libs  glibc  libarchive  libarchive.so=13-64  libelf=0.191  libmicrohttpd
libmicrohttpd.so=12-64  sqlite  libsqlite3.so=0-64
Optional Deps   : elfutils=0.191: for translations
Required By     : valgrind
Optional For    : binutils
Conflicts With  : None
Replaces        : None
Installed Size  : 339.33 KiB
Packager        : Frederik Schwan 
Build Date      : Tue May 7 18:21:08 2024
Install Date    : Thu Jun 27 01:21:43 2024
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
и для самого valgrind:

Код: Выделить всё

Installed From  : extra
Name            : valgrind
Version         : 3.23.0-4
Description     : Tool to help find memory-management problems in programs
Architecture    : x86_64
URL             : https://valgrind.org/
Licenses        : GPL-2.0-or-later
Groups          : None
Provides        : valgrind-multilib
Depends On      : glibc  perl  debuginfod
Optional Deps   : lib32-glibc: 32-bit ABI support [installed]
python: cg_* scripts [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : valgrind-multilib
Installed Size  : 67.46 MiB
Packager        : Frederik Schwan 
Build Date      : Tue May 7 18:04:05 2024
Install Date    : Thu Jun 27 08:55:25 2024
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
Я пробовал перезагрузить систему и установить переменную DEBUGINFO_URLS

Подробнее здесь: https://stackoverflow.com/questions/786 ... arch-linux
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Linux»