GNU bug report logs - #63047
Can't load glib debug symbols 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: Andrew Tropin <andrew@HIDDEN>; dated Mon, 24 Apr 2023 07:31:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

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


Received: (at 63047) by debbugs.gnu.org; 25 Apr 2023 12:38:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 25 08:38:57 2023
Received: from localhost ([127.0.0.1]:51629 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1prHwf-0005gd-7m
	for submit <at> debbugs.gnu.org; Tue, 25 Apr 2023 08:38:57 -0400
Received: from mail-qv1-f45.google.com ([209.85.219.45]:59670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1prHwa-0005g9-Fm
 for 63047 <at> debbugs.gnu.org; Tue, 25 Apr 2023 08:38:56 -0400
Received: by mail-qv1-f45.google.com with SMTP id
 6a1803df08f44-5ef7c475379so24614806d6.3
 for <63047 <at> debbugs.gnu.org>; Tue, 25 Apr 2023 05:38:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1682426326; x=1685018326;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=zXE++q10UTttHW30w8LDplcIc7WHTSKn5mO81JSckCk=;
 b=HE1EMhgStWmA3rXG7XswwD0m5UYkTVQh2Siqz1gDlpKRrD4lRPOitl7ELmEzkcm0cE
 bjjV2q4jTK0jis5JCuZ0OV0/Iw9rhd6D3LWTtpZQUHpfp5zbI13U/aRXYGJrZTfeAd0Q
 HRHev60Pa5TtGRLp5M/Yce7+XCkypWLDjGsUfeNwH3Rf+n18ct5OqmvyHqdOeEoUpmYO
 Yt/pxsI0D8YaiOTZKIcDkYEffAwyVIrKmB9SFu+J94h/w3WhHC8Ga1Onjf5uRBZHegiI
 JIn07dZnbiicoC3jyMo2kHDuPXXDwlfAzyDhTV5BxY1H9t39LqveZXA03PPsJ3mCT+nE
 /evg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1682426326; x=1685018326;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=zXE++q10UTttHW30w8LDplcIc7WHTSKn5mO81JSckCk=;
 b=W1iib6E/6YHO2JaWwMq953WrNlsxUpCnTe7BcShfNcjkpZq9C2RvT6xJ2JgJft8xJl
 GW2DMkYpq1MsaawWndGdkBQRjqW9z94Y3yeMyLJUbbWQmSSMKPe0BasYI/C7iaeB+gNW
 NYUjIjQC67XiF292FXBsPrihPR4eOyFAY98Z224KQBFiVs0yHEB8RKj8dODCxeLIBrc1
 S0MxQEcH2xqzf0aziRoXKWIHxH78GAZAl3qko28HNGiZ1YtfeWnk6dZ7SHjIvMr9x4ii
 mTXg45a3ub03wQVbjoWaBOvpa/uKcFTe9YOVshyI/ObizrBP6hSTp6pwPbNafvl4JGJb
 vvDg==
X-Gm-Message-State: AAQBX9dLIPC818G2UJxNPGuZ/0pyU86XeQw8e4rXD+Ue8JrxupbdVJFx
 qfm4PbpErTYdiGDuqCjmR6w=
X-Google-Smtp-Source: AKy350bHKQs12+xcQ2Dwtt1upa5glbgL9qw8IM1ypNX5aaAxfGYJqKtzYvdVKn2LhV7KCYbkQEBmyA==
X-Received: by 2002:a05:6214:500a:b0:5a6:1571:1eb with SMTP id
 jo10-20020a056214500a00b005a6157101ebmr29554174qvb.27.1682426326656; 
 Tue, 25 Apr 2023 05:38:46 -0700 (PDT)
Received: from hurd ([2607:fad8:4:3::1003]) by smtp.gmail.com with ESMTPSA id
 c14-20020a0cca0e000000b005dd8b93459asm4042434qvk.50.2023.04.25.05.38.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 25 Apr 2023 05:38:46 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN>
Subject: Re: bug#63047: Can't load glib debug symbols in gdb
References: <871qk9spoy.fsf@HIDDEN> <87ttx5vhoq.fsf@HIDDEN>
Date: Tue, 25 Apr 2023 08:38:44 -0400
In-Reply-To: <87ttx5vhoq.fsf@HIDDEN> (Josselin Poiret via Bug reports
 for's message of "Mon, 24 Apr 2023 09:54:29 +0200")
Message-ID: <87edo8qgq3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 63047
Cc: Josselin Poiret <dev@HIDDEN>, 63047 <at> debbugs.gnu.org,
 Andrew Tropin <andrew@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 Andrew,

Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

> Hi Andrew,
>
> Andrew Tropin <andrew@HIDDEN> writes:
>
>> I try to run emacs in gdb with debug symbols for some libs available, I
>> succeed with gtk+, but it doesn't work for glib and glibc.  It looks
>> strange to me, but maybe I am doing something wrong.
>>
>> Reproducer:
>>
>> guix shell gdb emacs-next-pgtk glibc:debug gtk+:debug glib:debug \
>>      --with-debug-info=glibc --with-debug-info=glib --with-debug-info=gtk+ \
>>      --no-grafts -- gdb .emacs-30.0.50-real
>
> At least for glibc, the glibc that is linked against is the one in (gnu
> packages commencement), which is hidden from the user.  The one in (gnu
> packages base), which you can refer to with "glibc" is different.  You
> can try to find the proper debug output by looking at `guix size` of
> your store path, then finding out the deriver for glibc with `guix gc
> --derivers` and finally looking at the .drv to find out what the debug
> output should be.
>
> For glib, it might be similar, make sure that you're using exactly the
> right store path for it.

Perhaps try on the core-updates branch, where glibc no longer has its
symbols stripped.  Another thing that can cause the debug symbols to not
be found is grafts, as described in #48907, so when debugging I'd
recommend using --no-grafts for now.

-- 
Thanks,
Maxim




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

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


Received: (at submit) by debbugs.gnu.org; 25 Apr 2023 12:38:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 25 08:38:53 2023
Received: from localhost ([127.0.0.1]:51627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1prHwa-0005gN-Tt
	for submit <at> debbugs.gnu.org; Tue, 25 Apr 2023 08:38:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:53664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1prHwZ-0005gG-Fs
 for submit <at> debbugs.gnu.org; Tue, 25 Apr 2023 08:38:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 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 1prHwY-0005mG-Uq
 for bug-guix@HIDDEN; Tue, 25 Apr 2023 08:38:50 -0400
Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730])
 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 1prHwW-0007Yq-Rk
 for bug-guix@HIDDEN; Tue, 25 Apr 2023 08:38:50 -0400
Received: by mail-qk1-x730.google.com with SMTP id
 af79cd13be357-74e462a540aso161765885a.1
 for <bug-guix@HIDDEN>; Tue, 25 Apr 2023 05:38:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1682426326; x=1685018326;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=zXE++q10UTttHW30w8LDplcIc7WHTSKn5mO81JSckCk=;
 b=HE1EMhgStWmA3rXG7XswwD0m5UYkTVQh2Siqz1gDlpKRrD4lRPOitl7ELmEzkcm0cE
 bjjV2q4jTK0jis5JCuZ0OV0/Iw9rhd6D3LWTtpZQUHpfp5zbI13U/aRXYGJrZTfeAd0Q
 HRHev60Pa5TtGRLp5M/Yce7+XCkypWLDjGsUfeNwH3Rf+n18ct5OqmvyHqdOeEoUpmYO
 Yt/pxsI0D8YaiOTZKIcDkYEffAwyVIrKmB9SFu+J94h/w3WhHC8Ga1Onjf5uRBZHegiI
 JIn07dZnbiicoC3jyMo2kHDuPXXDwlfAzyDhTV5BxY1H9t39LqveZXA03PPsJ3mCT+nE
 /evg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1682426326; x=1685018326;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=zXE++q10UTttHW30w8LDplcIc7WHTSKn5mO81JSckCk=;
 b=hmMZyFxkjzT9nzlRtgsiy7R9EN43KwxtSu+lBvbtwCBXn3HnF0D+Fctu/M43LC0M8W
 ENeAceXfq6OSHZbONl+oUMn+VXlpBKN3twdJ+56tHbknPyc/VSjE6BnVoi6QvOod45it
 FDVhPIWUdIs0nX9xgtmujC+1BZklM5gTbPX8mS1mT7oDdABMEeUNFn16eam0OTgVoHYc
 C415GNBQiezY0CqA9ih1RYPX8WeLHWsJbspFDB8D2+ipbBi/IG/yTWoII2UM/RYw0H9p
 XPOXmXzcorT7+5OV49Kxxbk2T+xfUWy/nu+qzAWq0oGf/CakLHuuqTIy1dvoL/ChLPZl
 +Drw==
X-Gm-Message-State: AAQBX9c0Hk6cogp6/zPDRJ6dB39G4DJr7M4AJH1P4xLEwQn/9cWNBMzr
 xFuGFN2ebifVMrjBY0pdTOdwDS2uPzMzzg==
X-Google-Smtp-Source: AKy350bHKQs12+xcQ2Dwtt1upa5glbgL9qw8IM1ypNX5aaAxfGYJqKtzYvdVKn2LhV7KCYbkQEBmyA==
X-Received: by 2002:a05:6214:500a:b0:5a6:1571:1eb with SMTP id
 jo10-20020a056214500a00b005a6157101ebmr29554174qvb.27.1682426326656; 
 Tue, 25 Apr 2023 05:38:46 -0700 (PDT)
Received: from hurd ([2607:fad8:4:3::1003]) by smtp.gmail.com with ESMTPSA id
 c14-20020a0cca0e000000b005dd8b93459asm4042434qvk.50.2023.04.25.05.38.45
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 25 Apr 2023 05:38:46 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN>
Subject: Re: bug#63047: Can't load glib debug symbols in gdb
References: <871qk9spoy.fsf@HIDDEN> <87ttx5vhoq.fsf@HIDDEN>
Date: Tue, 25 Apr 2023 08:38:44 -0400
In-Reply-To: <87ttx5vhoq.fsf@HIDDEN> (Josselin Poiret via Bug reports
 for's message of "Mon, 24 Apr 2023 09:54:29 +0200")
Message-ID: <87edo8qgq3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::730;
 envelope-from=maxim.cournoyer@HIDDEN; helo=mail-qk1-x730.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Josselin Poiret <dev@HIDDEN>, 63047 <at> debbugs.gnu.org,
 Andrew Tropin <andrew@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: -2.3 (--)

Hi Andrew,

Josselin Poiret via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

> Hi Andrew,
>
> Andrew Tropin <andrew@HIDDEN> writes:
>
>> I try to run emacs in gdb with debug symbols for some libs available, I
>> succeed with gtk+, but it doesn't work for glib and glibc.  It looks
>> strange to me, but maybe I am doing something wrong.
>>
>> Reproducer:
>>
>> guix shell gdb emacs-next-pgtk glibc:debug gtk+:debug glib:debug \
>>      --with-debug-info=glibc --with-debug-info=glib --with-debug-info=gtk+ \
>>      --no-grafts -- gdb .emacs-30.0.50-real
>
> At least for glibc, the glibc that is linked against is the one in (gnu
> packages commencement), which is hidden from the user.  The one in (gnu
> packages base), which you can refer to with "glibc" is different.  You
> can try to find the proper debug output by looking at `guix size` of
> your store path, then finding out the deriver for glibc with `guix gc
> --derivers` and finally looking at the .drv to find out what the debug
> output should be.
>
> For glib, it might be similar, make sure that you're using exactly the
> right store path for it.

Perhaps try on the core-updates branch, where glibc no longer has its
symbols stripped.  Another thing that can cause the debug symbols to not
be found is grafts, as described in #48907, so when debugging I'd
recommend using --no-grafts for now.

-- 
Thanks,
Maxim




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

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


Received: (at 63047) by debbugs.gnu.org; 24 Apr 2023 07:54:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 24 03:54:39 2023
Received: from localhost ([127.0.0.1]:47396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pqr1y-0003S5-OU
	for submit <at> debbugs.gnu.org; Mon, 24 Apr 2023 03:54:39 -0400
Received: from jpoiret.xyz ([206.189.101.64]:38412)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dev@HIDDEN>) id 1pqr1w-0003Rt-32
 for 63047 <at> debbugs.gnu.org; Mon, 24 Apr 2023 03:54:36 -0400
Received: from authenticated-user (jpoiret.xyz [206.189.101.64])
 by jpoiret.xyz (Postfix) with ESMTPA id 05DF0184F2B;
 Mon, 24 Apr 2023 07:54:33 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim;
 t=1682322874;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=6B0hYG1uPpjCC6T+lUFInOkDbOd6r2Rk1DuuYajMxZg=;
 b=vZNi4V0lFj8n3THXzIWgz0syxrUllEDGtPFF5VOjp81B/UQaApJZvmJvO6lci8c7OFPcwb
 nGMRZMFexxUhRSbZBFRQWQFWxuMXzJtMGBpGt9ktBv/cMvCTsZYSqtnvQflW6B8qylYGg5
 09y5mFl0EDWZIPhdnZOlCBRelf6bLkCHFwUiRC336blYMO+Xc7EQX0ErqQCANI/WT7DpwG
 F9VEbCCtmT6MGbacuiry+AkkKHVPwkp937D+iIjSlhuJvvoiTtukB/0WvFHqMOG0OYTXbN
 jvorycWBn2nKX7hjGyhDrIQxb37GrMJ1hsu9Elnzy0OxDRf18gpqCtf7Ml1qCw==
From: Josselin Poiret <dev@HIDDEN>
To: Andrew Tropin <andrew@HIDDEN>, 63047 <at> debbugs.gnu.org
Subject: Re: bug#63047: Can't load glib debug symbols in gdb
In-Reply-To: <871qk9spoy.fsf@HIDDEN>
References: <871qk9spoy.fsf@HIDDEN>
Date: Mon, 24 Apr 2023 09:54:29 +0200
Message-ID: <87ttx5vhoq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spamd-Bar: /
Authentication-Results: jpoiret.xyz;
 auth=pass smtp.auth=jpoiret@HIDDEN smtp.mailfrom=dev@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 63047
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: 0.0 (/)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Andrew,

Andrew Tropin <andrew@HIDDEN> writes:

> I try to run emacs in gdb with debug symbols for some libs available, I
> succeed with gtk+, but it doesn't work for glib and glibc.  It looks
> strange to me, but maybe I am doing something wrong.
>
> Reproducer:
>
> guix shell gdb emacs-next-pgtk glibc:debug gtk+:debug glib:debug \
>      --with-debug-info=3Dglibc --with-debug-info=3Dglib --with-debug-info=
=3Dgtk+ \
>      --no-grafts -- gdb .emacs-30.0.50-real

At least for glibc, the glibc that is linked against is the one in (gnu
packages commencement), which is hidden from the user.  The one in (gnu
packages base), which you can refer to with "glibc" is different.  You
can try to find the proper debug output by looking at `guix size` of
your store path, then finding out the deriver for glibc with `guix gc
=2D-derivers` and finally looking at the .drv to find out what the debug
output should be.

For glib, it might be similar, make sure that you're using exactly the
right store path for it.

Best,
=2D-=20
Josselin Poiret

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmRGNbUQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcailDLDACCv808ZnXddNomzJ4zdz1nBKR/tv5L8wz3
7ffY6Tt0fBixqSjH25vYH4wrYDDganSxFdRDHUGcaDXH5FV7h/vm/IsNL8glojLh
1HwrWgXWC3KicYBlU2Af8mgMwGkhmCXa1zfk5Otlv2q6djpa5Z6HwUnW5aHY6/z2
7hdPgycA0NMuCnhyfdRiPhdh+grPvxt7cHMD9nRc197OCJpyn5qt2Ac3y/dsA447
L0nZbyWo/Qxr2wBl0ciDNeDbSyYxLCWQjU3qDi51dRAoQmJpZZMWwiAZxi8Dy/GH
xwYFaUaAkFIzMgY+JKlYmF4OT483690kG6HUQZCxo5wyIFfED145EVxowVczw4jH
3gtPu/zaaLCeozBQGYVDth1Khz3SjJd4sTAk270jSXZWqLA/EWbR9OXTqPcwjgxG
HBIZxn4HuezPbbZmfSbb4XuVuTJ/yoNDuyU0ZPm1mVTEG9d0QlDQB+c71wrdlghq
ARL+PKRyP3lz1HUYLYa4vDUkpheuz50=
=59A5
-----END PGP SIGNATURE-----
--=-=-=--




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

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


Received: (at submit) by debbugs.gnu.org; 24 Apr 2023 07:30:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 24 03:30:08 2023
Received: from localhost ([127.0.0.1]:47372 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pqqeF-0002hl-B1
	for submit <at> debbugs.gnu.org; Mon, 24 Apr 2023 03:30:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:43914)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andrew@HIDDEN>) id 1pqqeC-0002hZ-AN
 for submit <at> debbugs.gnu.org; Mon, 24 Apr 2023 03:30:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andrew@HIDDEN>) id 1pqqeA-0004fK-7F
 for bug-guix@HIDDEN; Mon, 24 Apr 2023 03:30:03 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <andrew@HIDDEN>) id 1pqqe7-0002g9-8l
 for bug-guix@HIDDEN; Mon, 24 Apr 2023 03:30:01 -0400
