Created attachment 159294 [details] Gdb backtrace SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Update Arch 2. Try to open kate/kwrite 3. Crash happens, Kde crash handler opens OBSERVED RESULT Kate shows nothing on terminal but kde's crash handler says "Segmentation fault (11)" Kwrite shows: 20 -- exe=/usr/bin/kwrite 13 -- platform=xcb 11 -- display=:0 15 -- appname=kwrite 17 -- apppath=/usr/bin 10 -- signal=11 10 -- pid=12581 19 -- appversion=23.04.1 19 -- programname=KWrite 31 -- bugaddress=submit@bugs.kde.org 24 -- productname=kate/kwrite KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = kwrite path = /usr/bin pid = 12581 KCrash: Arguments: /usr/bin/kwrite KCrash: Attempting to start /usr/lib/drkonqi [1] + 12581 suspended (signal) kwrite I've tried downgrading the kate package but that didn't work either, All other kde/qt apps seem fine EXPECTED RESULT Kate/Kwrite opening SOFTWARE/OS VERSIONS Windows: N/A macOS: N/A Linux/KDE Plasma: Arch rolling release, Kernel 6.2.8 (linux-tkg) (available in About System) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION Graphics platform: X11 Kernel Version: 6.2.8-273-tkg-bore-llvm (64-bit)
Unfortunately that backtrace is useless, it only contains failed debuginfod (the system used to download debug symbols from Arch Linux). I suspect that some underlying package has been malformed when installing, which happens often in Arch Linux in my experience :-( On my Arch machine, Kate 23.04.1 runs fine. I recommend reinstalling all of your packages (https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Reinstalling_all_packages) and seeing if that fixes the issue. In the meantime, I'm setting this to NEEDSINFO because there's not much we can do on our end.
(In reply to Joshua Goins from comment #1) > Unfortunately that backtrace is useless, it only contains failed debuginfod > (the system used to download debug symbols from Arch Linux). I suspect that > some underlying package has been malformed when installing, which happens > often in Arch Linux in my experience :-( > > On my Arch machine, Kate 23.04.1 runs fine. I recommend reinstalling all of > your packages > (https://wiki.archlinux.org/title/Pacman/ > Tips_and_tricks#Reinstalling_all_packages) and seeing if that fixes the > issue. In the meantime, I'm setting this to NEEDSINFO because there's not > much we can do on our end. Is there some way i can get a proper gdb log? i'll try reinstalling every package, already tried reinstalling most kde libs related to kate
- try starting it from the terminal i.e., run `kate` or `kate -b` (blocking mode) - make it crash - run `coredumptctl debug` - wait till symbols are downloaded and gdb starts up - type 'bt` and hit ENTER => gives you a backtrace
(In reply to Waqar Ahmed from comment #3) > - try starting it from the terminal i.e., run `kate` or `kate -b` (blocking > mode) > - make it crash > - run `coredumptctl debug` > - wait till symbols are downloaded and gdb starts up > - type 'bt` and hit ENTER => gives you a backtrace After reinstalling every package it still crashes the same way Coredumpctl gives: #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007f4ed4a9f2d3 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007f4ed4a4fa08 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26 #3 0x00007f4ed5c8981f in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-5.106.0/src/kcrash.cpp:626 #4 <signal handler called> #5 0x00007f4ed40da544 in KSyntaxHighlighting::Definition::isHidden() const () from /usr/lib/libKF5SyntaxHighlighting.so.5 #6 0x00007f4ed4752a57 in KateModeManager::update (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:114 #7 0x00007f4ed48866ac in KateModeManager::KateModeManager (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:39 #8 KTextEditor::EditorPrivate::EditorPrivate(QPointer<KTextEditor::EditorPrivate>&) [clone .constprop.0] (this=0x557f01c7c850, staticInstance=...) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:181 #9 0x00007f4ed481b2a3 in KTextEditor::EditorPrivate::self () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:407 #10 0x00007f4ed481c5da in KTextEditor::Editor::instance () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/ktexteditor.cpp:86 And also: PID: 75159 (kate) UID: 1000 (davi) GID: 1000 (davi) Signal: 11 (SEGV) Timestamp: Mon 2023-05-29 13:10:44 -03 (35s ago) Command Line: kate -b Executable: /usr/bin/kate Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-53e0dd86e8c945879e37e7260f8a1b5f.scope Unit: user@1000.service User Unit: app-org.kde.konsole-53e0dd86e8c945879e37e7260f8a1b5f.scope Slice: user-1000.slice Owner UID: 1000 (davi) Boot ID: e4de8180d94a4eaa9a5fcc4a440f4148 Machine ID: ed02b5c4f6c647e3aabdc3c9a0a8f879 Hostname: compooter Storage: /var/lib/systemd/coredump/core.kate.1000.e4de8180d94a4eaa9a5fcc4a440f4148.75159.1685376644000000.zst (present) Size on Disk: 3.1M Message: Process 75159 (kate) of user 1000 dumped core. Stack trace of thread 75159: #0 0x00007f4ed4a9f26c n/a (libc.so.6 + 0x8926c) #1 0x00007f4ed4a4fa08 raise (libc.so.6 + 0x39a08) #2 0x00007f4ed5c8981f _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x781f) #3 0x00007f4ed4a4fab0 n/a (libc.so.6 + 0x39ab0) #4 0x00007f4ed40da544 _ZNK19KSyntaxHighlighting10Definition8isHiddenEv (libKF5SyntaxHighlighting.so.5 + 0x32544) #5 0x00007f4ed4752a57 n/a (libKF5TextEditor.so.5 + 0x152a57) #6 0x00007f4ed48866ac n/a (libKF5TextEditor.so.5 + 0x2866ac) #7 0x00007f4ed481b2a3 _ZN11KTextEditor13EditorPrivate4selfEv (libKF5TextEditor.so.5 + 0x21b2a3) #8 0x00007f4ed67cb2df _ZN7KateAppC2ERK18QCommandLineParserNS_15ApplicationModeERK7QString (libkateprivate.so.23.04.1 + 0x7e2df) #9 0x0000557effa16530 n/a (kate + 0x8530) #10 0x00007f4ed4a39850 n/a (libc.so.6 + 0x23850) #11 0x00007f4ed4a3990a __libc_start_main (libc.so.6 + 0x2390a) #12 0x0000557effa18ab5 n/a (kate + 0xaab5) Stack trace of thread 75162: #0 0x00007f4ed4a99f0e n/a (libc.so.6 + 0x83f0e) #1 0x00007f4ed4a9c7a0 pthread_cond_wait (libc.so.6 + 0x867a0) #2 0x00007f4ec5ec855c n/a (radeonsi_dri.so + 0xc855c) #3 0x00007f4ec5f1541c n/a (radeonsi_dri.so + 0x11541c) #4 0x00007f4ed4a9d44b n/a (libc.so.6 + 0x8744b) #5 0x00007f4ed4b20e40 n/a (libc.so.6 + 0x10ae40) Stack trace of thread 75163: #0 0x00007f4ed4a99f0e n/a (libc.so.6 + 0x83f0e) #1 0x00007f4ed4a9c7a0 pthread_cond_wait (libc.so.6 + 0x867a0) #2 0x00007f4ec5ec855c n/a (radeonsi_dri.so + 0xc855c) #3 0x00007f4ec5f1541c n/a (radeonsi_dri.so + 0x11541c) #4 0x00007f4ed4a9d44b n/a (libc.so.6 + 0x8744b) #5 0x00007f4ed4b20e40 n/a (libc.so.6 + 0x10ae40) Stack trace of thread 75165: #0 0x00007f4ed4a99f0e n/a (libc.so.6 + 0x83f0e) #1 0x00007f4ed4a9c7a0 pthread_cond_wait (libc.so.6 + 0x867a0) #2 0x00007f4ec5ec855c n/a (radeonsi_dri.so + 0xc855c) #3 0x00007f4ec5f1541c n/a (radeonsi_dri.so + 0x11541c) #4 0x00007f4ed4a9d44b n/a (libc.so.6 + 0x8744b) #5 0x00007f4ed4b20e40 n/a (libc.so.6 + 0x10ae40) Stack trace of thread 75164: #0 0x00007f4ed4a99f0e n/a (libc.so.6 + 0x83f0e) #1 0x00007f4ed4a9c7a0 pthread_cond_wait (libc.so.6 + 0x867a0) #2 0x00007f4ec5ec855c n/a (radeonsi_dri.so + 0xc855c) #3 0x00007f4ec5f1541c n/a (radeonsi_dri.so + 0x11541c) #4 0x00007f4ed4a9d44b n/a (libc.so.6 + 0x8744b) #5 0x00007f4ed4b20e40 n/a (libc.so.6 + 0x10ae40) Stack trace of thread 75160: #0 0x00007f4ed4b13c0f __poll (libc.so.6 + 0xfdc0f) #1 0x00007f4ed2d6da9f n/a (libglib-2.0.so.0 + 0xb7a9f) #2 0x00007f4ed2d0e032 g_main_context_iteration (libglib-2.0.so.0 + 0x58032) #3 0x00007f4ed52e9f2f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2e9f2f) #4 0x00007f4ed5299824 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x299824) #5 0x00007f4ed50f6eb6 _ZN7QThread4execEv (libQt5Core.so.5 + 0xf6eb6) #6 0x00007f4ed657269a n/a (libQt5DBus.so.5 + 0x2469a) #7 0x00007f4ed50f30da n/a (libQt5Core.so.5 + 0xf30da) #8 0x00007f4ed4a9d44b n/a (libc.so.6 + 0x8744b) #9 0x00007f4ed4b20e40 n/a (libc.so.6 + 0x10ae40) ELF object binary architecture: AMD x86-64
Ignore the backtrace i sent before, here's a better one: (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007f4ed4a9f2d3 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007f4ed4a4fa08 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26 #3 0x00007f4ed5c8981f in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-5.106.0/src/kcrash.cpp:626 #4 <signal handler called> #5 0x00007f4ed40da544 in KSyntaxHighlighting::Definition::isHidden() const () from /usr/lib/libKF5SyntaxHighlighting.so.5 #6 0x00007f4ed4752a57 in KateModeManager::update (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:114 #7 0x00007f4ed48866ac in KateModeManager::KateModeManager (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:39 #8 KTextEditor::EditorPrivate::EditorPrivate(QPointer<KTextEditor::EditorPrivate>&) [clone .constprop.0] (this=0x557f01c7c850, staticInstance=...) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:181 #9 0x00007f4ed481b2a3 in KTextEditor::EditorPrivate::self () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:407 #10 0x00007f4ed481c5da in KTextEditor::Editor::instance () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/ktexteditor.cpp:86 #11 0x00007f4ed67cb2df in KateDocManager::KateDocManager (parent=0x7fffe0e5c530, this=0x7fffe0e5c590) at /usr/src/debug/kate/kate-23.04.1/apps/lib/katedocmanager.cpp:38 #12 KateApp::KateApp (this=<optimized out>, args=..., mode=<optimized out>, sessionsDir=..., this=<optimized out>, args=..., mode=<optimized out>, sessionsDir=...) at /usr/src/debug/kate/kate-23.04.1/apps/lib/kateapp.cpp:198 #13 0x0000557effa16530 in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/qt/QtCore/qstringbuilder.h:147 (gdb) #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007f4ed4a9f2d3 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007f4ed4a4fa08 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26 #3 0x00007f4ed5c8981f in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-5.106.0/src/kcrash.cpp:626 #4 <signal handler called> #5 0x00007f4ed40da544 in KSyntaxHighlighting::Definition::isHidden() const () from /usr/lib/libKF5SyntaxHighlighting.so.5 #6 0x00007f4ed4752a57 in KateModeManager::update (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:114 #7 0x00007f4ed48866ac in KateModeManager::KateModeManager (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:39 #8 KTextEditor::EditorPrivate::EditorPrivate(QPointer<KTextEditor::EditorPrivate>&) [clone .constprop.0] (this=0x557f01c7c850, staticInstance=...) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:181 #9 0x00007f4ed481b2a3 in KTextEditor::EditorPrivate::self () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:407 #10 0x00007f4ed481c5da in KTextEditor::Editor::instance () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/ktexteditor.cpp:86 #11 0x00007f4ed67cb2df in KateDocManager::KateDocManager (parent=0x7fffe0e5c530, this=0x7fffe0e5c590) at /usr/src/debug/kate/kate-23.04.1/apps/lib/katedocmanager.cpp:38 #12 KateApp::KateApp (this=<optimized out>, args=..., mode=<optimized out>, sessionsDir=..., this=<optimized out>, args=..., mode=<optimized out>, sessionsDir=...) at /usr/src/debug/kate/kate-23.04.1/apps/lib/kateapp.cpp:198 #13 0x0000557effa16530 in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/qt/QtCore/qstringbuilder.h:147 (gdb) #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007f4ed4a9f2d3 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007f4ed4a4fa08 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26 #3 0x00007f4ed5c8981f in KCrash::defaultCrashHandler (sig=11) at /usr/src/debug/kcrash/kcrash-5.106.0/src/kcrash.cpp:626 #4 <signal handler called> #5 0x00007f4ed40da544 in KSyntaxHighlighting::Definition::isHidden() const () from /usr/lib/libKF5SyntaxHighlighting.so.5 #6 0x00007f4ed4752a57 in KateModeManager::update (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:114 #7 0x00007f4ed48866ac in KateModeManager::KateModeManager (this=0x557f01d9c710) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/mode/katemodemanager.cpp:39 #8 KTextEditor::EditorPrivate::EditorPrivate(QPointer<KTextEditor::EditorPrivate>&) [clone .constprop.0] (this=0x557f01c7c850, staticInstance=...) at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:181 #9 0x00007f4ed481b2a3 in KTextEditor::EditorPrivate::self () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/kateglobal.cpp:407 #10 0x00007f4ed481c5da in KTextEditor::Editor::instance () at /usr/src/debug/ktexteditor/ktexteditor-5.106.0/src/utils/ktexteditor.cpp:86 #11 0x00007f4ed67cb2df in KateDocManager::KateDocManager (parent=0x7fffe0e5c530, this=0x7fffe0e5c590) at /usr/src/debug/kate/kate-23.04.1/apps/lib/katedocmanager.cpp:38 #12 KateApp::KateApp (this=<optimized out>, args=..., mode=<optimized out>, sessionsDir=..., this=<optimized out>, args=..., mode=<optimized out>, sessionsDir=...) at /usr/src/debug/kate/kate-23.04.1/apps/lib/kateapp.cpp:198 #13 0x0000557effa16530 in main (argc=<optimized out>, argv=<optimized out>) at /usr/include/qt/QtCore/qstringbuilder.h:147
Hmmm, did take a look at the backtrace, still no idea how that can happen.
(In reply to Christoph Cullmann from comment #6) > Hmmm, did take a look at the backtrace, still no idea how that can happen. What's it trying to do?
(In reply to davimarchesiprimo from comment #7) > (In reply to Christoph Cullmann from comment #6) > > Hmmm, did take a look at the backtrace, still no idea how that can happen. > > What's it trying to do? I tried the kf5 branch build and I read the code, I see no way that pointer could be bad.
(In reply to Christoph Cullmann from comment #8) > (In reply to davimarchesiprimo from comment #7) > > (In reply to Christoph Cullmann from comment #6) > > > Hmmm, did take a look at the backtrace, still no idea how that can happen. > > > > What's it trying to do? > > I tried the kf5 branch build and I read the code, I see no way that pointer > could be bad. It's possible I might have mismatched git versions with the normal packages but I find that hard as I checked for all packages with -git and reinstalled the stable versions instead, as far as I know there are no git packages that relate to kde installed
Hi, if you have installed -git stuff, that could happen if not all stuff is consistent, I did break my setup like that once, too, before switching to NixOS.
(In reply to Christoph Cullmann from comment #10) > Hi, if you have installed -git stuff, that could happen if not all stuff is > consistent, I did break my setup like that once, too, before switching to > NixOS. Here are all the git packages in my system, don't think any of them are KDE related: attica-git awesome-git breeze-icons-git cutefish-cursor-themes-git cvt12-git edid-decode-git extra-cmake-modules-git fastfetch-git goverlay-git lib32-spirv-tools-tkg-git libpamac-git libzopfli-git lightly-git lutris-git menuconfig-git mow-git oh-my-zsh-git pamac-aur-git pfetch-git picom-git plasma5-wallpapers-wallpaper-engine-git protontricks-git reshade-shaders-git ryujinx-git sdat2img-git solid-git sonnet-git soundux-git spicetify-themes-git sunshine-git syntax-highlighting-git threadweaver-git upower-git vrrtest-git wine-gui-git xorgproto-git youtube-dl-gui-git zsh-theme-powerlevel10k-git
syntax-highlighting-git could be the reason, but there is more relevant stuff like threadweaver-git, sonnet-git, ...
Also, i saw some syntax highlighting related stuff in backtrace. Kde's crash handler has this error when clicking "developer information": file:///usr/lib/qt/qml/org/kde/kirigami.2/PageRow.qml:914: Error: Error while loading page: qrc:/ui/DeveloperPage.qml:8 module "org.kde.syntaxhighlighting" is not installed so it seems that something related to syntax highlighting is broken for me
It was syntax-highlighting (switching to non git package fixed it), weird that kate didn't show the error message in console like it usually does for missing symbols