Bug 513431 - kate krashes when saving any file, even empty
Summary: kate krashes when saving any file, even empty
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.08.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2025-12-16 11:02 UTC by Alexander
Modified: 2025-12-16 13:16 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2025-12-16 11:02:54 UTC
Application: kate (23.08.5)

Qt Version: 5.15.13
Frameworks Version: 5.115.0
Operating System: Linux 6.8.0-88-generic x86_64
Windowing System: X11
Distribution: Ubuntu 24.04.3 LTS
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
It doesn't matter: I pressing CTRL+S or I'm saving file via menu, anyway Kate crashes. It crashes enven on an empty fresh document.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Aborted

[KCrash Handler]
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007c38eec4527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007c38eec288ff in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007c38ef0a5ff5 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007c38ef0bb0da in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007c38ef0a5a55 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007c38ef0bb391 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
#13 0x00007c38ef490236 in qBadAlloc() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007c38ef497319 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007c38ef650cf8 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007c38ef650ef5 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007c38ef6531b0 in QSettings::childGroups() const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007c38f079d5ca in QFileDialogPrivate::restoreFromSettings() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007c38f079f61b in QFileDialogPrivate::init(QFileDialogArgs const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007c38f07a0591 in QFileDialog::QFileDialog(QFileDialogArgs const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007c38f07a0f09 in QFileDialog::getSaveFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007c38ee91d7f8 in ?? () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#23 0x00007c38ee91dad2 in KTextEditor::DocumentPrivate::documentSaveAs() () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#24 0x00007c38ee938924 in ?? () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#25 0x00007c38ef712dbf in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007c38f0564f94 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007c38f0567eab in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007c38f06fc512 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007c38f0704702 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007c38f05b0df8 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007c38f056bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007c38f05746b0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007c38ef6d8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007c38f0572874 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007c38f05cb5d2 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007c38f05cdfbf in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007c38f056bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007c38ef6d8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007c38efb45a3b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#40 0x00007c38efb17bfc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#41 0x00007c38e98fcd06 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#42 0x00007c38ed7145c5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007c38ed773737 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007c38ed713a63 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007c38ef735279 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x00007c38ef6d6a7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00007c38ef6df3e8 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#48 0x00005f8bc06783d7 in ?? ()
#49 0x00007c38eec2a1ca in __libc_start_call_main (main=main@entry=0x5f8bc0676e50, argc=argc@entry=2, argv=argv@entry=0x7ffc67856418) at ../sysdeps/nptl/libc_start_call_main.h:58
#50 0x00007c38eec2a28b in __libc_start_main_impl (main=0x5f8bc0676e50, argc=2, argv=0x7ffc67856418, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc67856408) at ../csu/libc-start.c:360
#51 0x00005f8bc067a7c5 in ?? ()
[Inferior 1 (process 22642) detached]

Reported using DrKonqi
Comment 1 Waqar Ahmed 2025-12-16 12:41:52 UTC
Please use an up to date version of Kate.

The crash is because of an allocation failure, no idea why.
Comment 2 Kåre Särs 2025-12-16 13:16:15 UTC
From the back-trace it looks like it crashes in QFileDialogPrivate::restoreFromSettings(), So it could be a bug in the file dialog trying to restore some folder that does not exist or somehow broken or something else while trying to restore the settings for the file dialog.

But as Waqar mentioned, this is an almost three years old Kate version.


The best I can do is to suggest that you try remove your settings files for Kate...

Sorry!