I want collect debug info for a kwin crash that I reported here: https://bugs.kde.org/show_bug.cgi?id=512707. However, I’m not sure how to install debug symbols on KDE Linux.
I tried following the steps for Arch Linux and setting the DEBUGINFOD_URLS
environment variable but since KDE Linux is immutable there’s probably different that needs to be done. Does someone know how to install debug symbols or get gdb to download them (e.g. with debuginfo or debuginfod-find)?
The debuginfod URL is pre-configured on KDE Linux, so they should be downloaded automatically when you use coredumpctl or DrKonqi.
Did you see a specific problem of some sort while collecting details of the crash?
Hi Nate! Thanks for your reply. I checked and you are correct, DEBUGINFOD_URLS is already set and contains another URL for KDE Linux. So, I will leave it alone when I try capturing debug logs again.
I am following the steps at: https://community.kde.org/KWin/Debugging#Debug_KWin_with_GDB. It said to run these 2 commands:
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
sudo gdb -pid $(pidof kwin_wayland) -batch -ex “set logging file kwin_wayland.gdb” -ex “set logging enabled on” -ex “continue” -ex “thread apply all backtrace” -ex “quit”
After reading your message, I did notice that coredumpctl was listed in the steps below https://community.kde.org/KWin/Debugging#Function_call_traces. I did try running coredumpctl after the crash and it produced a log similar to the gdb output log. This is the command that I ran where 1331 was the PID of kwin when it crashed:
coredumpctl dump 1331 --output=cat > kwincrash.log
I think the problem is that the output has ??? (or n/a for coredumpctl) so it doesn’t help. For example, I see this in the log:
#4 0x00007ff84f6a31a8 n/a (libkwin.so.6 + 0x5311a8)
Is the ??? and n/a the problem? Is there another command that needs to go with coredumpctl?