Bug 470370 - [Arch] Kate and Kwrite no longer start after update
Summary: [Arch] Kate and Kwrite no longer start after update
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-28 16:11 UTC by davimarchesiprimo
Modified: 2023-05-29 18:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Gdb backtrace (35.08 KB, text/plain)
2023-05-28 16:11 UTC, davimarchesiprimo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davimarchesiprimo 2023-05-28 16:11:45 UTC
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)
Comment 1 Joshua Goins 2023-05-29 03:02:45 UTC
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.
Comment 2 davimarchesiprimo 2023-05-29 03:13:53 UTC
(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
Comment 3 Waqar Ahmed 2023-05-29 05:55:36 UTC
- 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
Comment 4 davimarchesiprimo 2023-05-29 16:18:59 UTC
(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
Comment 5 davimarchesiprimo 2023-05-29 16:20:23 UTC
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
Comment 6 Christoph Cullmann 2023-05-29 17:43:41 UTC
Hmmm, did take a look at the backtrace, still no idea how that can happen.
Comment 7 davimarchesiprimo 2023-05-29 18:13:05 UTC
(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?
Comment 8 Christoph Cullmann 2023-05-29 18:17:38 UTC
(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.
Comment 9 davimarchesiprimo 2023-05-29 18:21:33 UTC
(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
Comment 10 Christoph Cullmann 2023-05-29 18:23:22 UTC
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.
Comment 11 davimarchesiprimo 2023-05-29 18:27:42 UTC
(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
Comment 12 Christoph Cullmann 2023-05-29 18:29:30 UTC
syntax-highlighting-git could be the reason, but there is more relevant stuff like threadweaver-git, sonnet-git, ...
Comment 13 davimarchesiprimo 2023-05-29 18:31:29 UTC
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
Comment 14 davimarchesiprimo 2023-05-29 18:33:04 UTC
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