From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GCe6BthZTGL5rwAAgWs5BA (envelope-from ) for ; Tue, 05 Apr 2022 17:01:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0LY5A9hZTGK4SAEAauVa8A (envelope-from ) for ; Tue, 05 Apr 2022 17:01:44 +0200 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 4062A103F6 for ; Tue, 5 Apr 2022 17:01:43 +0200 (CEST) Received: from localhost ([::1]:47598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbkgg-0008Ss-7e for larch@yhetil.org; Tue, 05 Apr 2022 11:01:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbkg2-00082n-TH for bug-guix@gnu.org; Tue, 05 Apr 2022 11:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbkg2-000830-Ic for bug-guix@gnu.org; Tue, 05 Apr 2022 11:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbkg2-0001YP-I0 for bug-guix@gnu.org; Tue, 05 Apr 2022 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54728: Valgrind not working out of the box due to stripped ld.so Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 05 Apr 2022 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54728@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16491708555933 (code B ref -1); Tue, 05 Apr 2022 15:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Apr 2022 15:00:55 +0000 Received: from localhost ([127.0.0.1]:55824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbkfu-0001Xd-MU for submit@debbugs.gnu.org; Tue, 05 Apr 2022 11:00:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:34500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbkfn-0001XK-HH for submit@debbugs.gnu.org; Tue, 05 Apr 2022 11:00:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbkfn-0007zl-9q for bug-guix@gnu.org; Tue, 05 Apr 2022 11:00:47 -0400 Received: from cyberdimension.org ([80.67.179.20]:54558 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1nbkfl-00080T-A1 for bug-guix@gnu.org; Tue, 05 Apr 2022 11:00:47 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id cc8907d8 for ; Tue, 5 Apr 2022 14:57:59 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id a6ef30ed for ; Tue, 5 Apr 2022 14:57:59 +0000 (UTC) Date: Tue, 5 Apr 2022 17:01:32 +0200 From: Denis 'GNUtoo' Carikli Message-ID: <20220405170132.49b23163@primarylaptop.localdomain> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/XXdpK=.Y5jQ=5sWjHB3JNJN"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=80.67.179.20; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649170903; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=o3y/BhSvDMZRVXMbHbkBFl+KtthpOpWhDsXHUxlDrTU=; b=RhHAWAKTUobLW5Ei1UCxo8wFZVypzE3K8zIhqGfqdoe6WrR3RwKKPBySn3mLAp7Ri24TdL YnngR7o3BSWzPmu5Xa1+LMQlwC/w/2n75TVl2IgNbcBcAUnlw0Rg6tF+Q7PfN/svlnedb5 YF1d50eRi4M9T3ONQXbCauj2Uu0YXuNgvNBh2JgZkniTFAzg4p6YsWRXYUaFkmGLVSVLLC fPNpJ5I7V5VwYeKj99GDtSZsuFGJ7GZE3yZnl1BbJz5+nzvtk2uNATEu3X1EURT/iKuFKJ 3Y0PSoHRu+ldDJeZB8vlM+4nN3ORNWI5r8kUA61GdLMYicU5J8RjPIsPPL3LzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649170903; a=rsa-sha256; cv=none; b=Ei7o1Q+xtbU4+5Dh+g1YfM1QWD0ccHMqAtTnJ9O4D1CAiN/OJbj+3jovrzqY1NOhPUNudJ pBv3iz6o7BiweCjMiTPyAe/2A7aWiFPqx+DXnHbYKygmoDkAHUdYTb7NqqiqQCYU1lpig+ Z11kVbNUb1BA+vcDXunpWaSpLLo0QylGllf/QIN2+pL5WZr4BMJp6e1yTZTI3dz9LGtW23 l4FiW1C0gFk/4UqAjaFTrQL9b/fx7fvuZdG6MZpf+z4qQXHEiSJ9MsU+2K5NTioAJbwvCA Et6mTO6cAdJGZsoGQQ3RB32RcWZZuIl64akwtVLtdSNyBPqAeeeWMSsbUZON6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.37 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4062A103F6 X-Spam-Score: -5.37 X-Migadu-Scanner: scn1.migadu.com X-TUID: lWwrHrTqupxt --Sig_/XXdpK=.Y5jQ=5sWjHB3JNJN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, The fact that Valgrind doesn't work out of the box seems to already be known[1] but I didn't find any bugreports on it. The workaround[1] mentioned is extremely useful but it's far from ideal. For instance if you have a software that uses Valgrind in its tests (for instance in 'make check') you end up having to add something like that in the native-inputs to refer to the right glibc debug symbols directory: > ("libc:debug", (@@ (gnu packages commencement) glibc-final) "debug") In my case I'm using guix and a guix.scm for testing the build of a library I maintain and I also wanted to automatically check for memory safety. I was helped a lot on #guix to solve the issue I had, and during that mjw suggested to fix the root issue by keeping "the .symtab in ld.so" without the full debug info (to save space) and if I understood right mjw is a valgrind contributor. According to mjw that could be done with strip -g or strip -d or -strip -S. Reference: ---------- [1]https://lists.gnu.org/archive/html/help-guix/2022-03/msg00036.html Denis. --Sig_/XXdpK=.Y5jQ=5sWjHB3JNJN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmJMWc0ACgkQX138wUF3 4mNUiA//VmQ6ebtuslIgtGLVAsMvcBvQkte6ANrJOVazIiVda5TcvYaApmLYrznl DsDtWhvEO/S0ZgQsKxbTliY6Yr0gPJAkRUtOvlQmysN0AEyhvg/GQxMT/CJz7lFM YYuaCciKKkOzB/HPW9Ft0OwKA1Q8ZgFMd8/uB8tQ8PO9SH9Pqbw+Ahqql20jXLKn zBpkinmD0CmRFauaLgH+WGyk4pp2ePMzg6XH7vaIy9qNFgBiHoNAy2zsRc05/VSP XUXUAwMkqyv1UIvZ3XW7ZcVr2Se+4H8Tg+Rklk4viNkhmqgfIGIQO2X0zxVCg8bY fUxhtT3WYgZNw29oiU+fmnLqZXLTt56AxIN7AU2Q1lDW9VzVWO2/Z2UxIl7BqR+M 1VChnbFkDSJcun2wr09Jee7HgW4O+Yv5BUFcDHtYinHD0KiQTbfHSzy+ILA7OqSo uQW0IexVI36qrsgASnBh4mxzgIpzR26m4eR34nPyvCoEOOPDaqxU8Gun2R6LphHs t7xp1J9CVFoz8Rew7mJWBjh3ZAFCjdIRH5spijDJeViHjgoD4qXv+o1ekFLZqZfT axYLPuHbWjKqNp/sScjtQypHlaylSeUSd1UUaaScNqgsYJeO/6ZyHMOapCiV68RL GNEPoR45rin15Wjq5qbTe8k3TudxAqQyANlZH+6yxKZOOChD7l4= =41RV -----END PGP SIGNATURE----- --Sig_/XXdpK=.Y5jQ=5sWjHB3JNJN--