Страница 1 из 1

Не работает valgrind

Добавлено: 28 июл 2025, 16:05
m0dalex
Пишет, что не хватает неких debuginfo пакетов, которые в репозиториях отсутствуют
$ valgrind ls
==14989== Memcheck, a memory error detector
==14989== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==14989== Using Valgrind-3.21.0.GIT and LibVEX; rerun with -h for copyright info
==14989== Command: ls
==14989==

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.

Re: Не работает valgrind

Добавлено: 28 июл 2025, 17:41
turik02
m0dalex писал(а): 28 июл 2025, 16:05 Пишет, что не хватает неких debuginfo пакетов, которые в репозиториях отсутствуют
Нужный пакет есть на abf. Вот rpm https://file-store.rosa.ru/api/v1/file_ ... c7d977418a
Или в онлайн-репозитории РОСА https://mirror.rosa.ru/rosa/rosa13/repo ... .gitc8e10f

Re: Не работает valgrind

Добавлено: 29 июл 2025, 10:29
VictorR2007
Как вам подсказали выше, пакеты есть.
Чтобы они устанавливались, нужно в файле
/etc/yum.repos.d/10-rosa-main-x86_64.repo
для источника Main - Debug заменить
enabled=0
на
enabled=1

Re: Не работает valgrind

Добавлено: 29 июл 2025, 11:11
m0dalex
Спасибо, проблема решена