Received: (Authenticated sender: andrew@HIDDEN)
 by mail.gandi.net (Postfix) with ESMTPSA id 322992000D
 for <bug-guix@HIDDEN>; Mon, 24 Apr 2023 07:29:52 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1;
 t=1682321393;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=VkPUy1U8rEdruQo4CDQQnc6jyinpeNOrXv6OdHMoYlc=;
 b=H/pvitjxCJBV/59J5S9Ta+gVQfoh+jCJCXhPRFB6uLeXqNPrml3By1RgztMtptdx9Gd0nb
 nHNDABPXdEC5PAqaIG3xwx+qA8WN1uz+gwebKWHkucqECbl0n1U4vDy+oSHkrobWiDxrPc
 Fa7vfJxuLdWVzBO9ZTsOuhCxf7VP6kuw+0JmF6fhFFhx30aqRULO1A6VsTiNry57hoc/gg
 nlOVYosfhlhrdxggxlamOiiSJIFIqQ6EQUVt2K8rEaeb3aUYK68Cx1mGIEvdWHZpZ6qBEl
 tt3dXFCGdXoQkXwtjRcwsaU3Fv0CaBGIypV9wocbFWzd6SdDCHJqzjFcIMfvIQ==
From: Andrew Tropin <andrew@HIDDEN>
To: bug-guix@HIDDEN
Subject: Can't load glib debug symbols in gdb
Date: Mon, 24 Apr 2023 11:29:49 +0400
Message-ID: <871qk9spoy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=217.70.183.200; envelope-from=andrew@HIDDEN;
 helo=relay7-d.mail.gandi.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
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: -2.6 (--)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I try to run emacs in gdb with debug symbols for some libs available, I
succeed with gtk+, but it doesn't work for glib and glibc.  It looks
strange to me, but maybe I am doing something wrong.

