GNU logs - #48907, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#48907: Debug symbols file name discrepancies
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 07 Jun 2021 18:20:02 +0000
Resent-Message-ID: <handler.48907.B.162308998211494 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 48907
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 48907 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix <bug-guix@HIDDEN>
Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lqJqc-0002zF-1b
	for submit <at> 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 <maxim.cournoyer@HIDDEN>) id 1lqJqZ-0002z6-B0
 for submit <at> 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 <maxim.cournoyer@HIDDEN>)
 id 1lqJqZ-0003p2-4o
 for bug-guix@HIDDEN; 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 <maxim.cournoyer@HIDDEN>)
 id 1lqJqX-0002eB-5z
 for bug-guix@HIDDEN; Mon, 07 Jun 2021 14:19:34 -0400
Received: by mail-qt1-x836.google.com with SMTP id g12so959437qtb.2
 for <bug-guix@HIDDEN>; 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 <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 07 Jun 2021 11:19:31 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Date: Mon, 07 Jun 2021 14:19:30 -0400
Message-ID: <87r1hdtu4t.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::836;
 envelope-from=maxim.cournoyer@HIDDEN; 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-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

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




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: bug#48907: Acknowledgement (Debug symbols file name discrepancies)
Message-ID: <handler.48907.B.162308998211494.ack <at> debbugs.gnu.org>
References: <87r1hdtu4t.fsf@HIDDEN>
X-Gnu-PR-Message: ack 48907
X-Gnu-PR-Package: guix
Reply-To: 48907 <at> debbugs.gnu.org
Date: Mon, 07 Jun 2021 18:20:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 48907 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
48907: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48907
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#48907: Debug symbols file name discrepancies
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Mon, 07 Jun 2021 19:27:02 +0000
Resent-Message-ID: <handler.48907.B48907.162309397417855 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48907
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 48907 <at> debbugs.gnu.org
Received: via spool by 48907-submit <at> debbugs.gnu.org id=B48907.162309397417855
          (code B ref 48907); Mon, 07 Jun 2021 19:27:02 +0000
