Bug 473034

Summary: Dolphin(and plasmashell) crash when opening properties of a .desktop file
Product: [Applications] dolphin Reporter: Redo11 <archbert>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kfm-devel, nate
Priority: NOR Keywords: drkonqi
Version: 23.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Redo11 2023-08-05 11:35:57 UTC
Application: dolphin (23.04.3)

Qt Version: 5.15.10
Frameworks Version: 5.108.0
Operating System: Linux 6.4.7-zen1-3-zen x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.7 [KCrashBackend]

-- Information about the crash:
```
[Desktop Entry]
Comment[en_US]=
Comment=
Exec='=example'
GenericName[en_US]=
GenericName=
Icon=
MimeType=
Name[en_US]=Example
Name=Example
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
```

The part that causes the crash is the "=" sign in the Exec parameter.
The crash also happens when opening properties from Plasmashell, crashing the entire desktop.

The crash can be reproduced every time.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#6  0x00007f50ba0b70e4 in QWidgetLineControl::internalSetText(QString const&, int, bool) (this=0x55b18d09a360, txt=..., pos=-1, edited=<optimized out>) at widgets/qwidgetlinecontrol.cpp:766
#7  0x00007f50bb248f34 in KDEPrivate::KDesktopPropsPlugin::KDesktopPropsPlugin(KPropertiesDialog*) (this=<optimized out>, _props=<optimized out>, this=<optimized out>, _props=<optimized out>) at /usr/src/debug/kio/kio-5.108.0/src/widgets/kpropertiesdialog.cpp:3411
#8  0x00007f50bb234506 in KPropertiesDialogPrivate::insertPages() (this=this@entry=0x55b18d194730) at /usr/src/debug/kio/kio-5.108.0/src/widgets/kpropertiesdialog.cpp:640
#9  0x00007f50bb236bf9 in KPropertiesDialogPrivate::init() (this=0x55b18d194730) at /usr/src/debug/kio/kio-5.108.0/src/widgets/kpropertiesdialog.cpp:435
#10 0x00007f50bb237315 in KPropertiesDialog::KPropertiesDialog(KFileItemList const&, QWidget*) (this=this@entry=0x55b18cc17ee0, _items=..., parent=<optimized out>, this=<optimized out>, _items=<optimized out>, parent=<optimized out>) at /usr/src/debug/kio/kio-5.108.0/src/widgets/kpropertiesdialog.cpp:269
#11 0x00007f50bb59ac3e in DolphinViewActionHandler::slotProperties() (this=0x55b18be95550) at /usr/src/debug/dolphin/dolphin-23.04.3/src/views/dolphinviewactionhandler.cpp:762
#12 0x00007f50b92d0807 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd430f4710, r=<optimized out>, this=0x55b18bf0e250, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#13 doActivate<false>(QObject*, int, void**) (sender=0x55b18c17d8f0, signal_index=4, argv=0x7ffd430f4710) at kernel/qobject.cpp:3925
#14 0x00007f50b9f6bbb7 in QAction::triggered(bool) (this=this@entry=0x55b18c17d8f0, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#15 0x00007f50b9f7160b in QAction::activate(QAction::ActionEvent) (this=0x55b18c17d8f0, event=<optimized out>) at kernel/qaction.cpp:1161
#16 0x00007f50ba0f3fbb in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) (this=this@entry=0x55b18cc1e720, causedStack=..., action=action@entry=0x55b18c17d8f0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1384
#17 0x00007f50ba0f40dd in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) (this=0x55b18cc1e720, action=0x55b18c17d8f0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1461
#18 0x00007f50b9faf1e1 in QWidget::event(QEvent*) (this=0x7f50a400a310, event=0x7ffd430f4d10) at kernel/qwidget.cpp:8671
#19 0x00007f50b9f7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55b18ba83030, receiver=receiver@entry=0x7f50a400a310, e=e@entry=0x7ffd430f4d10) at kernel/qapplication.cpp:3640
#20 0x00007f50b9f7ddef in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x7f50a400a310, e=0x7ffd430f4d10) at kernel/qapplication.cpp:3084
#21 0x00007f50b929b8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f50a400a310, event=0x7ffd430f4d10) at kernel/qcoreapplication.cpp:1064
#22 0x00007f50b929b963 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#23 0x00007f50b9f7c12a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) (receiver=0x7f50a400a310, event=0x7ffd430f4d10, alienWidget=<optimized out>, nativeWidget=0x7f50a400a310, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#24 0x00007f50b9fcd9d4 in QWidgetWindow::handleMouseEvent(QMouseEvent*) (this=this@entry=0x55b18c46d870, event=event@entry=0x7ffd430f5070) at kernel/qwidgetwindow.cpp:580
#25 0x00007f50b9fcec27 in QWidgetWindow::event(QEvent*) (this=0x55b18c46d870, event=0x7ffd430f5070) at kernel/qwidgetwindow.cpp:300
#26 0x00007f50b9f7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b18c46d870, e=0x7ffd430f5070) at kernel/qapplication.cpp:3640
#27 0x00007f50b929b8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b18c46d870, event=0x7ffd430f5070) at kernel/qcoreapplication.cpp:1064
#28 0x00007f50b929b963 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#29 0x00007f50b974193c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=0x55b18cb4c950) at kernel/qguiapplication.cpp:2285
#30 0x00007f50b972a6c5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#31 0x00007f50b312f3e0 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#32 0x00007f50b710fa31 in g_main_dispatch (context=0x7f50ac000ee0) at ../glib/glib/gmain.c:3460
#33 g_main_context_dispatch (context=0x7f50ac000ee0) at ../glib/glib/gmain.c:4200
#34 0x00007f50b716ccc9 in g_main_context_iterate.isra.0 (context=context@entry=0x7f50ac000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#35 0x00007f50b710d0e2 in g_main_context_iteration (context=0x7f50ac000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#36 0x00007f50b92ea72c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55b18bc260d0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#37 0x00007f50b929a5e4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd430f5420, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#38 0x00007f50ba0fb868 in QMenuPrivate::exec(QPoint const&, QAction*, std::function<QPoint (QSize const&)>) (this=0x55b18cc1e720, p=..., action=action@entry=0x0, positionFunction=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#39 0x00007f50ba0fb983 in QMenu::exec(QPoint const&, QAction*) (this=this@entry=0x7f50a400a310, p=..., action=action@entry=0x0) at widgets/qmenu.cpp:2687
#40 0x000055b18a97f8f0 in DolphinMainWindow::openContextMenu(QPoint const&, KFileItem const&, KFileItemList const&, QUrl const&) (this=<optimized out>, pos=..., item=..., selectedItems=..., url=...) at /usr/src/debug/dolphin/dolphin-23.04.3/src/dolphinmainwindow.cpp:1294
#41 0x00007f50b92d0807 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd430f5600, r=<optimized out>, this=0x55b18c72a160, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#42 doActivate<false>(QObject*, int, void**) (sender=0x55b18c80a810, signal_index=28, argv=0x7ffd430f5600) at kernel/qobject.cpp:3925
#43 0x00007f50bb518289 in DolphinView::requestContextMenu(QPoint const&, KFileItem const&, KFileItemList const&, QUrl const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>, _t4=<optimized out>) at /usr/src/debug/dolphin/build/src/dolphinprivate_autogen/DWW7M6GQBY/moc_dolphinview.cpp:1183
#44 0x00007f50bb588a10 in DolphinView::slotItemContextMenuRequested(int, QPointF const&) (this=0x55b18c80a810, index=<optimized out>, pos=...) at /usr/src/debug/dolphin/dolphin-23.04.3/src/views/dolphinview.cpp:1142
#45 0x00007f50b92d0807 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd430f5780, r=<optimized out>, this=0x55b18c844190, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#46 doActivate<false>(QObject*, int, void**) (sender=0x55b18c808c40, signal_index=6, argv=0x7ffd430f5780) at kernel/qobject.cpp:3925
#47 0x00007f50bb515b8b in KItemListController::itemContextMenuRequested(int, QPointF const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /usr/src/debug/dolphin/build/src/dolphinprivate_autogen/Z3MQH7AOBD/moc_kitemlistcontroller.cpp:519
#48 0x00007f50bb550157 in KItemListController::onPress(QPoint const&, QPointF const&, QFlags<Qt::KeyboardModifier>, QFlags<Qt::MouseButton>) (this=this@entry=0x55b18c808c40, screenPos=..., pos=..., modifiers=..., modifiers@entry=..., buttons=..., buttons@entry=...) at /usr/src/debug/dolphin/dolphin-23.04.3/src/kitemviews/kitemlistcontroller.cpp:1671
#49 0x00007f50bb55069e in KItemListController::mousePressEvent(QGraphicsSceneMouseEvent*, QTransform const&) (this=this@entry=0x55b18c808c40, event=event@entry=0x7ffd430f5f50, transform=...) at /usr/src/debug/dolphin/dolphin-23.04.3/src/kitemviews/kitemlistcontroller.cpp:578
#50 0x00007f50bb553eeb in KItemListController::processEvent(QEvent*, QTransform const&) (this=0x55b18c808c40, event=0x7ffd430f5f50, transform=<optimized out>) at /usr/src/debug/dolphin/dolphin-23.04.3/src/kitemviews/kitemlistcontroller.cpp:1184
#51 0x00007f50bb55708e in KItemListView::event(QEvent*) (this=0x55b18c8132e0, event=0x7ffd430f5f50) at /usr/src/debug/dolphin/dolphin-23.04.3/src/kitemviews/kitemlistview.cpp:966
#52 0x00007f50b9f7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b18c8132e0, e=0x7ffd430f5f50) at kernel/qapplication.cpp:3640
#53 0x00007f50b929b8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b18c8132e0, event=0x7ffd430f5f50) at kernel/qcoreapplication.cpp:1064
#54 0x00007f50b929b963 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#55 0x00007f50ba295ac0 in qt_sendSpontaneousEvent(QObject*, QEvent*) (event=0x7ffd430f5f50, receiver=<optimized out>) at kernel/qapplication.cpp:4064
#56 QGraphicsScenePrivate::sendEvent(QGraphicsItem*, QEvent*) (this=0x55b18c828fa0, item=0x55b18c8132f0, event=0x7ffd430f5f50) at graphicsview/qgraphicsscene.cpp:1254
#57 0x00007f50ba29a51a in QGraphicsScenePrivate::sendMouseEvent(QGraphicsSceneMouseEvent*) (this=0x55b18c828fa0, mouseEvent=0x7ffd430f5f50) at graphicsview/qgraphicsscene.cpp:1335
#58 0x00007f50ba29d01b in QGraphicsScenePrivate::mousePressEventHandler(QGraphicsSceneMouseEvent*) (this=0x55b18c828fa0, mouseEvent=0x7ffd430f5f50) at graphicsview/qgraphicsscene.cpp:1462
#59 0x00007f50ba2a12b9 in QGraphicsScene::event(QEvent*) (this=0x55b18c828eb0, event=0x7ffd430f5f50) at graphicsview/qgraphicsscene.cpp:3433
#60 0x00007f50b9f7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b18c828eb0, e=0x7ffd430f5f50) at kernel/qapplication.cpp:3640
#61 0x00007f50b929b8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b18c828eb0, event=0x7ffd430f5f50) at kernel/qcoreapplication.cpp:1064
#62 0x00007f50b929b963 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#63 0x00007f50ba2c9077 in qt_sendSpontaneousEvent(QObject*, QEvent*) (event=0x7ffd430f5f50, receiver=<optimized out>) at kernel/qapplication.cpp:4064
#64 QGraphicsView::mousePressEvent(QMouseEvent*) (this=0x55b18c828e40, event=0x7ffd430f64f0) at graphicsview/qgraphicsview.cpp:3307
#65 0x00007f50b9faf529 in QWidget::event(QEvent*) (this=0x55b18c828e40, event=0x7ffd430f64f0) at kernel/qwidget.cpp:8667
#66 0x00007f50ba05d6b3 in QFrame::event(QEvent*) (this=0x55b18c828e40, e=0x7ffd430f64f0) at widgets/qframe.cpp:550
#67 0x00007f50b92988e2 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (receiver=receiver@entry=0x55b18c8411c0, event=event@entry=0x7ffd430f64f0) at kernel/qcoreapplication.cpp:1190
#68 0x00007f50b9f7892f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55b18ba83030, receiver=receiver@entry=0x55b18c8411c0, e=e@entry=0x7ffd430f64f0) at kernel/qapplication.cpp:3634
#69 0x00007f50b9f7ddef in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b18c8411c0, e=0x7ffd430f64f0) at kernel/qapplication.cpp:3084
#70 0x00007f50b929b8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b18c8411c0, event=0x7ffd430f64f0) at kernel/qcoreapplication.cpp:1064
#71 0x00007f50b929b963 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#72 0x00007f50b9f7c12a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) (receiver=0x55b18c8411c0, event=0x7ffd430f64f0, alienWidget=<optimized out>, nativeWidget=0x55b18bf19ed0, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#73 0x00007f50b9fcced5 in QWidgetWindow::handleMouseEvent(QMouseEvent*) (this=this@entry=0x55b18c38b950, event=event@entry=0x7ffd430f6850) at kernel/qwidgetwindow.cpp:684
#74 0x00007f50b9fcec27 in QWidgetWindow::event(QEvent*) (this=0x55b18c38b950, event=0x7ffd430f6850) at kernel/qwidgetwindow.cpp:300
#75 0x00007f50b9f7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55b18c38b950, e=0x7ffd430f6850) at kernel/qapplication.cpp:3640
#76 0x00007f50b929b8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55b18c38b950, event=0x7ffd430f6850) at kernel/qcoreapplication.cpp:1064
#77 0x00007f50b929b963 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#78 0x00007f50b974193c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=0x55b18cf21b30) at kernel/qguiapplication.cpp:2285
#79 0x00007f50b972a6c5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#80 0x00007f50b312f3e0 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#81 0x00007f50b710fa31 in g_main_dispatch (context=0x7f50ac000ee0) at ../glib/glib/gmain.c:3460
#82 g_main_context_dispatch (context=0x7f50ac000ee0) at ../glib/glib/gmain.c:4200
#83 0x00007f50b716ccc9 in g_main_context_iterate.isra.0 (context=context@entry=0x7f50ac000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#84 0x00007f50b710d0e2 in g_main_context_iteration (context=0x7f50ac000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#85 0x00007f50b92ea72c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55b18bc260d0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#86 0x00007f50b929a5e4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd430f6bf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#87 0x00007f50b929ba83 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#88 0x00007f50b973bef2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#89 0x00007f50b9f76cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#90 0x000055b18a974da8 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin/dolphin-23.04.3/src/main.cpp:249
[Inferior 1 (process 4244) detached]

The reporter indicates this bug may be a duplicate of or related to bug 468346.

Reported using DrKonqi
Comment 1 Nate Graham 2023-12-13 15:29:56 UTC

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