Bug 482227 - Kate crashes when saving file
Summary: Kate crashes when saving file
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi, qt6
Depends on:
Blocks:
 
Reported: 2024-03-02 13:44 UTC by Bogdan
Modified: 2024-03-18 19:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan 2024-03-02 13:44:03 UTC
Application: kate (24.02.0)

Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.7.6-arch1-2 x86_64
Windowing System: Wayland
Distribution: EndeavourOS
DrKonqi: 6.0.0 [CoredumpBackend]

-- Information about the crash:
Kate crashes everytime when saving the file I'm editing

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault


This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[New LWP 6660]
[New LWP 6661]
[New LWP 6665]
[New LWP 6662]
[New LWP 6675]
[New LWP 6685]
[New LWP 6678]
[New LWP 6679]
[New LWP 6686]
[New LWP 6664]
[New LWP 6683]
[New LWP 6663]
[New LWP 6674]
[New LWP 6677]
[New LWP 6684]
[New LWP 6676]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `kate'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000713a150ab32c in ?? () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x713a0f80ee80 (LWP 6660))]
Cannot QML trace cores :(
[Current thread is 1 (Thread 0x713a0f80ee80 (LWP 6660))]

Thread 16 (Thread 0x7139ed6006c0 (LWP 6676)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 15 (Thread 0x7139db4006c0 (LWP 6684)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 14 (Thread 0x7139ecc006c0 (LWP 6677)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 13 (Thread 0x7139eea006c0 (LWP 6674)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 12 (Thread 0x713a0d0006c0 (LWP 6663)):
#0  0x0000713a151190bf in poll () at /usr/lib/libc.so.6
#1  0x0000713a103f3b18 in ??? () at /usr/lib/libQt6WaylandClient.so.6
#2  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#3  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#4  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 11 (Thread 0x7139dbe006c0 (LWP 6683)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 10 (Thread 0x713a05a006c0 (LWP 6664)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8750 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007139f708681c in ??? () at /usr/lib/dri/iris_dri.so
#3  0x00007139f709e7ec in ??? () at /usr/lib/dri/iris_dri.so
#4  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#5  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7139da0006c0 (LWP 6686)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7139e54006c0 (LWP 6679)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7139e5e006c0 (LWP 6678)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7139daa006c0 (LWP 6685)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7139ee0006c0 (LWP 6675)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8a65 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#2  0x0000713a158a3ba4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt6Core.so.6
#3  0x0000713a158a64aa in ??? () at /usr/lib/libQt6Core.so.6
#4  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#5  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#6  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 4 (Thread 0x713a0da006c0 (LWP 6662)):
#0  0x0000713a151190bf in poll () at /usr/lib/libc.so.6
#1  0x0000713a103f3b18 in ??? () at /usr/lib/libQt6WaylandClient.so.6
#2  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#3  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#4  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 3 (Thread 0x713a050006c0 (LWP 6665)):
#0  0x0000713a150a5ebe in ??? () at /usr/lib/libc.so.6
#1  0x0000713a150a8750 in pthread_cond_wait () at /usr/lib/libc.so.6
#2  0x00007139f708681c in ??? () at /usr/lib/dri/iris_dri.so
#3  0x00007139f709e7ec in ??? () at /usr/lib/dri/iris_dri.so
#4  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#5  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 2 (Thread 0x713a0f0006c0 (LWP 6661)):
#0  0x0000713a151190bf in poll () at /usr/lib/libc.so.6
#1  0x0000713a13b6c2f6 in ??? () at /usr/lib/libglib-2.0.so.0
#2  0x0000713a13b0c162 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x0000713a159739c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#4  0x0000713a15743d6e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#5  0x0000713a1582106f in QThread::exec() () at /usr/lib/libQt6Core.so.6
#6  0x0000713a165eb9df in ??? () at /usr/lib/libQt6DBus.so.6
#7  0x0000713a158a0bd3 in ??? () at /usr/lib/libQt6Core.so.6
#8  0x0000713a150a955a in ??? () at /usr/lib/libc.so.6
#9  0x0000713a15126a3c in ??? () at /usr/lib/libc.so.6

Thread 1 (Thread 0x713a0f80ee80 (LWP 6660)):
[KCrash Handler]
#4  0x0000713a14c93c6a in ??? () at /usr/lib/libKF6TextEditor.so.6
#5  0x0000713a171a255f in ??? () at /usr/lib/libkateprivate.so.24.02.0
#6  0x0000713a171a21aa in ??? () at /usr/lib/libkateprivate.so.24.02.0
#7  0x0000713a171a21aa in ??? () at /usr/lib/libkateprivate.so.24.02.0
#8  0x0000713a171a4e01 in ??? () at /usr/lib/libkateprivate.so.24.02.0
#9  0x0000713a171a54b5 in ??? () at /usr/lib/libkateprivate.so.24.02.0
#10 0x0000713a1719bd05 in ??? () at /usr/lib/libkateprivate.so.24.02.0
#11 0x0000713a15790ca9 in ??? () at /usr/lib/libQt6Core.so.6
#12 0x0000713a171a09e7 in DiagnosticsProvider::diagnosticsAdded(FileDiagnostics const&) () at /usr/lib/libkateprivate.so.24.02.0
#13 0x0000713a15790ca9 in ??? () at /usr/lib/libQt6Core.so.6
#14 0x0000713a07f80883 in ??? () at /usr/lib/qt6/plugins/kf6/ktexteditor/lspclientplugin.so
#15 0x0000713a15790ca9 in ??? () at /usr/lib/libQt6Core.so.6
#16 0x0000713a158f642f in ??? () at /usr/lib/libQt6Core.so.6
#17 0x0000713a158fdb35 in ??? () at /usr/lib/libQt6Core.so.6
#18 0x0000713a15790fab in ??? () at /usr/lib/libQt6Core.so.6
#19 0x0000713a15798530 in QSocketNotifier::event(QEvent*) () at /usr/lib/libQt6Core.so.6
#20 0x0000713a168f438b in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt6Widgets.so.6
#21 0x0000713a15739818 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt6Core.so.6
#22 0x0000713a159754d1 in ??? () at /usr/lib/libQt6Core.so.6
#23 0x0000713a13b0df69 in ??? () at /usr/lib/libglib-2.0.so.0
#24 0x0000713a13b6c3a7 in ??? () at /usr/lib/libglib-2.0.so.0
#25 0x0000713a13b0c162 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#26 0x0000713a159739c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#27 0x0000713a15743d6e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#28 0x0000713a1573c2b8 in QCoreApplication::exec() () at /usr/lib/libQt6Core.so.6
#29 0x0000639953de6eb4 in ??? ()
#30 0x0000713a15043cd0 in ??? () at /usr/lib/libc.so.6
#31 0x0000713a15043d8a in __libc_start_main () at /usr/lib/libc.so.6
#32 0x0000639953de9845 in ??? ()

Reported using DrKonqi
Comment 1 fanzhuyifan 2024-03-02 19:04:49 UTC
Thank you for the bug report! Unfortunately I can't reproduce the crash myself on current git master, and the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

> #4  0x0000713a14c93c6a in ??? () at /usr/lib/libKF6TextEditor.so.6
> #5  0x0000713a171a255f in ??? () at /usr/lib/libkateprivate.so.24.02.0
> #6  0x0000713a171a21aa in ??? () at /usr/lib/libkateprivate.so.24.02.0
> #7  0x0000713a171a21aa in ??? () at /usr/lib/libkateprivate.so.24.02.0
> #8  0x0000713a171a4e01 in ??? () at /usr/lib/libkateprivate.so.24.02.0
> #9  0x0000713a171a54b5 in ??? () at /usr/lib/libkateprivate.so.24.02.0
> #10 0x0000713a1719bd05 in ??? () at /usr/lib/libkateprivate.so.24.02.0

Could you please install debug symbols and attach a new symbolicated backtrace generated by using coredumpctl gdb in a terminal window? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl for details about how to do this.


Thanks again!
Comment 2 Bogdan 2024-03-02 20:44:34 UTC
Here is the output: https://pastebin.com/S9kezGjh
It might be the rust LSP that's crashing Kate, but I'm not sure. I opened different source files and I don't get any crashes.
Comment 3 fanzhuyifan 2024-03-02 21:01:17 UTC
(In reply to Bogdan from comment #2)
> Here is the output: https://pastebin.com/S9kezGjh
> It might be the rust LSP that's crashing Kate, but I'm not sure. I opened
> different source files and I don't get any crashes.

Please type `bt` in the gdb prompt and copy the output.
Comment 4 Bogdan 2024-03-03 06:49:46 UTC
Output: https://pastebin.com/Ypkw3BA9
Comment 5 Bug Janitor Service 2024-03-18 03:46:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Waqar Ahmed 2024-03-18 11:50:32 UTC
Not entirely sure about this because the backtrace is incomplete, but most likely https://invent.kde.org/utilities/kate/-/merge_requests/1426 will fix this
Comment 7 Waqar Ahmed 2024-03-18 19:01:22 UTC
Should be fixed in the next release, if not, reopen the bug.