mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 08:46:20 +00:00
ci: fix Valgrind startup failure on Arch via DEBUGINFOD_URLS
Arch Linux ships a stripped ld-linux-x86-64.so.2, so Valgrind cannot find the memcmp/memcpy/strlen symbols it must redirect and exits at startup with "Fatal error at startup: a function redirection which is mandatory for this platform-tool combination cannot be set up". debuginfod is already installed in the image but was never wired up. Set DEBUGINFOD_URLS to the official Arch debuginfod server so Valgrind fetches the missing glibc debug symbols on demand and caches them.
This commit is contained in:
@@ -2,6 +2,9 @@ FROM archlinux:latest
|
||||
|
||||
ENV TERM=xterm
|
||||
ENV CC="ccache gcc"
|
||||
# Arch ships a stripped ld-linux; Valgrind needs glibc debug symbols to
|
||||
# redirect memcmp/memcpy/strlen. debuginfod fetches them on demand.
|
||||
ENV DEBUGINFOD_URLS=https://debuginfod.archlinux.org
|
||||
|
||||
RUN pacman -Syyu --noconfirm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user