Bug 492864 - KDevelop crashes when clicking the "show uses" link in a C++ function tooltip
Summary: KDevelop crashes when clicking the "show uses" link in a C++ function tooltip
Status: RESOLVED DUPLICATE of bug 492221
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-09-09 06:56 UTC by Stefano Crocco
Modified: 2024-09-09 08:47 UTC (History)
0 users

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 Stefano Crocco 2024-09-09 06:56:54 UTC
Application: kdevelop (6.0.240800 (24.08.0))

Qt Version: 6.7.2
Frameworks Version: 6.5.0
Operating System: Linux 6.10.8 x86_64
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 6.1.4 [KCrashBackend]

-- Information about the crash:
I clicked on the "show uses" link in the tool tip I got while hovering on the definition of a C++ member function and KDevelop crashed.

This crash doesn't happen every time I click on the "show uses" link, but it has happened several times.

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  0x00007fbbbc272835 in QBoxLayout::itemAt (this=0x557e9e8a3b30, index=0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qboxlayout.cpp:692
#5  0x00007fbbb90b0536 in KDevelop::NavigatableWidgetList::items (this=0x557e9e6b9470) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/useswidget.cpp:317
#6  0x00007fbbb90b0819 in KDevelop::UsesWidget::countAllUses (this=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/useswidget.cpp:635
#7  0x00007fbbb90b0939 in KDevelop::UsesWidget::headerLineText (this=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/useswidget.cpp:625
#8  0x00007fbbb90b0c77 in KDevelop::UsesWidget::redrawHeaderLine (this=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/useswidget.cpp:620
#9  0x00007fbbb90b4259 in KDevelop::UsesWidget::UsesWidgetCollector::processUses (this=0x557e9e608840, topContext=...) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/useswidget.cpp:732
#10 KDevelop::UsesWidget::UsesWidgetCollector::processUses (this=this@entry=0x557e9e608840, topContext=...) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/useswidget.cpp:712
#11 0x00007fbbb90b98df in KDevelop::UsesCollector::updateReady (this=this@entry=0x557e9e608840, url=<optimized out>, topContext=...) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/usescollector.cpp:438
#12 0x00007fbbb90ba11c in KDevelop::UsesCollector::qt_static_metacall (_o=0x557e9e608840, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc10f1a330) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0_build/kdevplatform/language/KDevPlatformLanguage_autogen/include/moc_usescollector.cpp:122
#13 0x00007fbbbb12294e in QMetaMethodInvoker::invokeImpl (self=..., target=target@entry=0x557e9e608840, connectionType=connectionType@entry=Qt::DirectConnection, paramCount=paramCount@entry=3, parameters=parameters@entry=0x7ffc10f1a330, typeNames=0x7ffc10f1a348, metaTypes=0x7ffc10f1a360) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qmetaobject.cpp:2754
#14 0x00007fbbbb123441 in QMetaObject::invokeMethodImpl (obj=obj@entry=0x557e9e608840, member=member@entry=0x7fbbb913d28f "updateReady", type=type@entry=Qt::DirectConnection, paramCount=paramCount@entry=3, parameters=parameters@entry=0x7ffc10f1a330, typeNames=typeNames@entry=0x7ffc10f1a348, metaTypes=0x7ffc10f1a360) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qmetaobject.cpp:1604
#15 0x00007fbbb8fabe59 in QMetaObject::invokeMethod<void, QMetaMethodArgument, QMetaMethodArgument> (obj=0x557e9e608840, member=0x7fbbb913d28f "updateReady", c=Qt::DirectConnection, r=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/array:282
#16 QMetaObject::invokeMethod<QMetaMethodArgument, QMetaMethodArgument> (obj=0x557e9e608840, member=0x7fbbb913d28f "updateReady", c=Qt::DirectConnection) at /usr/include/qt6/QtCore/qobjectdefs.h:389
#17 KDevelop::DUChain::updateContextForUrl (this=<optimized out>, document=..., minFeatures=minFeatures@entry=..., notifyReady=notifyReady@entry=0x557e9e608840, priority=priority@entry=1) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/duchain.cpp:1882
#18 0x00007fbbb90bc7eb in KDevelop::UsesCollector::startCollecting (this=<optimized out>) at /usr/include/qt6/QtCore/qflags.h:74
#19 0x00007fbbb90b0ec9 in KDevelop::UsesWidget::UsesWidget (this=this@entry=0x557e9e6b9470, declaration=..., customCollector=...) at /usr/include/qt6/QtCore/qsharedpointer_impl.h:274
#20 0x00007fbbb90a102b in KDevelop::UsesNavigationContext::UsesNavigationContext (this=this@entry=0x557e9e8fff40, declaration=..., previousContext=previousContext@entry=0x557e9e7a3a20) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/usesnavigationcontext.cpp:21
#21 0x00007fbbb909d6be in KDevelop::AbstractNavigationContext::execute (this=this@entry=0x557e9e7a3a20, action=...) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/kdevplatform/language/duchain/navigation/abstractnavigationcontext.cpp:202
#22 0x00007fbb402a5811 in ContextBrowserPlugin::showUsesDelayed (this=<optimized out>, declaration=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/plugins/contextbrowser/contextbrowser.cpp:386
#23 0x00007fbbbb08376b in QObject::event (this=0x557e9aa69af0, e=0x557ea03cd9b0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qobject.cpp:1452
#24 0x00007fbbbc30b8e5 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x557e9aa69af0, e=0x557ea03cd9b0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:3287
#25 0x00007fbbbb0fae88 in QCoreApplication::notifyInternal2 (receiver=0x557e9aa69af0, event=0x557ea03cd9b0) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1142
#26 0x00007fbbbb0faf3d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1583
#27 0x00007fbbbb11f3c7 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x557e9a073220) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1940
#28 0x00007fbbbb11f5cc in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.cpp:1797
#29 0x00007fbbbaeca6b7 in postEventSourceDispatch (s=0x557e9a195320) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:244
#30 0x00007fbbb789f824 in g_main_dispatch () at /usr/lib64/libglib-2.0.so.0
#31 0x00007fbbb78a2977 in g_main_context_iterate_unlocked.isra () at /usr/lib64/libglib-2.0.so.0
#32 0x00007fbbb78a2fa0 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#33 0x00007fbbbaec88c3 in QEventDispatcherGlib::processEvents (this=0x557e9a0dc020, flags=...) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qeventdispatcher_glib.cpp:394
#34 0x00007fbbbb123e42 in QEventLoop::exec (this=this@entry=0x7ffc10f1ac10, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:34
#35 0x00007fbbbb123fd5 in QCoreApplication::exec () at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/corelib/global/qflags.h:74
#36 0x00007fbbbb5e8a70 in QGuiApplication::exec () at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/gui/kernel/qguiapplication.cpp:1926
#37 0x00007fbbbc27b0b9 in QApplication::exec () at /var/tmp/portage/dev-qt/qtbase-6.7.2-r4/work/qtbase-everywhere-src-6.7.2/src/widgets/kernel/qapplication.cpp:2555
#38 0x0000557e7bd7624b in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-24.08.0/work/kdevelop-24.08.0/app/main.cpp:822
[Inferior 1 (process 25234) detached]

Reported using DrKonqi
Comment 1 Andreas Sturmlechner 2024-09-09 08:47:52 UTC

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