Open andreaemonti opened 7 months ago
It would be immensely helpful if you're able to get a stack trace with debug symbols from a core dump. It should be as simple as setting ulimit appropriately (i.e., ulimit -c unlimited
) and enabling debug symbols for your system.
I didn't know how to get it, but this should be it (it's the output of thread apply all backtrace full
in gdb launched on the coredump)
gdb.txt
Thanks for the help! Let me know if there is any other info I should give.
It's a little difficult to tell which thread the segfault came from. When you load the core dump into gdb, it should print something like this:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./a'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000001234 in some_function () from /lib/somelib.so
(gdb)
Can you provide that output as well?
Sure! It should be the last one in the log file, aka Thread 1.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `conky -c /home/andrea/.conky/old/home'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000000030 in ?? ()
[Current thread is 1 (Thread 0x7121c6378a00 (LWP 1891))]
(gdb)
Okay thanks, that's what I thought. Looks like a race condition around the call to wl_display_dispatch_pending()
.
Can you say which WM you're using?
The only error I get as output on the console when I launch conky is conky: invalid setting of type 'table' But I cannot understand why
I can't see why either. Try changing conky.text
(remove first half; second half; then half of the broken one; ...), conky.config
seems fine to me.
I can't see why either. Try changing conky.text (remove first half; second half; then half of the broken one; ...), conky.config seems fine to me.
This is actually a (separate) bug: #1806, ignore it for now :)
Can you say which WM you're using?
I don't know if relevant or not any more. Anyway I'm on EndeavourOS with KDE Plasma. So I have KWin as WM.
I also tried splitting the conky in more files, to see if maybe only one crashed, but had no crash during that testing period, so went back to the single file as above.
Today, after a week without crashes, I noticed that it crashed on resuming from suspension. I don't know if this helps to figure out the issue. The previous times I only noticed after a while that conky was not there any more, and didn't know when it happened precisely. But checking the journal on a couple of previous segfaults I saw it happened once while entering suspension, and once during poweroff (but I also had a kernel panic there, for other GPU drivers issues I believe). So maybe it is related.
What happened?
After hours of running smoothly, conky crashes leaving only a segfault message on the system journal.
I'm sorry it's not very reproducible, because it really happens randomly hours after launch. That's why I also haven't experimented much.
Errors in the system journal
These are how most of the logs look like
I tried launching conky with -D debug flag, but I didn't get more info on the crash. The log on the journal though looked a bit different
Error on launch (probably unrelated)
The only error I get as output on the console when I launch conky is
conky: invalid setting of type 'table'
But I cannot understand whyVersion
conky 1.19.7_pre compiled 2024-02-26 for Linux x86_64
Which OS/distro are you seeing the problem on?
Arch Linux
Conky config
Stack trace
No response
Relevant log output
No response