Bug 503178

Summary: KDevelop Crashing While Editing / Mouse Clicking
Product: [Applications] kdevelop Reporter: Claus Prüfer <pruefer>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: igorkuo, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Claus Prüfer 2025-04-22 15:55:02 UTC
Application: kdevelop (5.10.221202 (22.12.2))

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-33-amd64 x86_64
Windowing System: X11
Distribution: Devuan GNU/Linux 5 (daedalus)
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
Randomly crashing on X11 / Wayland / Multiple Linux Variants / Kernel 6.1.0-33.

I assume after reading the duplicate https://bugs.kde.org/show_bug.cgi?id=447740 that this bug is related to keyboard / mouse input handling (kernel change? / KDE input processing change? / QT input processing change?). Due to the fact that the bug appears on many Linux Variants i used, also Virtual Machines and internet-less setups (always KDevelop), it is unlikely that some other process (malware) is causing this behaviour. But dont underestimate malware developers :).

First i was suspecting the source-code inspection / formating trigger (maybe in combination with event / mouse handling) but can not find any reference in the already submitted backtraces. The first backtrace does not mention mouse processing at all. All backtraces mention the QT "QEventDispatcher". Maybe switch to multiple Events in parallel in Kate / QT interfaces? Or when multiple mouse clicks occur in a short period of time? Or null-pointer when an event has already be deleted / order processing of the event queue?

Hope to help finding the bug since it exists quite a long time.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fbbec10d21c in QAccessibleObject::object() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#5  0x00007fbbecbb618a in QAccessibleWidget::isValid() const () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007fbbec106888 in QAccessibleEvent::accessibleInterface() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007fbbec106dad in QAccessible::updateAccessibility(QAccessibleEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007fbbe95f84ae in KateViewInternal::cursorMoved() () from /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#9  0x00007fbbe95fefb6 in KateViewInternal::updateCursor(KTextEditor::Cursor, bool, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#10 0x00007fbbe9601378 in KateViewInternal::placeCursor(QPoint const&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#11 0x00007fbbe96069f8 in KateViewInternal::mousePressEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#12 0x00007fbbec9a4db8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fbbec962fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007fbbec96b552 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fbbebcb1738 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007fbbec96965e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fbbec9bdbd8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fbbec9c0f60 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fbbec962fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fbbebcb1738 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fbbec13d42d in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007fbbec111cec in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007fbbe00fbeca in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#24 0x00007fbbe791e7a9 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fbbe791ea38 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fbbe791eacc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fbbebd09876 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fbbebcb01bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fbbebcb8316 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x000055a27a376699 in ?? ()
#31 0x00007fbbeb84624a in __libc_start_call_main (main=main@entry=0x55a27a371cc0, argc=argc@entry=1, argv=argv@entry=0x7ffdc80ac2c8) at ../sysdeps/nptl/libc_start_call_main.h:58
#32 0x00007fbbeb846305 in __libc_start_main_impl (main=0x55a27a371cc0, argc=1, argv=0x7ffdc80ac2c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdc80ac2b8) at ../csu/libc-start.c:360
#33 0x000055a27a377281 in ?? ()
[Inferior 1 (process 4620) detached]

Reported using DrKonqi
This report was filed against 'kde' because the product 'kdevelop' could not be located in Bugzilla. Add it to drkonqi's mappings file!
Comment 1 Igor Kushnir 2025-04-22 18:12:46 UTC

*** This bug has been marked as a duplicate of bug 447740 ***