From: Paul Smith via Gdb <gdb@sourceware.org>
To: gdb@sourceware.org
Subject: Does gdb debuginfod download libc etc.?
Date: Sat, 07 Mar 2026 18:58:21 -0500 [thread overview]
Message-ID: <b9b5bf03c59b58e02ca27b522338c6103d5ae49f.camel@gnu.org> (raw)
I'm trying to start using debuginfod support in my environment. I've
started my own debuginfod server and I've added lots of historical
binaries and shared libraries that I get core files from.
In that past I've asked users to package up all their system libraries
such as libc.so, libm.so, libpthread.so, the runtime linker ld-linux.so
etc. and send them along with their core file. Then I run GDB like:
gdb -iex 'set sysroot xxx' -c core exe
What I was hoping to do is to run "gdb -c core" and have debuginfod get
everything I need without having to ask users to send anything
(assuming I've already got the libraries, which I usually do). But, it
doesn't seem to be working.
I've used debuginfod-find to verify that all the libraries referenced
by the core file do exist on the server (via their build ID).
When I run "gdb -c core" it DOES correctly download the executable
file, so I know that GDB's debuginfod configuration is working. It
also appears to download linux-vdso.so.1.
However, none of my other libraries are being loaded, even if I use bt
or whatever to look at the backtrace. Without libc for example, none
of the threads which were in the C runtime when the core was taken can
be traced and I just get "?? ()" for every frame. If I use "info
sharedlib" I see all the .so paths are the local system versions of
these libraries, and they have a "Syms Read" value of "No".
Is there something else I need to do to get this working?
Or am I just misunderstanding how debuginfod support works?
next reply other threads:[~2026-03-07 23:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 23:58 Paul Smith via Gdb [this message]
2026-03-08 9:44 ` Arsen Arsenović via Gdb
2026-03-08 21:04 ` Paul Smith via Gdb
2026-03-09 2:32 ` Simon Marchi via Gdb
2026-03-09 13:57 ` Paul Smith via Gdb
2026-03-09 15:36 ` Simon Marchi via Gdb
2026-03-09 17:28 ` Andrew Burgess via Gdb
2026-03-09 16:57 ` Andrew Burgess via Gdb
2026-03-09 20:32 ` Paul Smith via Gdb
2026-03-09 21:19 ` Paul Smith via Gdb
2026-03-10 9:12 ` Mark Wielaard
2026-03-10 14:20 ` Andrew Burgess via Gdb
2026-03-10 17:12 ` Paul Smith via Gdb
2026-03-11 9:28 ` Andrew Burgess via Gdb
2026-03-11 14:46 ` Paul Smith via Gdb
2026-03-12 20:38 ` Paul Smith via Gdb
2026-03-13 13:45 ` Andrew Burgess via Gdb
2026-03-13 15:44 ` Paul Smith via Gdb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9b5bf03c59b58e02ca27b522338c6103d5ae49f.camel@gnu.org \
--to=gdb@sourceware.org \
--cc=psmith@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox