There's a workaround upstream: https://sourceware.org/git/?p=valgrind.git;a=commit;h=52ed51fc35f8a6148c2940eb46932b02dd3b9b23.
Should be fixed in the new 3.18.1 release.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1adf24a3ee1c6cfc924c590fdfacd6e7aa014f2c commit 1adf24a3ee1c6cfc924c590fdfacd6e7aa014f2c Author: Sam James <sam@gentoo.org> AuthorDate: 2021-10-25 11:55:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-25 11:55:52 +0000 dev-util/valgrind: add 3.18.1 (for glibc 2.34) Closes: https://bugs.gentoo.org/804582 Signed-off-by: Sam James <sam@gentoo.org> dev-util/valgrind/Manifest | 1 + dev-util/valgrind/valgrind-3.18.1.ebuild | 119 +++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+)