I’m experiencing an issue with GNOME Remote Desktop on Fedora, and I need to generate a stacktrace:
What you could try is attaching gdb in these situations (when having debug symbols installed), and then attach gdb to g-r-d, get a stacktrace, restart it, and look where things would block.
I installed gdb but could not figure out how to install debug symbols for g-r-d. Fedora doesn’t seem to have a package for it.
I tried to attach gdb to the running g-r-d process (/usr/libexec/gnome-remote-desktop-daemon --system
) with gdb -p 79564
. I enabled debuginfod and it downloaded a lot of debug symbols, but I don’t know if any of them were relevant:
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007eff97d1d75d in __GI___poll (fds=0x564a89d30fe0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
29 return SYSCALL_CANCEL (poll, fds, nfds, timeout)
When I tried to connect to g-r-d from Remmina and typed c
to continue in gdb
, all I got was this:
[New Thread 0x7eff8b4006c0 (LWP 98160)]
[New Thread 0x7eff8aa006c0 (LWP 98161)]
[New Thread 0x7eff90c006c0 (LWP 98162)]
[New Thread 0x7eff920006c0 (LWP 98163)]
[New Thread 0x7eff916006c0 (LWP 98164)]
[New Thread 0x7eff8be006c0 (LWP 98165)]
[New Thread 0x7eff8a0006c0 (LWP 98166)]
[New Thread 0x7eff896006c0 (LWP 98167)]
[New Thread 0x7eff88c006c0 (LWP 98168)]
[New Thread 0x7eff7fe006c0 (LWP 98169)]
[Thread 0x7eff88c006c0 (LWP 98168) exited]
[New Thread 0x7eff7f4006c0 (LWP 98170)]
[New Thread 0x7eff7ea006c0 (LWP 98171)]
[New Thread 0x7eff7e0006c0 (LWP 98172)]
[New Thread 0x7eff7d6006c0 (LWP 98173)]
[New Thread 0x7eff7cc006c0 (LWP 98174)]
[New Thread 0x7eff73e006c0 (LWP 98175)]
[New Thread 0x7eff734006c0 (LWP 98176)]
[New Thread 0x7eff72a006c0 (LWP 98177)]
[New Thread 0x7eff720006c0 (LWP 98178)]
[New Thread 0x7eff716006c0 (LWP 98179)]
[New Thread 0x7eff70c006c0 (LWP 98180)]
[Thread 0x7eff920006c0 (LWP 98163) exited]
[Thread 0x7eff896006c0 (LWP 98167) exited]
[Thread 0x7eff8a0006c0 (LWP 98166) exited]
[Thread 0x7eff8be006c0 (LWP 98165) exited]
[Thread 0x7eff916006c0 (LWP 98164) exited]
[Thread 0x7eff90c006c0 (LWP 98162) exited]
[Thread 0x7eff8aa006c0 (LWP 98161) exited]
[Thread 0x7eff7cc006c0 (LWP 98174) exited]
[Thread 0x7eff7f4006c0 (LWP 98170) exited]
[Thread 0x7eff7d6006c0 (LWP 98173) exited]
[Thread 0x7eff7e0006c0 (LWP 98172) exited]
[Thread 0x7eff7ea006c0 (LWP 98171) exited]
[Thread 0x7eff7fe006c0 (LWP 98169) exited]
My understanding is that there are supposed to be function calls here instead of Thread lines (AFAIU this is ASM-level debugging)? I’m assuming that’s due to the debug symbols for g-r-d not being installed on the server. But I don’t know how to get them on there.
The issue is intermittent and probably won’t happen again for a few days, but I want to prepare for the next time it happens.
I used these sources to try to figure out gdb but haven’t had much luck: