elfutils debuginfod is a client/server in elfutils 0.178+ that automatically distributes elf/dwarf/source-code from servers to clients such as debuggers across HTTP.


Anyone may run debuginfod servers for their private purposes. Software publishers are invited to run public servers for use by the community. Heck, anyone may run servers based on redistributable artifacts from others. To configure a client tool to use them, simply add any of the server URLs to your $DEBUGINFOD_URLS environment variable (space-separated).

private servers

To run your own server, identify the directories containing raw build files, or RPM packages, or DEB packages, or any combination, and launch debuginfod into the background.
% debuginfod [-F $files] [-R $rpms] [-U $debs] &
% export DEBUGINFOD_URLS=http://localhost:8002/
% export DEBUGINFOD_PROGRESS=1   # for optional download progress reporting
Or use systemd.

public servers

The following public services currently [2020-02] welcome users.
The first one federates to all the others, so
% export DEBUGINFOD_URLS="https://debuginfod.elfutils.org/ $DEBUGINFOD_URLS"
% export DEBUGINFOD_PROGRESS=1    # for optional download progress reporting
will get you to all of them.

https://debuginfod.elfutils.org/ online fche@redhat.com federates all following trusted servers
https://debuginfod.systemtap.org/ experimental fche@redhat.com recent fedora, centos, ubuntu, debian bash binutils boost busybox coreutils dyninst elfutils gcc glibc httpd kernel ncurses procps python samba stress systemd systemtap tcl zsh mostly x86_64
https://debuginfod.opensuse.org/ experimental mliska@suse.cz opensuse TW all x86_64
https://debuginfod.s.voidlinux.org/ official ericonr@disroot.org void linux most most


debuginfod client-side support is under construction or already available in a variety of binary-related utilities. We summarize current upstream status [2020-02] below. Note that distros may lag behind upstream developments.

elfutils released in version 0.178, 2019-11
systemtap automatic via elfutils
dwarves automatic via elfutils
dwgrep automatic via elfutils
libabigail automatic via elfutils
binutils released in version 2.34, 2020-02
gdb released in version 10.1, 2020-10
dyninst in progress amerey@redhat.com
valgrind help wanted
annocheck released in version 9.03, 2020-01
delve help wanted
lldb in progress kkleine@redhat.com
perf in progress, partly via elfutils
systemd-coredumpd help wanted
retrace/abrt/faf help wanted

smoke tests

Print a stack traceback of a live process:
% eu-stack -v -p $$
PID 3063417 - process
TID 3063417:
#0  0x0000151bf53f2e3c     __GI___sigsuspend - /usr/lib64/libc-2.31.so
#1  0x000055fd754de91b - 1 signal_suspend - /usr/bin/zsh
#2  0x000055fd754a8f7b - 1 zwaitjob - /usr/bin/zsh
#8  0x000055fd754a4bd6 - 1 zsh_main - /usr/bin/zsh
#9  0x0000151bf53dd042 - 1 __libc_start_main - /usr/lib64/libc-2.31.so
#10 0x000055fd754689fe - 1 _start - /usr/bin/zsh
Fetch a source file:
% cat `debuginfod-find source d278249792061c6b74d1693ca59513be1def13f2 \
[source code]

more readings