Reproducer:

guix shell gdb emacs-next-pgtk glibc:debug gtk+:debug glib:debug \
     --with-debug-info=3Dglibc --with-debug-info=3Dglib --with-debug-info=
=3Dgtk+ \
     --no-grafts -- gdb .emacs-30.0.50-real

=2D-8<---------------cut here---------------start------------->8---
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
l>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from .emacs-30.0.50-real...
(No debugging symbols found in .emacs-30.0.50-real)
(gdb) run -q
Starting program: /gnu/store/g59lvzvhbai1dcrbckaw4qvf4amxyfa2-profile/bin/.=
emacs-30.0.50-real -q
warning: Unable to find libthread_db matching inferior's thread library, th=
read debugging will not be available.
[New LWP 14944]
[New LWP 14945]
[New LWP 14946]
Gdk-Message: 11:19:32.820: Unable to load sb_v_double_arrow from the cursor=
 theme
Gdk-Message: 11:19:32.820: Unable to load sb_h_double_arrow from the cursor=
 theme
Gdk-Message: 11:19:32.838: Unable to load hand2 from the cursor theme
Gdk-Message: 11:19:32.838: Unable to load sb_h_double_arrow from the cursor=
 theme
Gdk-Message: 11:19:32.838: Unable to load sb_v_double_arrow from the cursor=
 theme
[New LWP 14947]
[LWP 14947 exited]
[New LWP 14948]
[New LWP 14949]
[LWP 14948 exited]
[LWP 14949 exited]
[New LWP 14950]
[New LWP 14951]
[LWP 14950 exited]
[LWP 14951 exited]
^Z
Thread 1 ".emacs-30.0.50-" received signal SIGTSTP, Stopped (user).
0x00007ffff3def17b in pselect () from /gnu/store/5h2w4qi9hk1qzzgi1w83220yds=
linr4s-glibc-2.33/lib/libc.so.6
(gdb) info dll
From=20               To                  Syms Read   Shared Object Library
0x00007ffff7fcf050  0x00007ffff7ff15ee  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2
0x00007ffff769c070  0x00007ffff79e9936  Yes         /gnu/store/whgbkfyggc3l=
jkh7y9wqwvqgnsnnyf7w-gtk+-3.24.30/lib/libgtk-3.so.0
0x00007ffff7ee6190  0x00007ffff7f5efdd  Yes         /gnu/store/whgbkfyggc3l=
jkh7y9wqwvqgnsnnyf7w-gtk+-3.24.30/lib/libgdk-3.so.0
0x00007ffff7ea9b20  0x00007ffff7eaf8c0  Yes (*)     /gnu/store/vk23fcm4livz=
rnb3kzhxs6yjds8f355c-pango-1.48.10/lib/libpangocairo-1.0.so.0
0x00007ffff7e61c80  0x00007ffff7e8711e  Yes (*)     /gnu/store/vk23fcm4livz=
rnb3kzhxs6yjds8f355c-pango-1.48.10/lib/libpango-1.0.so.0
0x00007ffff751fec0  0x00007ffff75c462e  Yes (*)     /gnu/store/f6ibajh7x233=
cvr30c2p314l2absk36h-harfbuzz-2.8.2/lib/libharfbuzz.so.0
0x00007ffff7e316b0  0x00007ffff7e3ed44  Yes (*)     /gnu/store/np9pryvn0rxc=
00cc6g4jd7rlcxwk2mxs-atk-2.36.0/lib/libatk-1.0.so.0
0x00007ffff750d0a0  0x00007ffff750e20d  Yes (*)     /gnu/store/6gq2n65ixpn6=
drd5wai2h7g5wjm6bp2b-cairo-1.16.0/lib/libcairo-gobject.so.2
0x00007ffff73fc680  0x00007ffff74c3a97  Yes (*)     /gnu/store/6gq2n65ixpn6=
drd5wai2h7g5wjm6bp2b-cairo-1.16.0/lib/libcairo.so.2
0x00007ffff73c9b50  0x00007ffff73dccde  Yes (*)     /gnu/store/xgiz9rvzvfhw=
x655lb6jpjx1whc4kjg8-gdk-pixbuf-2.42.4/lib/libgdk_pixbuf-2.0.so.0
0x00007ffff721e980  0x00007ffff73267e6  Yes (*)     /gnu/store/96srhmpmxa20=
wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgio-2.0.so.0
0x00007ffff7191760  0x00007ffff71be826  Yes (*)     /gnu/store/96srhmpmxa20=
wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0
0x00007ffff706ed40  0x00007ffff70f4a7e  Yes (*)     /gnu/store/96srhmpmxa20=
wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0
0x00007ffff6fd5dc0  0x00007ffff7018105  Yes (*)     /gnu/store/343iqv9hvbvz=
p2in0hs03dvygccrcapl-libtiff-4.3.0/lib/libtiff.so.5
0x00007ffff6f39500  0x00007ffff6f8e0c5  Yes (*)     /gnu/store/g5hf1zhqlcyx=
9vw3q1xa52bgddaqsfm5-libjpeg-turbo-2.0.5/lib/libjpeg.so.62
0x00007ffff6f05900  0x00007ffff6f2739a  Yes (*)     /gnu/store/p7iq81hxxyk9=
zy7a9dngbf16zm8d4klx-libpng-1.6.37/lib/libpng16.so.16
0x00007ffff6ee52f0  0x00007ffff6ef5cc4  Yes (*)     /gnu/store/8qv5kb2fgm4c=
3bf70zcg9l6hkf3qzpw9-zlib-1.2.11/lib/libz.so.1
0x00007ffff6ed9390  0x00007ffff6edd58b  Yes (*)     /gnu/store/4d0ssibbd2gl=
k1vc93zj738awmy22xad-giflib-5.2.1/lib/libgif.so.7
0x00007ffff6e0fcc0  0x00007ffff6e93bd6  Yes (*)     /gnu/store/nfxcjvv9c2q6=
in9x52kkkayqv38k00ai-alsa-lib-1.2.4/lib/libasound.so.2
0x00007ffff6512070  0x00007ffff6a2df5c  Yes (*)     /gnu/store/0w390zkxhzhk=
myp0sns8z97bfmzbr7gz-librsvg-2.50.7/lib/librsvg-2.so.2
0x00007ffff62cc200  0x00007ffff6362d11  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/libm.so.6
0x00007ffff6dd4370  0x00007ffff6dd8340  Yes (*)     /gnu/store/a38k2v29l6l0=
iz6pmlk4dmzwdbvl10lq-acl-2.3.1/lib/libacl.so.1
0x00007ffff6dca3f0  0x00007ffff6dcd1b1  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/librt.so.1
0x00007ffff626dd20  0x00007ffff62a636a  Yes (*)     /gnu/store/8zigz7afvz2r=
jrvrh7zq1d389qbl2684-dbus-1.12.20/lib/libdbus-1.so.3
0x00007ffff6122bd0  0x00007ffff62068ce  Yes (*)     /gnu/store/g3y6ifhm0751=
vgsxv90yipfw6mk189kj-libxml2-2.9.12/lib/libxml2.so.2
0x00007ffff6097cc0  0x00007ffff60d13e8  Yes (*)     /gnu/store/9rrnm5hdjw7c=
y96a2a9rfgh6y08wsbmf-ncurses-6.2.20210619/lib/libncursesw.so.6
0x00007ffff6052f80  0x00007ffff6071dd1  Yes (*)     /gnu/store/3hmh0srgky1a=
621rzaxf98qvr0p9r1dv-libselinux-3.4/lib/libselinux.so.1
0x00007ffff5fa79c0  0x00007ffff6018c0d  Yes (*)     /gnu/store/ak70pk2hjks1=
7cx7zjdmdmzpcpiy9gpi-freetype-2.10.4/lib/libfreetype.so.6
0x00007ffff5f577a0  0x00007ffff5f7d05a  Yes (*)     /gnu/store/3r5sl1l02kjx=
zw3gicjpjz4kw6v4rgs9-fontconfig-minimal-2.13.94/lib/libfontconfig.so.1
0x00007ffff5f38230  0x00007ffff5f49380  Yes (*)     /gnu/store/64ic06l5pd78=
n7blzikqzfnnp0xp5msd-libotf-0.9.16/lib/libotf.so.1
0x00007ffff5d76940  0x00007ffff5e89670  Yes (*)     /gnu/store/zl9wf0zwq2ka=
9rpmayp53hnp2mn460xf-gnutls-3.7.2/lib/libgnutls.so.30
0x00007ffff5d22540  0x00007ffff5d2fba1  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/libpthread.so.0
0x00007ffff5d17200  0x00007ffff5d18301  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/libanl.so.1
0x00007ffff5cc3280  0x00007ffff5cf9bfa  Yes (*)     /gnu/store/0dhvl2lvb7gs=
rbjf5jq5pd7hdvznsazz-lcms-2.12/lib/liblcms2.so.2
0x00007ffff5cb2130  0x00007ffff5cb2f31  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/libdl.so.2
0x00007ffff5c1b830  0x00007ffff5c8537c  Yes (*)     /gnu/store/v3hqc5i1jqi0=
s04zxvi465bihrgb1sq1-elogind-246.10/lib/libelogind.so.0
0x00007ffff5bfb1f0  0x00007ffff5c02f2b  Yes (*)     /gnu/store/nprljhh7a863=
51vg6h23va3kfdnkwnd4-jansson-2.13.1/lib/libjansson.so.4
0x00007ffff5b6d440  0x00007ffff5bde0ab  Yes (*)     /gnu/store/fwbiihd2sbha=
i63y1pvvdh0f2bakfzrf-gmp-6.2.1/lib/libgmp.so.10
0x00007ffff4219c50  0x00007ffff508025e  Yes (*)     /gnu/store/lphzb1z0r4kb=
b453rsvnw7msrxxzp5r7-libgccjit-10.3.0/lib/libgccjit.so.0
0x00007ffff5b2e8c0  0x00007ffff5b51e83  Yes (*)     /gnu/store/cbviswij2rbq=
nbsc889166wm7ri5pc2r-tree-sitter-0.20.7/lib/libtree-sitter.so.0
0x00007ffff3ed5ca0  0x00007ffff3fc4c36  Yes (*)     /gnu/store/xmzx5mzv4863=
yw9kmr2ykndgp37p8if0-sqlite-3.36.0/lib/libsqlite3.so.0
0x00007ffff5b12310  0x00007ffff5b22b1d  Yes (*)     /gnu/store/094bbaq6glba=
86h1d4cj16xhdi6fk2jl-gcc-10.3.0-lib/lib/libgcc_s.so.1
0x00007ffff3d25330  0x00007ffff3e64389  Yes (*)     /gnu/store/5h2w4qi9hk1q=
zzgi1w83220ydslinr4s-glibc-2.33/lib/libc.so.6
0x00007ffff5b09100  0x00007ffff5b099ec  Yes (*)     /gnu/store/6h8skg2n4gpb=
i0bwfmw6qyh03phic6dm-libxinerama-1.1.4/lib/libXinerama.so.1
...
(*): Shared library is missing debugging information.
=2D-8<---------------cut here---------------end--------------->8---

