https://bugs.kde.org/show_bug.cgi?id=483973
--- Comment #1 from Quinten Kock ---
Backtrace from the segfaulted thread. It seems to be clearing a NULL menu:
Thread 1 (Thread 0x71a1d9c0 (LWP 112356) "kcachegrind"):
#0 QMenu::clear (this=this@entry=0x0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2220
acts = {> =
{> = {}, }, d
= {d = 0x5568e700, ptr = 0x77158d06
, size = 140737488340400}}
#1 0x5558985e in TopLevel::backAboutToShow (this=0x5584d100) at
/usr/src/debug/kcachegrind/kcachegrind-24.02.0/kcachegrind/toplevel.cpp:2127
#2 0x76190ca9 in QtPrivate::QSlotObjectBase::call (a=0x7fffc688,
r=0x5584d100, this=0x559e9540, this=, r=,
a=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobjectdefs_impl.h:433
#3 doActivate (sender=0x559aa340, signal_index=7,
argv=0x7fffc688) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobject.cpp:4039
#4 0x772b6545 in QMenu::aboutToShow (this=0x559aa340) at
/usr/src/debug/qt6-base/build/src/widgets/Widgets_autogen/include/moc_qmenu.cpp:352
#5 QMenuPrivate::popup(QPoint const&, QAction*, std::function) (this=this@entry=0x559edce0, p=..., atAction=atAction@entry=0x0,
positionFunction=...) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2368
#6 0x772b73e0 in QMenuPrivate::exec(QPoint const&, QAction*,
std::function) (this=0x559edce0, p=..., action=0x0,
positionFunction=...) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2655
#7 0x7732a5df in QToolButtonPrivate::popupTimerDone
(this=0x55dbd1c0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qtoolbutton.cpp:776
#8 0x7732a9fa in QToolButton::showMenu (this=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qtoolbutton.cpp:667
#9 0x7732acc2 in QToolButton::mousePressEvent (this=0x55d6a9e0,
e=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qtoolbutton.cpp:569
#10 0x77144fb2 in QWidget::event (this=0x55d6a9e0,
event=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidget.cpp:8955
#11 0x770f438b in QApplicationPrivate::notify_helper
(this=this@entry=0x5568f0a0, receiver=receiver@entry=0x55d6a9e0,
e=e@entry=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#12 0x770f6be8 in QApplication::notify (this=,
receiver=0x55d6a9e0, e=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2782
#13 0x76139818 in QCoreApplication::notifyInternal2
(receiver=0x55d6a9e0, event=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#14 0x7613986d in QCoreApplication::sendSpontaneousEvent
(receiver=, event=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1553
#15 0x770f2327 in QApplicationPrivate::sendMouseEvent
(receiver=0x55d6a9e0, event=0x7fffcef0, alienWidget=0x55d6a9e0,
nativeWidget=0x5584d100, buttonDown=, lastMouseReceiver=...,
spontaneous=true, onlyDispatchEnterLeave=false) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2366
#16 0x77157a97 in QWidgetWindow::handleMouseEvent (this=0x55847a00,
event=event@entry=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidgetwindow.cpp:653
#17 0x77158db0 in QWidgetWindow::event (this=0x55847a00,
event=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidgetwindow.cpp:267
#18 0x770f438b in QApplicationPrivate::notify_helper (this=, receiver=0x55847a00, e=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#19 0x76139818 in QCoreApplication::notifyInternal2
(receiver=0x55847a00, event=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#20 0x7613986d in QCoreApplication::sendSpontaneousEvent
(receiver=, event=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1553
#21 0x7676f9e5 in QGuiApplicationPrivate::processMouseEvent
(e=0x5630e110) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qguiapplication.cpp:2325
#22 0x767da85c in QWindowSystemInterface::sendWindowSystemEvents
(flags=...) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindowsysteminterface.cpp:1109
#23 0x76bb26c4 in userEventSourceDispatch (source=) at
/usr/src/debug/qt6-base/qtbase-everywhere-s