Skip to main content
Topic: Debugging symbols not found, even though installed (Read 476 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Debugging symbols not found, even though installed

Hi.

To debug lightdm, I needed to install debugging symbols for a bunch of packages, and since artix doesn't provide them and recompiling would take a lot of time, I installed everything I needed from an Arch mirror:

Code: [Select]
https://geo.mirror.pkgbuild.com

I only rebuilt these packages:

Code: [Select]
libelogind
turnstile
elogind

Then I connected via ssh to the machine where I installed these debugging symbols and tried to figure out where the problem was, but I got messages that debugging symbols were not found...

Code: [Select]
~ ❯ export LC_ALL=C
~ ❯ doas gdb --pid=$(pidof lightdm)
Excess command line arguments ignored. (4859)
GNU gdb (GDB) 15.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-pc-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"...
4875: No such file or directory.
Attaching to process 5135
Reading symbols from /usr/bin/lightdm...
(No debugging symbols found in /usr/bin/lightdm)
Reading symbols from /usr/lib/libglib-2.0.so.0...
(No debugging symbols found in /usr/lib/libglib-2.0.so.0)
Reading symbols from /usr/lib/libgobject-2.0.so.0...
(No debugging symbols found in /usr/lib/libgobject-2.0.so.0)
Reading symbols from /usr/lib/libgio-2.0.so.0...
(No debugging symbols found in /usr/lib/libgio-2.0.so.0)
Reading symbols from /usr/lib/libXdmcp.so.6...
(No debugging symbols found in /usr/lib/libXdmcp.so.6)
Reading symbols from /usr/lib/libxcb.so.1...
(No debugging symbols found in /usr/lib/libxcb.so.1)
Reading symbols from /usr/lib/libaudit.so.1...
(No debugging symbols found in /usr/lib/libaudit.so.1)
Reading symbols from /usr/lib/libgcrypt.so.20...
(No debugging symbols found in /usr/lib/libgcrypt.so.20)
Reading symbols from /usr/lib/libpam.so.0...
(No debugging symbols found in /usr/lib/libpam.so.0)
Reading symbols from /usr/lib/libgcc_s.so.1...
Reading symbols from /usr/lib/libc.so.6...

warning: the debug information found in "/usr/lib/debug//usr/lib/libc.so.6.debug" does not match "/usr/lib/libc.so.6" (CRC mismatch).
(No debugging symbols found in /usr/lib/libc.so.6)
Reading symbols from /usr/lib/libpcre2-8.so.0...
(No debugging symbols found in /usr/lib/libpcre2-8.so.0)
Reading symbols from /usr/lib/libffi.so.8...
(No debugging symbols found in /usr/lib/libffi.so.8)
Reading symbols from /usr/lib/libgmodule-2.0.so.0...
(No debugging symbols found in /usr/lib/libgmodule-2.0.so.0)
Reading symbols from /usr/lib/libz.so.1...

warning: the debug information found in "/usr/lib/debug//usr/lib/libz.so.1.3.1.debug" does not match "/usr/lib/libz.so.1" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug//usr/lib/libz.so.1.3.1.debug" does not match "/usr/lib/libz.so.1" (CRC mismatch).
(No debugging symbols found in /usr/lib/libz.so.1)
Reading symbols from /usr/lib/libmount.so.1...
(No debugging symbols found in /usr/lib/libmount.so.1)
Reading symbols from /usr/lib/libXau.so.6...
(No debugging symbols found in /usr/lib/libXau.so.6)
Reading symbols from /usr/lib/libcap-ng.so.0...
(No debugging symbols found in /usr/lib/libcap-ng.so.0)
Reading symbols from /usr/lib/libgpg-error.so.0...
(No debugging symbols found in /usr/lib/libgpg-error.so.0)
Reading symbols from /lib64/ld-linux-x86-64.so.2...
(No debugging symbols found in /lib64/ld-linux-x86-64.so.2)
Reading symbols from /usr/lib/libblkid.so.1...
(No debugging symbols found in /usr/lib/libblkid.so.1)
Reading symbols from /usr/lib/security/pam_shells.so...
(No debugging symbols found in /usr/lib/security/pam_shells.so)
Reading symbols from /usr/lib/security/pam_nologin.so...
(No debugging symbols found in /usr/lib/security/pam_nologin.so)
Reading symbols from /usr/lib/security/pam_faillock.so...
(No debugging symbols found in /usr/lib/security/pam_faillock.so)
Reading symbols from /usr/lib/security/pam_unix.so...
(No debugging symbols found in /usr/lib/security/pam_unix.so)
Reading symbols from /usr/lib/libcrypt.so.2...
(No debugging symbols found in /usr/lib/libcrypt.so.2)
Reading symbols from /usr/lib/libtirpc.so.3...
(No debugging symbols found in /usr/lib/libtirpc.so.3)
Reading symbols from /usr/lib/libnsl.so.3...
(No debugging symbols found in /usr/lib/libnsl.so.3)
Reading symbols from /usr/lib/libgssapi_krb5.so.2...
(No debugging symbols found in /usr/lib/libgssapi_krb5.so.2)
Reading symbols from /usr/lib/libkrb5.so.3...
(No debugging symbols found in /usr/lib/libkrb5.so.3)
Reading symbols from /usr/lib/libk5crypto.so.3...
(No debugging symbols found in /usr/lib/libk5crypto.so.3)
Reading symbols from /usr/lib/libcom_err.so.2...
(No debugging symbols found in /usr/lib/libcom_err.so.2)
Reading symbols from /usr/lib/libkrb5support.so.0...
(No debugging symbols found in /usr/lib/libkrb5support.so.0)
Reading symbols from /usr/lib/libkeyutils.so.1...
(No debugging symbols found in /usr/lib/libkeyutils.so.1)
Reading symbols from /usr/lib/libresolv.so.2...

warning: the debug information found in "/usr/lib/debug//usr/lib/libresolv.so.2.debug" does not match "/usr/lib/libresolv.so.2" (CRC mismatch).
(No debugging symbols found in /usr/lib/libresolv.so.2)
Reading symbols from /usr/lib/security/pam_permit.so...
(No debugging symbols found in /usr/lib/security/pam_permit.so)
Reading symbols from /usr/lib/security/pam_env.so...
(No debugging symbols found in /usr/lib/security/pam_env.so)
Reading symbols from /usr/lib/security/pam_gnome_keyring.so...
(No debugging symbols found in /usr/lib/security/pam_gnome_keyring.so)
Reading symbols from /usr/lib/security/pam_access.so...
(No debugging symbols found in /usr/lib/security/pam_access.so)
Reading symbols from /usr/lib/security/pam_time.so...
(No debugging symbols found in /usr/lib/security/pam_time.so)
Reading symbols from /usr/lib/security/pam_loginuid.so...
(No debugging symbols found in /usr/lib/security/pam_loginuid.so)
Reading symbols from /usr/lib/security/pam_keyinit.so...
(No debugging symbols found in /usr/lib/security/pam_keyinit.so)
Reading symbols from /usr/lib/security/pam_limits.so...
(No debugging symbols found in /usr/lib/security/pam_limits.so)
Reading symbols from /usr/lib/libelogind.so.0...
Reading symbols from /usr/lib/libcap.so.2...
(No debugging symbols found in /usr/lib/libcap.so.2)
Reading symbols from /usr/lib/security/pam_motd.so...
(No debugging symbols found in /usr/lib/security/pam_motd.so)
Reading symbols from /usr/lib/security/pam_mail.so...
(No debugging symbols found in /usr/lib/security/pam_mail.so)
Reading symbols from /usr/lib/security/pam_umask.so...
(No debugging symbols found in /usr/lib/security/pam_umask.so)
Reading symbols from /usr/lib/security/pam_turnstile.so...
Reading symbols from /usr/lib/security/pam_elogind.so...
Reading symbols from /usr/lib/libpam_misc.so.0...
(No debugging symbols found in /usr/lib/libpam_misc.so.0)
Reading symbols from /usr/lib/libm.so.6...

warning: the debug information found in "/usr/lib/debug//usr/lib/libm.so.6.debug" does not match "/usr/lib/libm.so.6" (CRC mismatch).
(No debugging symbols found in /usr/lib/libm.so.6)
Reading symbols from /usr/lib/security/pam_deny.so...
(No debugging symbols found in /usr/lib/security/pam_deny.so)
Reading symbols from /usr/lib/security/pam_warn.so...
(No debugging symbols found in /usr/lib/security/pam_warn.so)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
0x00006ee3edbd2c61 in read () from /usr/lib/libc.so.6
(gdb) c
Continuing.
[Detaching after fork from child process 5229]
[Detaching after fork from child process 5231]
[New Thread 0x6ee3ed4c66c0 (LWP 5232)]
[New Thread 0x6ee3e4bff6c0 (LWP 5233)]
[New Thread 0x6ee3eccc56c0 (LWP 5234)]
[Detaching after fork from child process 5240]
[Detaching after fork from child process 5246]
^C

Re: Debugging symbols not found, even though installed

Reply #1
Code: [Select]
~ ❯ pacman -Qsq | grep debug
audit-debug
debugedit
e2fsprogs-debug
gcc-debug
glib2-debug
glibc-debug
gnome-keyring-debug
keyutils-debug
krb5-debug
libcap-debug
libcap-ng-debug
libffi-debug
libgcrypt-debug
libgpg-error-debug
libnsl-debug
libtirpc-debug
libxau-debug
libxcb-debug
libxcrypt-debug
libxdmcp-debug
lightdm-debug
pam-debug
pcre2-debug
util-linux-debug
zlib-debug

Re: Debugging symbols not found, even though installed

Reply #2
What does the DEBUGINFOD_URLS environment variable contain?

Re: Debugging symbols not found, even though installed

Reply #3
Hi, nous!
Code: [Select]
~ ❯ echo $DEBUGINFOD_URLS
https://debuginfod.archlinux.org
~ ❯

Re: Debugging symbols not found, even though installed

Reply #4
There's something wrong with that, it should point to https://debuginfod.artixlinux.org
Is debuginfod installed? If you get the same value after installing it and logging out/in, then it's a glitch on our side.

https://artixlinux.org/news.php#Debuginfod_server_deployed
https://lists.artixlinux.org/archives/artix-announce/2022-August/000006.html

Re: Debugging symbols not found, even though installed

Reply #5
No, it was missing and after installation and relogin the DEBUGINFOD_URLS value did not change...

UDP:
Okay, I'll try to set it manually and see if anything changes.

 

Re: Debugging symbols not found, even though installed

Reply #6
The environment variable is set incorrectly. Even forcing the correct value does not allow the necessary packages to be downloaded automatically. And since nothing works with arch packages anyway, I deleted them and tried to run gdb again and nothing is downloaded.