You are not logged in.

#1 2026-01-11 03:25:39

esotechnica
Member
Registered: 2020-09-29
Posts: 15

No libstdc++ source downloaded from debuginfod server

I hope I have posted this under the right category, please inform me if I haven't.

While exploring some code in debug mode, I noticed that enabling debuginfod has managed to find all source code for the Arch package in question, except for the libstdc++ library.  I am debugging a KDE Plasma executable, and can drill down into libstdc++ (operator new), but I get the following error:

operator new (sz=sz@entry=232) at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/new_op.cc:58
⚠️ warning: 58	/usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/new_op.cc: No such file or directory

Stepping a few lines further, however, and I can see the code for glibc's malloc(), so it seems just the libstdc++ code is missing from the debuginfod server.

Is there any way I can get the debuginfod servers to supply these source files?  I have a workaround for now, where I have downloaded the source for GCC from the ABS and put the source code for libstdc++ in /usr/src/debug/gcc/gcc/libstdc++-v3/

Offline

#2 2026-01-11 09:51:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: No libstdc++ source downloaded from debuginfod server

https://debuginfod.archlinux.org/packages doesn't list gcc-libs, but you could try https://debuginfod.elfutils.org/
However

debugging a KDE Plasma executable, and can drill down into libstdc++ (operator new)

that's not where the bug is anyway, there's some memory corruption ahead or you're running OOM

Offline

#3 2026-01-11 12:45:04

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,623

Re: No libstdc++ source downloaded from debuginfod server

Note that the gcc-debug package does include the symbols for gcc-libs .

In case you need debug symbols often, there's an alternative : use archlinux debug packages

https://wiki.archlinux.org/title/Debugg … g_packages

I added the lines below to my pacman.conf and now install debug packages (temporarily) when needed.


# debug repos
[core-debug]
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch

[extra-debug]
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch

[multilib-debug]
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB