From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AM1LFCssJ2LhbQAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 11:12:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8MnaECssJ2LLzAAAauVa8A (envelope-from ) for ; Tue, 08 Mar 2022 11:12:59 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 92CB02A331 for ; Tue, 8 Mar 2022 11:12:58 +0100 (CET) Received: from localhost ([::1]:55814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRWpt-0003Zo-JY for larch@yhetil.org; Tue, 08 Mar 2022 05:12:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRWpj-0003ZT-Jm for help-guix@gnu.org; Tue, 08 Mar 2022 05:12:47 -0500 Received: from [2001:470:142:3::e] (port=35606 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRWpj-0000LC-1R; Tue, 08 Mar 2022 05:12:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=CszUuEfpKUeNVx9jzfZs4zyUalyAv/xBPSUfYPo9pbE=; b=d3fSneW+nWSEiqBUz0vs zv4n5BcJGw1i4b5YSIhsqGJb3W/N+W5zA7gbgxrGdvg7tQTe28OOaktZnB2aRToEckc9OUACUWaHo vjeLO0Z7yA7TETPu6nN86i/eh/sKFU8OdOaRAsm4Df26beMLYRcDaTLNEGDl8rr8h2WAMnONEVQSo GHfI9DVn7ZTQO1OZc8p5bIFsyqDPlIXGnx7BkR4KCTVG6ksmGdWOmisbMLjKr34USzEG2mMBiBW1i h5kx7bZp8h+FsCz0PwMoUTgHmzsv/rx0SetFKVp9+LKi3LgmP6D6LHSRUT/qp5SA1rNAI7QLYTL/K yjcEUvSrwVFuBg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38496 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRWpi-0005gD-Gx; Tue, 08 Mar 2022 05:12:46 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Andreas Enge Subject: Re: Valgrind not working References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 =?utf-8?Q?Vent=C3=B4se?= an 230 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 08 Mar 2022 11:12:43 +0100 In-Reply-To: (Andreas Enge's message of "Tue, 18 Jan 2022 17:55:16 +0100") Message-ID: <874k4892hw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646734379; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CszUuEfpKUeNVx9jzfZs4zyUalyAv/xBPSUfYPo9pbE=; b=WizTJD7qBi1OM+3U37cOtzKYG2W+KhXzwuPkY1lYfFSll0qS4cDKOyiGcXXQF6Bso0CoAJ MmsLmXj/UNi4PBge0+Kh+GG3KkoprYA3UGL0CIU8FnCx2KTKzHTcMfCPzM9IEU0ggMqBCr WZhnHW4D/EX9t1T2aHGEDnC7B6oo4TAjfo/tIYb7Tc32vJ4caO33OmdB4u9aWmcGC14jXd DwE4U0kkMViu9M8ZQyS4XSFboqAJJiG+jFSA/HivYWqZQk5NftkcCSBGrKi1eX+gV4U40g T467TnYVezUWRo70GIrys/E/bAYrGA/53XP4a65dSFPLbDMOcFD3VdPIvlIjFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646734379; a=rsa-sha256; cv=none; b=I47g7EVk2VJvgwPqy4qguXXMQLkJv1Zc/TD4cGTqApFKcZls0Ej228fL/lpQ6XQTCic1tP OGSdL3+caN1k0wLeMd5tN/B9QlbwqbDWfEGScVqJQkUQHqIdonV1O9s2Fb4H/85ox9QdYf I3CEc8kEdLXV+oraHVAy/FvhPF2v8eKqVzPfxP9ULWHsp8keKe7XmcRsj0W3eIgl+MWOst DpcBHoclRo9oQfSP2Z8KEkbjeED0jXpiy215bm9srn/s2g98Ortdi/d631xNABJYtdvnBi FdhnaxUFIw/0GnN1BvVzB+Mx1XAizB+UjtPhH94iKnVa7P+4+SmuaMxDlt7uCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=d3fSneW+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=d3fSneW+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 92CB02A331 X-Spam-Score: -7.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: e5mgeLVt6l6H Hi Andreas, Andreas Enge skribis: > 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. I=E2=80=99m late to the party, but here=E2=80=99s the trick you can use: --8<---------------cut here---------------start------------->8--- $ guix build -e '(@@ (gnu packages commencement) glibc-final)'=20 /gnu/store/xgarlnscgbm9l04karj15xpc4nn14ak1-glibc-2.33-debug /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33 /gnu/store/4jdghmc65q7i7ib89zmvq66l0ghf7jc4-glibc-2.33-static $ valgrind --extra-debuginfo-path=3D/gnu/store/xgarlnscgbm9l04karj15xpc4nn1= 4ak1-glibc-2.33-debug/lib/debug uname -o =3D=3D16741=3D=3D Memcheck, a memory error detector =3D=3D16741=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward = et al. =3D=3D16741=3D=3D Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyr= ight info =3D=3D16741=3D=3D Command: uname -o =3D=3D16741=3D=3D=20 GNU/Linux =3D=3D16741=3D=3D=20 =3D=3D16741=3D=3D HEAP SUMMARY: =3D=3D16741=3D=3D in use at exit: 0 bytes in 0 blocks =3D=3D16741=3D=3D total heap usage: 2,813 allocs, 2,813 frees, 184,302 by= tes allocated =3D=3D16741=3D=3D=20 =3D=3D16741=3D=3D All heap blocks were freed -- no leaks are possible =3D=3D16741=3D=3D=20 =3D=3D16741=3D=3D For lists of detected and suppressed errors, rerun with: = -s =3D=3D16741=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 fr= om 0) --8<---------------cut here---------------end--------------->8--- I think the reason it no longer works out of the box is because we now[*] use =E2=80=98--strip-unneeded=E2=80=99 instead of =E2=80=98--strip-d= ebug=E2=80=99, since commit e0f31baacc6ad30096a332b69433c85f5830bb2c. We=E2=80=99d need to double-check the hypothesis and fix it on =E2=80=98cor= e-updates=E2=80=99. In the meantime, HTH! Ludo=E2=80=99. [*] Effective end of December 2021, when =E2=80=98core-updates=E2=80=99 was= merged into =E2=80=98master=E2=80=99.