Bug 458380

Summary: kate crashed trying to apply code formatter
Product: [Applications] kate Reporter: Mauricio J. Adonis C. <mike.alfa.2007>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: christoph, waqar.17a
Priority: NOR Keywords: drkonqi
Version First Reported In: 22.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 22.08.1
Sentry Crash Report:

Description Mauricio J. Adonis C. 2022-08-27 13:59:56 UTC
Application: kate (22.08.0)

Qt Version: 5.15.5
Frameworks Version: 5.97.0
Operating System: Linux 5.19.3-arch1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.25.4 [KCrashBackend]

-- Information about the crash:
I  tried to select clang code formatter going Tools > External tools > settings then the app crashed

The reporter is unsure if this crash is reproducible.

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

[KCrash Handler]
#4  0x00007ff4880d1bbb in ?? () from /usr/lib/qt/plugins/ktexteditor/katesearchplugin.so
#5  0x00007ff48f46f341 in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007ff49005da2a in QWidget::customContextMenuRequested(QPoint const&) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007ff49005cac5 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#8  0x00007ff49010a813 in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007ff48f43e742 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007ff490025b2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#11 0x00007ff49002a362 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007ff48f43ead8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0x00007ff49007ae14 in ?? () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ff49007c17e in ?? () from /usr/lib/libQt5Widgets.so.5
#15 0x00007ff490025b3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#16 0x00007ff48f43ead8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#17 0x00007ff48f98402c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#18 0x00007ff48f96d935 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#19 0x00007ff4896d9a30 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#20 0x00007ff48d0c9c6b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007ff48d120001 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007ff48d0c7392 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00007ff48f48932c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#24 0x00007ff48f43727c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#25 0x00007ff48f441da9 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#26 0x000055e1e57eb5d5 in ?? ()
#27 0x00007ff48edb72d0 in ?? () from /usr/lib/libc.so.6
#28 0x00007ff48edb738a in __libc_start_main () from /usr/lib/libc.so.6
#29 0x000055e1e57edaf5 in ?? ()
[Inferior 1 (process 64681) detached]

Reported using DrKonqi
Comment 2 Waqar Ahmed 2022-08-27 14:08:18 UTC
Since you are on arch, can you try latest master and see if it still crashes?
Comment 3 Christoph Cullmann 2022-08-27 15:32:56 UTC
Hmm, no sure how that fix is related, given we talk here about the external tools.
Comment 4 Christoph Cullmann 2022-08-27 15:43:26 UTC
But OK, I see the

/usr/lib/qt/plugins/ktexteditor/katesearchplugin.so

in the BT, but this makes the description not really valid, this will not be in the backtrace if one triggers the formatter.

I consider this then fixed, too, that crash fix is backported, too.