Bug 451041 - Kdevelop crash just after a LMB in editor on a source line
Summary: Kdevelop crash just after a LMB in editor on a source line
Status: RESOLVED DUPLICATE of bug 447740
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-03-02 14:18 UTC by Martin Ottmar
Modified: 2022-05-18 15:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.39 KB, text/plain)
2022-04-04 14:10 UTC, Sandeep
Details
New crash information added by DrKonqi (6.03 KB, text/plain)
2022-05-18 14:31 UTC, Fushan Wen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ottmar 2022-03-02 14:18:06 UTC
Application: kdevelop (5.7.211202 (21.12.2))

Qt Version: 5.15.2
Frameworks Version: 5.91.0
Operating System: Linux 5.16.11-arch1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.24.2 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Yet within a spontaneous recovery (full re-indexing) from the previous crash (OOM-killer's work), LMB on any line of a permanently opened python source code file, in order to get editing focus into this source tab, it leads into kdevelop crash.
Just after the crash, I removed /tmp/kdevelop-* and /tmp/preamble-* and run kdevelop again.
After next full automatic re-indexing was finished, I pressed the LMB on another source line (first action from kdevelop start) of the same python source code again, and another (this one) crash occured again.

This problem occurs from time to time for years. 
System is fully updated archlinux with added kdevelop-python-git 5.6.1.r32.g405b5009-1  AUR package compiled against python 3.9 (actual python-3.10 is not supported yet)

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  0x00007f1e5d504fe0 in QAccessibleObject::object() const () at /usr/lib/libQt5Gui.so.5
#5  0x00007f1e5def7dae in QAccessibleWidget::isValid() const () at /usr/lib/libQt5Widgets.so.5
#6  0x00007f1e5d50e115 in QAccessibleEvent::accessibleInterface() const () at /usr/lib/libQt5Gui.so.5
#7  0x00007f1e5d509c15 in QAccessible::updateAccessibility(QAccessibleEvent*) () at /usr/lib/libQt5Gui.so.5
#8  0x00007f1e5b47b40b in KateViewInternal::cursorMoved() () at /usr/lib/libKF5TextEditor.so.5
#9  0x00007f1e5b47c7c4 in KateViewInternal::updateCursor(KTextEditor::Cursor, bool, bool, bool) () at /usr/lib/libKF5TextEditor.so.5
#10 0x00007f1e5b47d0f3 in KateViewInternal::placeCursor(QPoint const&, bool, bool) () at /usr/lib/libKF5TextEditor.so.5
#11 0x00007f1e5b47faf2 in KateViewInternal::mousePressEvent(QMouseEvent*) () at /usr/lib/libKF5TextEditor.so.5
#12 0x00007f1e5dce7916 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f1e5dcb11a6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f1e5dcb5fd7 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f1e5d068b9a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#16 0x00007f1e5dcb499f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007f1e5dd057d7 in  () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f1e5dd0737c in  () at /usr/lib/libQt5Widgets.so.5
#19 0x00007f1e5dcb11a6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007f1e5d068b9a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007f1e5d52c130 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#22 0x00007f1e5d517695 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#23 0x00007f1e3f76af80 in  () at /usr/lib/libQt5XcbQpa.so.5
#24 0x00007f1e597b3f13 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#25 0x00007f1e5980a0d9 in  () at /usr/lib/libglib-2.0.so.0
#26 0x00007f1e597b1485 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#27 0x00007f1e5d0b4ada in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#28 0x00007f1e5d060e6b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007f1e5d06c5c7 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#30 0x0000555b80ebfda1 in  ()
#31 0x00007f1e5c9d7310 in __libc_start_call_main () at /usr/lib/libc.so.6
#32 0x00007f1e5c9d73c1 in __libc_start_main_impl () at /usr/lib/libc.so.6
#33 0x0000555b80ec0c4e in  ()
[Inferior 1 (process 57844) detached]

Possible duplicates by query: bug 449294, bug 448885, bug 446487, bug 423425, bug 399032.

Reported using DrKonqi
Comment 1 Sandeep 2022-04-04 14:10:31 UTC
Created attachment 147957 [details]
New crash information added by DrKonqi

kdevelop (5.8.220380 (22.03.80)) using Qt 5.15.3

- What I was doing when the application crashed:
Clicked on a line with left mouse button, and it crashed.

-- Backtrace (Reduced):
#4  0x00007f3f64fd3a74 in QAccessible::queryAccessibleInterface(QObject*) () at /usr/lib/libQt5Gui.so.5
#5  0x00007f3f64fd40d2 in QAccessibleEvent::accessibleInterface() const () at /usr/lib/libQt5Gui.so.5
#6  0x00007f3f64fcfc85 in QAccessible::updateAccessibility(QAccessibleEvent*) () at /usr/lib/libQt5Gui.so.5
#7  0x00007f3f62f4493b in KateViewInternal::cursorMoved() () at /usr/lib/libKF5TextEditor.so.5
#8  0x00007f3f62f3c8a4 in KateViewInternal::updateCursor(KTextEditor::Cursor, bool, bool, bool) () at /usr/lib/libKF5TextEditor.so.5
Comment 2 Fushan Wen 2022-05-18 14:31:40 UTC
Created attachment 148952 [details]
New crash information added by DrKonqi

kdevelop (5.8.220770 (22.07.70)) using Qt 5.15.2

Kdevelop crash just after a LMB in editor on a source line. Instant crash, nothing else was done.

-- Backtrace (Reduced):
#4  QHashNode<QObject*, unsigned int>::same_key (key0=<synthetic pointer>: 0x55c7450bb210, h0=521445099, this=0x1700000024) at ../../include/QtCore/../../src/corelib/tools/qhash.h:156
#5  QHash<QObject*, unsigned int>::findNode (h=521445099, akey=<synthetic pointer>: 0x55c7450bb210, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:931
#6  QHash<QObject*, unsigned int>::findNode (ahp=0x0, akey=<synthetic pointer>: 0x55c7450bb210, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:950
#7  QHash<QObject*, unsigned int>::value (akey=<synthetic pointer>: 0x55c7450bb210, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:656
#8  QAccessible::queryAccessibleInterface (object=0x55c7450bb210) at accessible/qaccessible.cpp:678
Comment 3 Sven Brauch 2022-05-18 14:43:48 UTC
Hi KTextEditor people, does this trace seem familiar? We get a bug report with it perceivedly every day currently, but KDevelop doesn't seem to be involved.
Comment 4 Waqar Ahmed 2022-05-18 15:09:31 UTC
sounds like https://bugs.kde.org/show_bug.cgi?id=447740

That has a more complete backtrace, including some calls from KDevelop. Since we have never seen or haven't gotten any reports from kate users about this, could this be something KDevelop specific?

Lets move the discussion to that bug

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