GNU bug report logs - #39503
Supporting elf-debuginfod (debug symbol server)

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; Severity: wishlist; Reported by: Ludovic Courtès <ludo@HIDDEN>; dated Fri, 7 Feb 2020 23:08:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 9 Feb 2020 22:41:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 09 17:41:05 2020
Received: from localhost ([127.0.0.1]:53359 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j0vGD-000177-E8
	for submit <at> debbugs.gnu.org; Sun, 09 Feb 2020 17:41:05 -0500
Received: from lists.gnu.org ([209.51.188.17]:43571)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mark@HIDDEN>) id 1j0vGB-00016z-P5
 for submit <at> debbugs.gnu.org; Sun, 09 Feb 2020 17:41:04 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:49728)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <mark@HIDDEN>) id 1j0vGA-00062x-Gf
 for bug-Guix@HIDDEN; Sun, 09 Feb 2020 17:41:03 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_50,KHOP_HELO_FCRDNS,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mark@HIDDEN>) id 1j0vG9-0007KF-3R
 for bug-Guix@HIDDEN; Sun, 09 Feb 2020 17:41:02 -0500
Received: from wildebeest.demon.nl ([212.238.236.112]:49460
 helo=gnu.wildebeest.org)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mark@HIDDEN>)
 id 1j0vG8-0007Gw-TD; Sun, 09 Feb 2020 17:41:01 -0500
Received: from librem (deer0x15.wildebeest.org [172.31.17.151])
 (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by gnu.wildebeest.org (Postfix) with ESMTPSA id 5B432300074D;
 Sun,  9 Feb 2020 23:40:58 +0100 (CET)
Received: by librem (Postfix, from userid 1000)
 id C2FD9C3EE9; Sun,  9 Feb 2020 23:40:42 +0100 (CET)
Date: Sun, 9 Feb 2020 23:40:42 +0100
From: Mark Wielaard <mark@HIDDEN>
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludo@HIDDEN>
Subject: Re: bug#39503: Supporting elf-debuginfod (debug symbol server)
Message-ID: <20200209224042.GB40455@HIDDEN>
References: <87imkiyp1x.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <87imkiyp1x.fsf@HIDDEN>
User-Agent: Mutt/1.10.1 (2018-07-13)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 212.238.236.112
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
Cc: bug-Guix@HIDDEN
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 Ludo,

On Sat, Feb 08, 2020 at 12:07:22AM +0100, Ludovic Court=C3=A8s wrote:
> I=E2=80=99ve just watched Mark=E2=80=99s very nice talk about debuginfo=
d and and I=E2=80=99d
> like to work towards running an instance of it on ci.guix.gnu.org:
>=20
>   https://fosdem.org/2020/schedule/event/debugging_debuginfod/

Glad you liked it.

> What=E2=80=99s missing today is configuring GCC with =E2=80=98--enable-=
linker-build-id=E2=80=99
> (which is not the default, unlike what Mark says in the talk :-)).

It indeed isn't, I just believed it was because almost all distros
enable it by default, except for Guix :)

> If we do that, I wonder if we can stop using =E2=80=98.gnu_debuglink=E2=
=80=99 (see the
> =E2=80=98strip=E2=80=99 phase in (guix build gnu-build-system)).

debug consumers still need a way to resolve the build-ids.  The
debuginfod-client is one (new) way of doing it. But it will take some
time to add support to everything. Traditionally a debug file for a
build-id is resolved though the file system. That is a symlink under
/usr/lib/debug/.build-id/xx/yyyyy.debug that points to the actual
debug file. It is normally installed by the debuginfo package. For
guix some alternative location should be found and the debug consumers
should be patched to look there (if you want to get rid of
.gnu_debuglink).

> Also, I suspect build IDs wouldn=E2=80=99t mesh well with grafting: unl=
ess we
> rewrite them, the same build ID would match both the ungrafted and the
> grafted variant.  Is that a problem?  Not sure.  (Currently (guix build
> debug-link) recomputes =E2=80=98.gnu_debuglink=E2=80=99 upon grafting s=
o that the links
> remain valid.)

I don't understand grafting yet. But if it is a different build, then
it needs a new/unique build-id.

> PS: I found Eelco Dolstra=E2=80=99s dwarffs to be very smart, too!
>     https://github.com/edolstra/dwarffs

After the talk I also learned about:
https://docs.01.org/clearlinux/latest/guides/clear/debug.html




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

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


Received: (at submit) by debbugs.gnu.org; 7 Feb 2020 23:07:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 07 18:07:28 2020
Received: from localhost ([127.0.0.1]:50420 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1j0Cie-00058h-19
	for submit <at> debbugs.gnu.org; Fri, 07 Feb 2020 18:07:28 -0500
Received: from lists.gnu.org ([209.51.188.17]:45252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1j0Cib-00058Z-Uh
 for submit <at> debbugs.gnu.org; Fri, 07 Feb 2020 18:07:26 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58340)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>) id 1j0Cia-0007FF-S1
 for bug-Guix@HIDDEN; Fri, 07 Feb 2020 18:07:25 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34992)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1j0Cia-0004eA-P4
 for bug-Guix@HIDDEN; Fri, 07 Feb 2020 18:07:24 -0500
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39374 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1j0Cia-00066G-5Q
 for bug-Guix@HIDDEN; Fri, 07 Feb 2020 18:07:24 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-Guix@HIDDEN
Subject: Supporting elf-debuginfod (debug symbol server)
X-Debbugs-Cc: Mark Wielaard <mark@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 19 =?utf-8?Q?Pluvi=C3=B4se?= an 228 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: Sat, 08 Feb 2020 00:07:22 +0100
Message-ID: <87imkiyp1x.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
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: -1.7 (-)

Hello Guix!

I=E2=80=99ve just watched Mark=E2=80=99s very nice talk about debuginfod an=
d and I=E2=80=99d
like to work towards running an instance of it on ci.guix.gnu.org:

  https://fosdem.org/2020/schedule/event/debugging_debuginfod/

What=E2=80=99s missing today is configuring GCC with =E2=80=98--enable-link=
er-build-id=E2=80=99
(which is not the default, unlike what Mark says in the talk :-)).

If we do that, I wonder if we can stop using =E2=80=98.gnu_debuglink=E2=80=
=99 (see the
=E2=80=98strip=E2=80=99 phase in (guix build gnu-build-system)).

Also, I suspect build IDs wouldn=E2=80=99t mesh well with grafting: unless =
we
rewrite them, the same build ID would match both the ungrafted and the
grafted variant.  Is that a problem?  Not sure.  (Currently (guix build
debug-link) recomputes =E2=80=98.gnu_debuglink=E2=80=99 upon grafting so th=
at the links
remain valid.)

Thoughts?

Thanks,
Ludo=E2=80=99.

PS: I found Eelco Dolstra=E2=80=99s dwarffs to be very smart, too!
    https://github.com/edolstra/dwarffs




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to mark@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to mark@HIDDEN, bug-guix@HIDDEN:
bug#39503; 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, 10 Feb 2020 22:15:01 UTC

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