public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings
@ 2021-03-12 16:34 mliska at suse dot cz
2021-03-12 16:34 ` [Bug gdb/27570] " mliska at suse dot cz
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: mliska at suse dot cz @ 2021-03-12 16:34 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Bug ID: 27570
Summary: gdb: missing support for debuginfod in
core_target::build_file_mappings
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
It seems that gdb can't utilize debuginfod protocol to get debuginfo of
binaries and shared libs:
$ export DEBUGINFOD_URLS="http://foo.bar:8002" && gdb -ex 'core
12sp3-sssd.core.715'
...
warning: Can't open file /usr/sbin/sssd during file-backed mapping note
processing
warning: Can't open file /var/lib/sss/mcpath/initgroups (deleted) during
file-backed mapping note processing
warning: Can't open file /lib64/libnss_sss.so.2 during file-backed mapping note
processing
warning: Can't open file /lib64/libnsl-2.22.so during file-backed mapping note
processing
warning: Can't open file /lib64/libnss_compat-2.22.so during file-backed
mapping note processing
warning: Can't open file /usr/lib64/libtdb.so.1.3.12 during file-backed mapping
note processing
...
warning: Can't open file /lib64/ld-2.22.so during file-backed mapping note
processing
[New LWP 715]
Missing separate debuginfo for the main executable file
Try: zypper install -C
"debuginfo(build-id)=41b05d41005e68f89b5422f1683b26c332f2d2e6"
Core was generated by `/usr/sbin/sssd'.
#0 0x00007f529a0b9350 in ?? ()
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
@ 2021-03-12 16:34 ` mliska at suse dot cz
2021-03-12 17:09 ` mliska at suse dot cz
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mliska at suse dot cz @ 2021-03-12 16:34 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vries at gcc dot gnu.org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
2021-03-12 16:34 ` [Bug gdb/27570] " mliska at suse dot cz
@ 2021-03-12 17:09 ` mliska at suse dot cz
2021-03-15 13:45 ` mliska at suse dot cz
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mliska at suse dot cz @ 2021-03-12 17:09 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
--- Comment #1 from Martin Liska <mliska at suse dot cz> ---
One would expect both binaries and debuginfo would be downloaded with
debuginfod client.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
2021-03-12 16:34 ` [Bug gdb/27570] " mliska at suse dot cz
2021-03-12 17:09 ` mliska at suse dot cz
@ 2021-03-15 13:45 ` mliska at suse dot cz
2021-03-15 13:58 ` mliska at suse dot cz
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mliska at suse dot cz @ 2021-03-15 13:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=27580
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (2 preceding siblings ...)
2021-03-15 13:45 ` mliska at suse dot cz
@ 2021-03-15 13:58 ` mliska at suse dot cz
2021-03-15 14:07 ` fche at redhat dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mliska at suse dot cz @ 2021-03-15 13:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=27573
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (3 preceding siblings ...)
2021-03-15 13:58 ` mliska at suse dot cz
@ 2021-03-15 14:07 ` fche at redhat dot com
2021-04-01 6:45 ` vries at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: fche at redhat dot com @ 2021-03-15 14:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fche at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (4 preceding siblings ...)
2021-03-15 14:07 ` fche at redhat dot com
@ 2021-04-01 6:45 ` vries at gcc dot gnu.org
2021-04-01 11:08 ` fche at redhat dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: vries at gcc dot gnu.org @ 2021-04-01 6:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Right, we could use:
...
int debuginfod_find_executable(debuginfod_client *client,
const unsigned char *build_id,
int build_id_len,
char ** path);
...
for that.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (5 preceding siblings ...)
2021-04-01 6:45 ` vries at gcc dot gnu.org
@ 2021-04-01 11:08 ` fche at redhat dot com
2021-04-24 18:32 ` mark at klomp dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: fche at redhat dot com @ 2021-04-01 11:08 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Frank Ch. Eigler <fche at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |amerey at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (6 preceding siblings ...)
2021-04-01 11:08 ` fche at redhat dot com
@ 2021-04-24 18:32 ` mark at klomp dot org
2021-08-06 1:34 ` lennordocdoc0921 at gmail dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mark at klomp dot org @ 2021-04-24 18:32 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (7 preceding siblings ...)
2021-04-24 18:32 ` mark at klomp dot org
@ 2021-08-06 1:34 ` lennordocdoc0921 at gmail dot com
2022-03-21 18:19 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lennordocdoc0921 at gmail dot com @ 2021-08-06 1:34 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Lennor <lennordocdoc0921 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lennordocdoc0921 at gmail dot com
--- Comment #3 from Lennor <lennordocdoc0921 at gmail dot com> ---
Great question and answer website! Thank you so much, keep it up the good deed!
Please visit our sites also:
https://www.bradentonrescreening.com/screen-repair--re-screening--st-petersburg-fl.html/
:
https://www.bradentonrescreening.com/screen-repair--re-screening--sarasota-fl.html/
: https://www.vahomeloanmi.com/
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (8 preceding siblings ...)
2021-08-06 1:34 ` lennordocdoc0921 at gmail dot com
@ 2022-03-21 18:19 ` cvs-commit at gcc dot gnu.org
2022-03-22 12:13 ` mliska at suse dot cz
2022-03-22 18:48 ` amerey at redhat dot com
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-21 18:19 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aaron Merey <amerey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b91f93a02c9c32e55073c0f18b330a6a9c5cfa34
commit b91f93a02c9c32e55073c0f18b330a6a9c5cfa34
Author: Aaron Merey <amerey@redhat.com>
Date: Wed Mar 2 20:00:59 2022 -0500
PR gdb/27570: missing support for debuginfod in
core_target::build_file_mappings
Add debuginfod support to core_target::build_file_mappings and
locate_exec_from_corefile_build_id to enable the downloading of
missing executables and shared libraries referenced in core files.
Also add debuginfod support to solib_map_sections so that previously
downloaded shared libraries can be retrieved from the local debuginfod
cache.
When core file shared libraries are found locally, verify that their
build-ids match the corresponding build-ids found in the core file.
If there is a mismatch, attempt to query debuginfod for the correct
build and print a warning if unsuccessful:
warning: Build-id of /lib64/libc.so.6 does not match core file.
Also disable debuginfod when gcore invokes gdb. Debuginfo is not
needed for core file generation so debuginfod queries will slow down
gcore unnecessarily.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (9 preceding siblings ...)
2022-03-21 18:19 ` cvs-commit at gcc dot gnu.org
@ 2022-03-22 12:13 ` mliska at suse dot cz
2022-03-22 18:48 ` amerey at redhat dot com
11 siblings, 0 replies; 13+ messages in thread
From: mliska at suse dot cz @ 2022-03-22 12:13 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
--- Comment #5 from Martin Liska <mliska at suse dot cz> ---
Great, thanks for working on that!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug gdb/27570] gdb: missing support for debuginfod in core_target::build_file_mappings
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
` (10 preceding siblings ...)
2022-03-22 12:13 ` mliska at suse dot cz
@ 2022-03-22 18:48 ` amerey at redhat dot com
11 siblings, 0 replies; 13+ messages in thread
From: amerey at redhat dot com @ 2022-03-22 18:48 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27570
Aaron Merey <amerey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Aaron Merey <amerey at redhat dot com> ---
(In reply to Martin Liska from comment #5)
> Great, thanks for working on that!
No problem! Closing this PR now.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2022-03-22 18:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 16:34 [Bug gdb/27570] New: gdb: missing support for debuginfod in core_target::build_file_mappings mliska at suse dot cz
2021-03-12 16:34 ` [Bug gdb/27570] " mliska at suse dot cz
2021-03-12 17:09 ` mliska at suse dot cz
2021-03-15 13:45 ` mliska at suse dot cz
2021-03-15 13:58 ` mliska at suse dot cz
2021-03-15 14:07 ` fche at redhat dot com
2021-04-01 6:45 ` vries at gcc dot gnu.org
2021-04-01 11:08 ` fche at redhat dot com
2021-04-24 18:32 ` mark at klomp dot org
2021-08-06 1:34 ` lennordocdoc0921 at gmail dot com
2022-03-21 18:19 ` cvs-commit at gcc dot gnu.org
2022-03-22 12:13 ` mliska at suse dot cz
2022-03-22 18:48 ` amerey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).