From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sAwXJ7BjvmBrOAAAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 20:21:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CP1QIrBjvmDmEQAAB5/wlQ (envelope-from ) for ; Mon, 07 Jun 2021 18:21:36 +0000 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 A7EFC1F739 for ; Mon, 7 Jun 2021 20:21:35 +0200 (CEST) Received: from localhost ([::1]:44830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqJsT-0004z3-N7 for larch@yhetil.org; Mon, 07 Jun 2021 14:21:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqJr1-00049s-Ek for bug-guix@gnu.org; Mon, 07 Jun 2021 14:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqJr0-0002rS-QZ for bug-guix@gnu.org; Mon, 07 Jun 2021 14:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqJr0-000300-IH for bug-guix@gnu.org; Mon, 07 Jun 2021 14:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48907: Debug symbols file name discrepancies Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 07 Jun 2021 18:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48907 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48907@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.162308998211494 (code B ref -1); Mon, 07 Jun 2021 18:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jun 2021 18:19:42 +0000 Received: from localhost ([127.0.0.1]:56648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqJqc-0002zF-1b for submit@debbugs.gnu.org; Mon, 07 Jun 2021 14:19:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:59022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqJqZ-0002z6-B0 for submit@debbugs.gnu.org; Mon, 07 Jun 2021 14:19:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqJqZ-0003p2-4o for bug-guix@gnu.org; Mon, 07 Jun 2021 14:19:35 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:35686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqJqX-0002eB-5z for bug-guix@gnu.org; Mon, 07 Jun 2021 14:19:34 -0400 Received: by mail-qt1-x836.google.com with SMTP id g12so959437qtb.2 for ; Mon, 07 Jun 2021 11:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=PtWAtVSbsmY+8HIOWdVfJDTVz0hK5NRQ8iBtZeQKcio=; b=R6GRBs4Z54bzl8xXOtkuPKeqN1tvsYutWGAj8rSjF/h61t7OxdwS4IxFuLMA71tbdv FEgqnWWe6fg3Q63825htqQOejk3Ccs22Dj/xygla3nugUkxD+ncSGoA8lPJALro6JgzE L6xYnurO9iRA5JXAOXLC9WuRnyrMnKbVjEokpITn9NxJ78TFomt1xcdkP/GfF81ttLDY 6lGbWdjH3m4alWqWtps1YyjCseDOK42kcDViMIl2S+OFjxLrWFMB0YNdy2nu4HyLl3/J 6uK/CHbBcKKZ5g1jXo40NFZRBm/98lAjW3GMoCed3HxLYFjC4lx6ApEQAbwtWgOvDxG5 u3Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=PtWAtVSbsmY+8HIOWdVfJDTVz0hK5NRQ8iBtZeQKcio=; b=GaK3tdA6zOD8vq5Asr20zFioKOe8wDrgwrs9RFnoTRzTEeR/tzPC/ARU7KxGshaF60 F3MzVsvmWrajZ43EbuMwI+DVgf5d7J1a0Bs/88fe1ZktYJBmu5dJstblq6eZ+G9ni63P wVKbtkXttB/pHgfGT5HAs6qqfDNgJlmdJQ+uHsKgLFa0BVFS/N2JmGZatCMIMvfElEqq jnwKieyoZWEyrn13FVg/mTj9JyoZd8pUjRjAmE13y30pSdCAx0ixvUAyB5/P8SRUFagm yl9MQW8BX369vW48DvX7zpMmBxapV/5pG1iHrPfTpGdiwdlv7VfDCzdd9wiTs63ylXO2 HbgA== X-Gm-Message-State: AOAM533NQKFqPJhyJFmyHomPzuwfL2ogHRZZKFV5alXXacRPHy1x3D/B vZcQnMs1MgrpD5a2YDi5K39bpTgQ9qQ= X-Google-Smtp-Source: ABdhPJw1xLRfEu7iqwb4fOk3RsBO4LwACCXVhb1+g6NBGB+nNO5eq757fzdlGJNNZMlpeZ/NSpTzQA== X-Received: by 2002:ac8:7d0c:: with SMTP id g12mr2334159qtb.248.1623089971637; Mon, 07 Jun 2021 11:19:31 -0700 (PDT) Received: from hurd (dsl-153-212.b2b2c.ca. [66.158.153.212]) by smtp.gmail.com with ESMTPSA id h19sm8090165qtq.5.2021.06.07.11.19.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 11:19:31 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 07 Jun 2021 14:19:30 -0400 Message-ID: <87r1hdtu4t.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x836.google.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623090095; 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:dkim-signature; bh=PtWAtVSbsmY+8HIOWdVfJDTVz0hK5NRQ8iBtZeQKcio=; b=MZaNHH+tfxiwfTqdOCjNTRY85Cvh3Lhibl2qedS5lD12QY23cAQTUT3JZsi0oMx6oKZ8FH h7TN/d5hkIp2qPlVIO9yT5i7y8xTylMsuZ3wZ5Z7s6WBVaqmlAYZ4RBRTi0IgTGPHNe8JP kCO7OamlgmnAzRBt1tnsABj8LAKHWG48Eu6hCCWn/3BA8bSAfwkgjum4XjzInwof4QahA2 gQtKA3W0mOcBSUu6p8mM0+nhVl5QzWRCoWiQ2OJCdh+EAFX4DpBpWlCbtL9CinIRRUfXO5 dU7cFlh6CRkDnmv5DIrPBm8H2l3fTVa4rNMvisB7mJEP1FG2NKtBQtiM/JCwBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623090095; a=rsa-sha256; cv=none; b=E6eqhU8ebTYa44I7aW0z4d1eRt5de+EnJCRoFr7pYFDykR1Hbn7l2YD7QF+yzcB+HqiffD N1zS5Aky80AMO1fdvFt/yXvRzVjTsKJIY9+hnxOQ5khD9lVGTTKNtLk+kuOFIbL0LvOExX 1PMaFz4HsH81XO4zOq9b5pB0oMuVn9Pa0N8qOdiUfkTttdPwlm1CqeBoeR0vnVvhvSzVAD 7LBlLDUfgI+ifWw4ywwQlRZ9YxgTUDZPMsOd1T+zW4RzKypRMt4lMSUCOXMplWoM4m2N/J EX4WJxWZ0ehuur4QMTzkcabvHqwjUtSwzG8C/c9XNawn0oqA03G2xRSa9m7eqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=R6GRBs4Z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=R6GRBs4Z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: A7EFC1F739 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: in0avd6HsKF8 Hello, While attempting to debug a crash in jami-qt, I've noticed that GDB would fail to load the symbol tables of the shared libraries it uses, for example qtdeclarative. It seems that grafts are to blame. Let's start by looking at the debug files found for the qtdeclarative libQt5Qml.so.5 shared library: --8<---------------cut here---------------start------------->8--- $ guix build qtdeclarative | xargs -I{} find -L {} -name *libQt5Qml.so.5* substitute: updating substitutes from 'http://127.0.0.1:8080'... 100.0% substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following files will be downloaded: /gnu/store/g1gxfbkyxilnx7s6mjdlj697y5n5wazn-qtdeclarative-5.15.2-debug /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2 substituting /gnu/store/g1gxfbkyxilnx7s6mjdlj697y5n5wazn-qtdeclarative-5.15.2-debug... downloading from https://ci.guix.gnu.org/nar/lzip/g1gxfbkyxilnx7s6mjdlj697y5n5wazn-qtdeclarative-5.15.2-debug ... qtdeclarative-5.15.2-debug 94.9MiB 1.2MiB/s 01:21 [##################] 100.0% The following graft will be made: /gnu/store/djhcai9rixm2j3jlamwdhsgwgidg7w74-qtdeclarative-5.15.2.drv applying 2 grafts for /gnu/store/djhcai9rixm2j3jlamwdhsgwgidg7w74-qtdeclarative-5.15.2.drv ... grafting '/gnu/store/g1gxfbkyxilnx7s6mjdlj697y5n5wazn-qtdeclarative-5.15.2-debug' -> '/gnu/store/l3h4ka7v3j1yhik0f1phwch08a09p0bx-qtdeclarative-5.15.2-debug'... grafting '/gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2' -> '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2'... updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/bin/qml' updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/bin/q [...] updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/qt5/qml/QtQuick/Window.2/libwindowplugin.so' updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/qt5/qml/QtTest/libqmltestplugin.so' successfully built /gnu/store/djhcai9rixm2j3jlamwdhsgwgidg7w74-qtdeclarative-5.15.2.drv /gnu/store/l3h4ka7v3j1yhik0f1phwch08a09p0bx-qtdeclarative-5.15.2-debug/lib/debug/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQt5Qml.so.5.15.2.debug /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQt5Qml.so.5.15.2 /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQt5Qml.so.5 /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQt5Qml.so.5.15 --8<---------------cut here---------------end--------------->8--- So far so good. The file hierarchy under the debug output matches the actual shared library file name. Next, let's verify which qtdeclarative shared libraries jami-qt is dynamically linked against: --8<---------------cut here---------------start------------->8--- $ guix build jami-qt | tail -1 | xargs -I{} ldd {}/bin/.jami-qt-real | grep qtdeclarative libQt5QuickWidgets.so.5 => /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs-qtdeclarative-5.15.2/lib/libQt5QuickWidgets.so.5 (0x00007fb9e38a8000) libQt5Quick.so.5 => /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs-qtdeclarative-5.15.2/lib/libQt5Quick.so.5 (0x00007fb9dba47000) libQt5QmlModels.so.5 => /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs-qtdeclarative-5.15.2/lib/libQt5QmlModels.so.5 (0x00007fb9db9c3000) libQt5Qml.so.5 => /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs-qtdeclarative-5.15.2/lib/libQt5Qml.so.5 (0x00007fb9dae4e000) --8<---------------cut here---------------end--------------->8--- Oops! The actual store file name of the libQt5Qml.so.5 known to jami-qt is *not* the same as the one obtained earlier, which explains why GDB doesn't find its symbols. Without grafts, the first command gives: --8<---------------cut here---------------start------------->8--- $ guix build --no-grafts qtdeclarative | xargs -I{} find -L {} -name *libQt5Qml.so.5* /gnu/store/g1gxfbkyxilnx7s6mjdlj697y5n5wazn-qtdeclarative-5.15.2-debug/lib/debug/gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5Qml.so.5.15.2.debug /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5Qml.so.5 /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5Qml.so.5.15 /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5Qml.so.5.15.2 --8<---------------cut here---------------end--------------->8--- Which still doesn't match the libraries jami-qt is linked with. I'm out of ideas for now. Would someone have a clue? Thank you! Maxim