GNU bug report logs - #48907
Grafts cause discrepancies in debug symbols file names (debug symbols missing in GDB).

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Maxim Cournoyer <maxim.cournoyer@HIDDEN>; dated Mon, 7 Jun 2021 18:20:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'Grafts cause discrepancies in debug symbols file names (debug symbols missing in GDB).' from 'Debug symbols file name discrepancies' Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 48907) by debbugs.gnu.org; 7 Jun 2021 19:26:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 07 15:26:14 2021
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>
To: 48907 <at> debbugs.gnu.org
Subject: Re: bug#48907: Debug symbols file name discrepancies
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-Debbugs-Envelope-To: 48907
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




Information forwarded to bug-guix@HIDDEN:
bug#48907; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 7 Jun 2021 18:19:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 07 14:19:42 2021
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>
To: bug-guix <bug-guix@HIDDEN>
Subject: Debug symbols file name discrepancies
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-Debbugs-Envelope-To: submit
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




Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#48907; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 7 Jun 2021 19:30:02 UTC

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