My .gdbinit:
=2D-8<---------------cut here---------------start------------->8---
# Tell GDB where to look for separate debugging files.
guile
(use-modules (gdb))
(execute (string-append "set debug-file-directory "
                        (string-join
                         (if (getenv "GDB_DEBUG_FILE_DIRECTORY")
                             (list (getenv "GDB_DEBUG_FILE_DIRECTORY"))
                             '())
                          ":")))
end

# Authorize extensions found in the store, such as the
# pretty-printers of libstdc++.
set auto-load safe-path /
# /gnu/store/*/lib
set history filename ~/.cache/gdb_history
set history save on
=2D-8<---------------cut here---------------end--------------->8---

=2D-=20
Best regards,
Andrew Tropin

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmRGL+0ACgkQIgjSCVjB
3rCRdQ/8DkPRIYywyCN3h2IKTyOmkE5DbQ6KXY5lDEBWg1awdDiglRDEnFfk4XJd
TxK5TQfyThtwayahULxv4YkZRIbi4y0FU6brWgslfVBTdMHmCeeD+wyEuBuUKgAU
0RXCk07dx1H2NNSuCz4HkEHDyIhCUOzfm3IwDcCDqF3Lt5wqCk79WbtwCMRXkk1n
3gZZ7YFi9/lTcZLCslbrtOZFRTBl4fPmvH/s4Cs7REyGjloO+RuAGtS77oD4lBKG
43bN5H2Ec7WGJXY6eElIpdGBJnCwv7qc9+L8wkmcKmi/76KtRDk3GlMWSCAIyfKu
f2t4+PHfe+k7WU/MvaVRRqkC9awiGLEOWDB6tedf5ft6e9JKQq9XO7m1N9Bj7MVh
nQ7GhnUcaZqLD2DpgXvx30gdSMczrs7aVNIDy2K5isLdTOU2muUt8LrrBlgMXO3N
v6KDwswGJH5IBqbJO9xfZLgvMFuVEjiNPZrZ3WZjPrWAKoZ/LgRHPQL2NRFX53qE
beoC7G8WRGRNguoGX/19eS1weWHyuTv3/CkPh7xdih/bfB5Zx5xW3G8Kxa5wRjFA
XTA4z7KpLiD3CAD7Mhyo4OYUUxDcFSTCNSVOsu6AxURBBuZQVUE1pjer1kQeU2nJ
4ja0vNNRckLPEUn/5aW2478Ld7IXCU4fYlH9DyeEDgKugPJoB0k=
=i5y2
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Andrew Tropin <andrew@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#63047; 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: Tue, 25 Apr 2023 12:45:01 UTC

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