ci: fix Valgrind startup failure on Arch via DEBUGINFOD_URLS
All checks were successful
CI Code / Check spelling (pull_request) Successful in 22s
CI Code / Check coding style (pull_request) Successful in 33s
CI Code / Linux (debian) (pull_request) Successful in 6m54s
CI Code / Linux (ubuntu) (pull_request) Successful in 7m4s
CI Code / Code Coverage (pull_request) Successful in 6m49s
CI Code / Linux (arch) (pull_request) Successful in 8m46s
All checks were successful
CI Code / Check spelling (pull_request) Successful in 22s
CI Code / Check coding style (pull_request) Successful in 33s
CI Code / Linux (debian) (pull_request) Successful in 6m54s
CI Code / Linux (ubuntu) (pull_request) Successful in 7m4s
CI Code / Code Coverage (pull_request) Successful in 6m49s
CI Code / Linux (arch) (pull_request) Successful in 8m46s
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