Received: (at 48907) by debbugs.gnu.org; 7 Jun 2021 19:26:14 +0000
Received: from localhost ([127.0.0.1]:56705 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lqKt4-0004dv-5Y
	for submit <at> debbugs.gnu.org; Mon, 07 Jun 2021 15:26:14 -0400
Received: from mail-qk1-f180.google.com ([209.85.222.180]:34585)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1lqKt2-0004dg-Ez
 for 48907 <at> debbugs.gnu.org; Mon, 07 Jun 2021 15:26:12 -0400
Received: by mail-qk1-f180.google.com with SMTP id k11so16217756qkk.1
 for <48907 <at> debbugs.gnu.org>; Mon, 07 Jun 2021 12:26:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:references:date:in-reply-to:message-id:user-agent
 :mime-version; bh=WV7NkUZPHa9ugQaw4n12RJ8AlkWPsL6+iiAGbvma2Pg=;
 b=Sq5SLi4kNGFzG7ZFeuEdqG0nJVcKznh/b9Y/s+2jiN9cso9s1wKCF/IYKkOdu93lIw
 4mg4ZmM0OzSXSle4wgLVvjqIINkANcKJP16itB8PkEKHKSnO34IIFe5e3ReRoC4IB8Yl
 Ps2FZk76SyozC8Wz3XdHW+McU2o+TdJbK+0Jl6tDGv+IVarrK/y8AlIuFhLLFcJau3N3
 dvaRvFZC/6uZanvZOZL610r7leEMMb2EcB4eTeJfTSJJXm4N2b6XX3RYBXouQPxFkCk0
 GNbbzo+lgh3r09L+K4blj8E9cVfzlwG/FIJmEugPiXq0woMMbFJnyh9W1AgCvOVQOLNX
 gjDA==
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:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=WV7NkUZPHa9ugQaw4n12RJ8AlkWPsL6+iiAGbvma2Pg=;
 b=L96ZIO2YviIJ1Bc8ZVZxM+NWpvZ0zdMRwHLlWCDfkTLbs3juRkOaMM4VPB6Y7UyrC/
 St7wOve/SvOJ4l5Q+VTUcZAOtC8Ivg8RZJgl7ZnD36lXzjUd/FKZnuJqhQWWUrhU/Ig5
 DsZDdYVE8RAPCIRZq1CVmTsfJaVd2f8GCAvUbOuqT9NL0fAYwkUfN8TEC+ANQwVI1CC0
 APXJzbO+U3f99A70uJuudlQnrl+5usTdy35bntiQs0Lqx4OnK59iMBDnuZGbM1IlxgQr
 K3Wa5wX3Mh2PQ8+YpY9eThGgg0lHlUx0Ip/0cDXTc+wcj9MKj7mgGQwDHPOax8mioT+s
 SRXw==
X-Gm-Message-State: AOAM532Kcg9tUoemVvQ5nxVxrZpIt3GYrVDgG/DXua2rL1tTf4+WvFY+
 ADW26hHTj6L2wQwDFaOOQfwh7xg3gVY=
X-Google-Smtp-Source: ABdhPJxYN/hvuyAfoRK6HoWgosxgAznEWsXeb27lYEtSIfMOrDrp3nuBSieNwOFAumnb6utQfMz5PQ==
X-Received: by 2002:a37:b9c7:: with SMTP id
 j190mr18115617qkf.234.1623093966729; 
 Mon, 07 Jun 2021 12:26:06 -0700 (PDT)
Received: from hurd (dsl-153-212.b2b2c.ca. [66.158.153.212])
 by smtp.gmail.com with ESMTPSA id 64sm9256576qtc.95.2021.06.07.12.26.06
 for <48907 <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 07 Jun 2021 12:26:06 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <87r1hdtu4t.fsf@HIDDEN>
Date: Mon, 07 Jun 2021 15:26:05 -0400
In-Reply-To: <87r1hdtu4t.fsf@HIDDEN> (Maxim Cournoyer's message of "Mon, 07
 Jun 2021 14:19:30 -0400")
Message-ID: <87mts1tr1u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello again,

Building everything without grafts does resolve the file name
discrepancy issue, e.g.:

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

guix build --no-grafts jami-qt | tail -1 | xargs -I{} ldd {}/bin/.jami-qt-real | grep qtdeclarative
        libQt5QuickWidgets.so.5 => /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5QuickWidgets.so.5 (0x00007f42c79b2000)
        libQt5Quick.so.5 => /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5Quick.so.5 (0x00007f42bfb52000)
        libQt5QmlModels.so.5 => /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5QmlModels.so.5 (0x00007f42bface000)
        libQt5Qml.so.5 => /gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15.2/lib/libQt5Qml.so.5 (0x00007f42bef59000)

And the debug symbols are now discovered and usable by GDB.  So this
issue is indeed caused by grafts.

Maxim




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 7 Jun 2021 19:28:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 07 15:28:19 2021
Received: from localhost ([127.0.0.1]:56709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lqKv5-0004gz-IA
	for submit <at> debbugs.gnu.org; Mon, 07 Jun 2021 15:28:19 -0400
Received: from mail-qv1-f54.google.com ([209.85.219.54]:40866)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1lqKv3-0004gl-I3
 for control <at> debbugs.gnu.org; Mon, 07 Jun 2021 15:28:17 -0400
Received: by mail-qv1-f54.google.com with SMTP id u13so9498692qvt.7
 for <control <at> debbugs.gnu.org>; Mon, 07 Jun 2021 12:28:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=date:message-id:to:from:subject;
 bh=JjYA8LxeBiJ3Uta/r4CM/ZV4ihV3e0a2hdG5CsUWFg4=;
 b=NcWTPnDEz0TuyKqT6FDdOlSFurGXd8V5MxAM1w/Zk2X237i+SctUYsv2tPKhBWas37
 xzx6qCjRdkh40IKBLX+eHJfJVmswHHjMG6gp6gcWR/aInMqrs6PG+gGJu2QW/fVNmCyv
 1B5OI9DG3mAJQDrQtGwBLiDxeJRqn7X9S3qgTo6ooCPRG9kVdU65rQHBBrh7gf23iU6o
 OdFIqvxC/1kabfWwRvziB6xdM1SYXdxAr8iA+9vDM+k+E2Hc7a4eiHRVMhJqEXcI7Vyb
 Uv61nOaqSBKXq/NiTLrgW9kg0oZv5poQU9VGFEHAzJ2mFehVIDy80CA+MLoEZfC3o9p+
 GH8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:message-id:to:from:subject;
 bh=JjYA8LxeBiJ3Uta/r4CM/ZV4ihV3e0a2hdG5CsUWFg4=;
 b=VvFXYVxm+wbc4/GUVn9V/uxiOAZ7roNEpRXHifimO7GrKU9Qa/AxXgRqDGY5DzMh69
 9immDdp3Le7AHL96Qt9MkfiIZbwvFXQDu3bFWdXWSS/wQU+WLUPUF9gv0SGgeTMqCX5t
 BWEtje42zD1+DqRMrcN8IHuAukAlN4+5ETfVxbVUCwfviFXaIbEqQNVc/tOBth/zbHFd
 XJjRC8CdU9sJh/1UoFLLhzD+2APSO+8O7nGPC6NKJfaCZqM/R1sNr6h8Ku9Y48H7I1qv
 E6893Yc+iZr5TStjS8fimVWnJOQG2Oo0rWSUw2zR/XCVGQlK9fIKaWTufsDWl4qAo42J
 lKuw==
X-Gm-Message-State: AOAM530q6861jwQU4Fv0+eh+EEZj6xXg+6R21+tTl8Jb9fQqza8XVins
 WeQY+lZ40imOCWs0qfGKA1k3CMqVT9s=
X-Google-Smtp-Source: ABdhPJw+96L7Gb0LjFH0zgiR4gN5fizV4P4Pahm9YfFNk1+7dxE9A9WuYTR8ONfoMvggJgPPz0hfVg==
X-Received: by 2002:a0c:fec3:: with SMTP id z3mr19672503qvs.57.1623094092011; 
 Mon, 07 Jun 2021 12:28:12 -0700 (PDT)
Received: from hurd (dsl-153-212.b2b2c.ca. [66.158.153.212])
 by smtp.gmail.com with ESMTPSA id k19sm4690896qkj.89.2021.06.07.12.28.11
 for <control <at> debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 07 Jun 2021 12:28:11 -0700 (PDT)
Date: Mon, 07 Jun 2021 15:28:10 -0400
Message-Id: <87lf7ltqyd.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: control message for bug #48907
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

retitle 48907 Grafts cause discrepancies in debug symbols file names (debug symbols missing in GDB).
quit





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#48907: Debug symbols file name discrepancies
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 18 Jun 2021 09:31:01 +0000
Resent-Message-ID: <handler.48907.B48907.162400860416445 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48907
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: 48907 <at> debbugs.gnu.org
Received: via spool by 48907-submit <at> debbugs.gnu.org id=B48907.162400860416445
          (code B ref 48907); Fri, 18 Jun 2021 09:31:01 +0000
Received: (at 48907) by debbugs.gnu.org; 18 Jun 2021 09:30:04 +0000
Received: from localhost ([127.0.0.1]:55773 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1luAp9-0004HA-JY
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2021 05:30:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53062)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1luAp7-0004GF-FD
 for 48907 <at> debbugs.gnu.org; Fri, 18 Jun 2021 05:30:02 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48620)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1luAp2-0007PP-8w; Fri, 18 Jun 2021 05:29:56 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52960 helo=ribbon)
 by fencepost.gnu.org with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1luAp1-0008Cn-I3; Fri, 18 Jun 2021 05:29:55 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <87r1hdtu4t.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 30 Prairial an 229 de la =?UTF-8?Q?R=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: Fri, 18 Jun 2021 11:29:54 +0200
In-Reply-To: <87r1hdtu4t.fsf@HIDDEN> (Maxim Cournoyer's message of "Mon, 07
 Jun 2021 14:19:30 -0400")
Message-ID: <87eeczikq5.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:

> $ 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/g1gxfbkyxilnx7s6mjdlj69=
7y5n5wazn-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-qtdecla=
rative-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/pryhgzb6cwnzsskqwldwc6dxr6nw=
nywf-qtdeclarative-5.15.2/bin/qml'
> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nw=
nywf-qtdeclarative-5.15.2/bin/q
> [...]
> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nw=
nywf-qtdeclarative-5.15.2/lib/qt5/qml/QtQuick/Window.2/libwindowplugin.so'
> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nw=
nywf-qtdeclarative-5.15.2/lib/qt5/qml/QtTest/libqmltestplugin.so'
> successfully built /gnu/store/djhcai9rixm2j3jlamwdhsgwgidg7w74-qtdeclarat=
ive-5.15.2.drv
> /gnu/store/l3h4ka7v3j1yhik0f1phwch08a09p0bx-qtdeclarative-5.15.2-debug/li=
b/debug/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib=
/libQt5Qml.so.5.15.2.debug
> /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQ=
t5Qml.so.5.15.2
> /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQ=
t5Qml.so.5
> /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/libQ=
t5Qml.so.5.15
>
>
> 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:
>
> $ guix build jami-qt | tail -1 | xargs -I{} ldd {}/bin/.jami-qt-real | gr=
ep qtdeclarative
>         libQt5QuickWidgets.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j=
0a2vccs-qtdeclarative-5.15.2/lib/libQt5QuickWidgets.so.5 (0x00007fb9e38a800=
0)
>         libQt5Quick.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs=
-qtdeclarative-5.15.2/lib/libQt5Quick.so.5 (0x00007fb9dba47000)
>         libQt5QmlModels.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2=
vccs-qtdeclarative-5.15.2/lib/libQt5QmlModels.so.5 (0x00007fb9db9c3000)
>         libQt5Qml.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs-q=
tdeclarative-5.15.2/lib/libQt5Qml.so.5 (0x00007fb9dae4e000)

This is due to the fact that, when you run =E2=80=98guix build jami-qt=E2=
=80=99, the
grafting derivation dismisses the =E2=80=9Cdebug=E2=80=9D output of qtdecla=
rative, since
jami-qt does not depend on it.  That way it doesn=E2=80=99t have to
build/download and graft qtdeclarative:debug.

Conversely, when you run =E2=80=98guix build qtdeclarative=E2=80=99, it gra=
fts both
outputs of qtdeclarative.  Thus, this grafting derivation is different
from the one jami-qt.drv depends on.

This behavior was implemented in commit
482fda2729c3e76999892cb8f9a0391a7bd37119.  Not sure what a good solution
would be.

Thoughts?

Ludo=E2=80=99.




Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#48907: Grafts cause discrepancies in debug symbols file names (debug symbols missing in GDB).
Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 24 Sep 2021 02:33:01 +0000
Resent-Message-ID: <handler.48907.B48907.16324507669889 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48907
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Cc: 48907 <at> debbugs.gnu.org
Received: via spool by 48907-submit <at> debbugs.gnu.org id=B48907.16324507669889
          (code B ref 48907); Fri, 24 Sep 2021 02:33:01 +0000
Received: (at 48907) by debbugs.gnu.org; 24 Sep 2021 02:32:46 +0000
Received: from localhost ([127.0.0.1]:56344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTb14-0002ZR-2D
	for submit <at> debbugs.gnu.org; Thu, 23 Sep 2021 22:32:46 -0400
Received: from mail-qk1-f182.google.com ([209.85.222.182]:35798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1mTb11-0002ZB-U6
 for 48907 <at> debbugs.gnu.org; Thu, 23 Sep 2021 22:32:44 -0400
Received: by mail-qk1-f182.google.com with SMTP id c7so26729976qka.2
 for <48907 <at> debbugs.gnu.org>; Thu, 23 Sep 2021 19:32:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=SD6pkl2qUv5lGU98DLyZGkWAeuiv74TJmM6+IiwedAw=;
 b=OmP6zOugnsOz/zP1ESrQohLJP0CEwDOOeMGdoRx0OMCagAPpC4pjcHky/p6x0PgTsZ
 /9H1rX6pf2c1oGizHtoz3g37CUygn5Uc/PFdonMAPrKm1sDehElHPHrmy1d9NWCTX0Xn
 MgENVkn0CPFgebWM+rXAjxujpttnkHto/fpbbptn7/dBUynUsPf39r1s++h4l25zRwOx
 wRVcjykyXNvkXBGMK204YzC2NxliCqSfr6xFBWFre9b9WViIc0uNr6BzVpX+PBKP9lio
 CPjU/VZowA0JN6nMw7x64U8CR61xxezNgueyel+uGT6ANjbADvJTjREvGOVMbhcMdla+
 9jDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=SD6pkl2qUv5lGU98DLyZGkWAeuiv74TJmM6+IiwedAw=;
 b=PaM7qDfATlGNXZPKn5hwP+Nw/43CPDa/XxVz7/2/RxUK+gbGVVczBwtJPu4D2ObQSB
 8RCEhCo+66TWWMIUNu6FE6wg+VwjttTkIfYwBiShDrwCXbf3ciii5h8+Vg4MF5ZjpXSv
 fKz+u8GBdULn0QsbkVeTqV2+NH9VpS0kmAmkA7cqJB14cr4wN4MChXI+zeiMFi/J2VuH
 bAsa0575chEuvn4UXs9oGb/S7u4Zacpa2UFnnKHbzpl/GbeNUSrhvXSSClLP6JCWPKoc
 DtJt8+qew9KmvU1bLP+FWcpm2n0yL/yWrtZqm4sRPrvKovL1166bu6kzm0JECL6x9PQr
 G0Gw==
X-Gm-Message-State: AOAM533UrXzyJKZ17+OW/YgW6SeWYU5AZzZjgLxDeIc7mMy73km1IA8G
 yvG4i/7l6pcwxED8P9Dh5CxiRKJax8E=
X-Google-Smtp-Source: ABdhPJzaKPsW8Bw+fNUF6kGOxrbHrMZA6bUsrxxjQHkUAgRJ62ZtrHiRRY3oqsB7S1U+3RFdENg3Og==
X-Received: by 2002:ae9:ea19:: with SMTP id f25mr8350771qkg.341.1632450758041; 
 Thu, 23 Sep 2021 19:32:38 -0700 (PDT)
Received: from hurd (dsl-10-149-91.b2b2c.ca. [72.10.149.91])
 by smtp.gmail.com with ESMTPSA id 12sm4445927qtt.16.2021.09.23.19.32.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 23 Sep 2021 19:32:37 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
References: <87r1hdtu4t.fsf@HIDDEN> <87eeczikq5.fsf@HIDDEN>
Date: Thu, 23 Sep 2021 22:32:35 -0400
In-Reply-To: <87eeczikq5.fsf@HIDDEN> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 18 Jun 2021 11:29:54 +0200")
Message-ID: <87ilyqk8jg.fsf_-_@HIDDEN>
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-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi!

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
>
>> $ 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/g1gxfbkyxilnx7s6mjdlj6=
97y5n5wazn-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-qtdecl=
arative-5.15.2.drv ...
>> grafting '/gnu/store/g1gxfbkyxilnx7s6mjdlj697y5n5wazn-qtdeclarative-5.15=
.2-debug' -> '/gnu/store/l3h4ka7v3j1yhik0f1phwch08a09p0bx-qtdeclarative-5.1=
5.2-debug'...
>> grafting '/gnu/store/nvzvrr137qfqsn2875yrs9ilfd12wi96-qtdeclarative-5.15=
.2' -> '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2'...
>> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6n=
wnywf-qtdeclarative-5.15.2/bin/qml'
>> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6n=
wnywf-qtdeclarative-5.15.2/bin/q
>> [...]
>> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6n=
wnywf-qtdeclarative-5.15.2/lib/qt5/qml/QtQuick/Window.2/libwindowplugin.so'
>> updating '.gnu_debuglink' CRC in '/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6n=
wnywf-qtdeclarative-5.15.2/lib/qt5/qml/QtTest/libqmltestplugin.so'
>> successfully built /gnu/store/djhcai9rixm2j3jlamwdhsgwgidg7w74-qtdeclara=
tive-5.15.2.drv
>> /gnu/store/l3h4ka7v3j1yhik0f1phwch08a09p0bx-qtdeclarative-5.15.2-debug/l=
ib/debug/gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/li=
b/libQt5Qml.so.5.15.2.debug
>> /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/lib=
Qt5Qml.so.5.15.2
>> /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/lib=
Qt5Qml.so.5
>> /gnu/store/pryhgzb6cwnzsskqwldwc6dxr6nwnywf-qtdeclarative-5.15.2/lib/lib=
Qt5Qml.so.5.15
>>
>>
>> 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:
>>
>> $ guix build jami-qt | tail -1 | xargs -I{} ldd {}/bin/.jami-qt-real | g=
rep qtdeclarative
>>         libQt5QuickWidgets.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2=
j0a2vccs-qtdeclarative-5.15.2/lib/libQt5QuickWidgets.so.5 (0x00007fb9e38a80=
00)
>>         libQt5Quick.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vcc=
s-qtdeclarative-5.15.2/lib/libQt5Quick.so.5 (0x00007fb9dba47000)
>>         libQt5QmlModels.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a=
2vccs-qtdeclarative-5.15.2/lib/libQt5QmlModels.so.5 (0x00007fb9db9c3000)
>>         libQt5Qml.so.5 =3D> /gnu/store/mjl02yma4r5xjark6d8pp5h2j0a2vccs-=
qtdeclarative-5.15.2/lib/libQt5Qml.so.5 (0x00007fb9dae4e000)
>
> This is due to the fact that, when you run =E2=80=98guix build jami-qt=E2=
=80=99, the
> grafting derivation dismisses the =E2=80=9Cdebug=E2=80=9D output of qtdec=
larative, since
> jami-qt does not depend on it.  That way it doesn=E2=80=99t have to
> build/download and graft qtdeclarative:debug.
>
> Conversely, when you run =E2=80=98guix build qtdeclarative=E2=80=99, it g=
rafts both
> outputs of qtdeclarative.  Thus, this grafting derivation is different
> from the one jami-qt.drv depends on.
>
> This behavior was implemented in commit
> 482fda2729c3e76999892cb8f9a0391a7bd37119.  Not sure what a good solution
> would be.
>
> Thoughts?

Yikes!  This means that debugging with grafts (with the aid of debugging
symbols) is no longer possible, right?

I remember reading about a 2nd option to locate the separate debug
symbol files with GDB in info '(gdb) Separate Debug Files':


   * The executable contains a "build ID", a unique bit string that is
     also present in the corresponding debug info file.  (This is
     supported only on some operating systems, when using the ELF or PE
     file formats for binary files and the GNU Binutils.)  For more
     details about this feature, see the description of the '--build-id'
     command-line option in *note Command Line Options: (ld)Options.
     The debug info file's name is not specified explicitly by the build
     ID, but can be computed from the build ID, see below.

   [...]
=20=20=20
   * For the "build ID" method, GDB looks in the '.build-id'
     subdirectory of each one of the global debug directories for a file
     named 'NN/NNNNNNNN.debug', where NN are the first 2 hex characters
     of the build ID bit string, and NNNNNNNN are the rest of the bit
     string.  (Real build ID strings are 32 or more hex characters, not
     10.)

What may help us here, compared to debug links, is that it seems to be
file name agnostic; the debug files would be matched by an internal ID
that they got at build time rather than from their file names (which
doesn't work with the current different derivations in the presence of
grafts).

Perhaps it'd also lift the need to recompute the CRC checksum of the
debug links produced when grafting!

HTH!

Maxim




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 24 Sep 2021 14:07:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 24 10:07:41 2021
Received: from localhost ([127.0.0.1]:58967 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTlrZ-0006kb-8r
	for submit <at> debbugs.gnu.org; Fri, 24 Sep 2021 10:07:41 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:1891)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1mTlrX-0006kE-LZ
 for control <at> debbugs.gnu.org; Fri, 24 Sep 2021 10:07:39 -0400
IronPort-HdrOrdr: =?us-ascii?q?A9a23=3ALpiqDq32v7/62T7FpzTMsQqjBNckLtp133Aq?=
 =?us-ascii?q?2lEZdPU1SKGlfq+V88jzuSWftN9uYhAdcKG7VJVoKEm0nfVICOIqU4tKMjOHhI?=
 =?us-ascii?q?LRFvAA0bff?=
X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="393937825"
Received: from unknown (HELO ribbon) ([193.50.110.104])
 by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 24 Sep 2021 16:07:33 +0200
Date: Fri, 24 Sep 2021 16:07:33 +0200
Message-Id: <87sfxum5i2.fsf@HIDDEN>
To: control <at> debbugs.gnu.org
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: control message for bug #48907
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

severity 48907 important
quit





Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#48907: Grafts cause discrepancies in debug symbols file names (debug symbols missing in GDB).
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Fri, 24 Sep 2021 14:15:01 +0000
Resent-Message-ID: <handler.48907.B48907.163249289726817 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48907
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Cc: 48907 <at> debbugs.gnu.org
Received: via spool by 48907-submit <at> debbugs.gnu.org id=B48907.163249289726817
          (code B ref 48907); Fri, 24 Sep 2021 14:15:01 +0000
Received: (at 48907) by debbugs.gnu.org; 24 Sep 2021 14:14:57 +0000
Received: from localhost ([127.0.0.1]:58975 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mTlyb-0006yS-52
	for submit <at> debbugs.gnu.org; Fri, 24 Sep 2021 10:14:57 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1mTlyZ-0006yD-9q
 for 48907 <at> debbugs.gnu.org; Fri, 24 Sep 2021 10:14:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54734)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1mTlyU-0000Yl-5D; Fri, 24 Sep 2021 10:14:50 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=60464 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1mTlyT-0004i7-Sv; Fri, 24 Sep 2021 10:14:50 -0400
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
References: <87r1hdtu4t.fsf@HIDDEN> <87eeczikq5.fsf@HIDDEN>
 <87ilyqk8jg.fsf_-_@HIDDEN>
Date: Fri, 24 Sep 2021 16:14:47 +0200
In-Reply-To: <87ilyqk8jg.fsf_-_@HIDDEN> (Maxim Cournoyer's message of "Thu, 
 23 Sep 2021 22:32:35 -0400")
Message-ID: <87lf3mm560.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

[...]

>> This is due to the fact that, when you run =E2=80=98guix build jami-qt=
=E2=80=99, the
>> grafting derivation dismisses the =E2=80=9Cdebug=E2=80=9D output of qtde=
clarative, since
>> jami-qt does not depend on it.  That way it doesn=E2=80=99t have to
>> build/download and graft qtdeclarative:debug.

[...]

> Yikes!  This means that debugging with grafts (with the aid of debugging
> symbols) is no longer possible, right?

It depends on whether the separate =E2=80=9Cdebug=E2=80=9D output gets graf=
ted or not,
but yeah, if a dependency tree has this shape (app -> lib + lib:debug),
running =E2=80=98guix install app=E2=80=99 alone will prevent you from gett=
ing debugging
symbols from =E2=80=98lib:debug=E2=80=99 I believe.  That sucks.

I wonder if we should revert 482fda2729c3e76999892cb8f9a0391a7bd37119.
It=E2=80=99s often not very helpful anyway (we often find ourselves downloa=
ding
unnecessary package outputs because of grafting).

> I remember reading about a 2nd option to locate the separate debug
> symbol files with GDB in info '(gdb) Separate Debug Files':
>
>
>    * The executable contains a "build ID", a unique bit string that is

We=E2=80=99d have to check if this is applicable.  Looking at the ld manual
(info "(ld) Options"), it seems that the UUID =E2=80=9Cstyle=E2=80=9D is ru=
led out
because it=E2=80=99s non-deterministic, and the md5 and sha1 styles would
require us to rewrite build IDs IIUC, similar to how we rewrite CRCs.

Thanks,
Ludo=E2=80=99.





Last modified: Fri, 24 Sep 2021 14:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.