Bug 435320 - Settings crashes when right-clicking systemd service
Summary: Settings crashes when right-clicking systemd service
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: sidebarview (show other bugs)
Version: 5.20.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-04-03 19:03 UTC by Mike O
Modified: 2021-04-04 21:38 UTC (History)
3 users (show)

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 Mike O 2021-04-03 19:03:34 UTC
Application: systemsettings5 (5.20.5)

Qt Version: 5.15.2
Frameworks Version: 5.79.0
Operating System: Linux 5.11.10-200.fc33.x86_64 x86_64
Windowing system: X11
Distribution: Fedora 33 (KDE Plasma)

-- Information about the crash:
- What I was doing when the application crashed:

Right-clicked systemd service (mssql-server)

(No further information)

The crash can be reproduced sometimes.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fbed617c080 in kcmsystemd::slotUnitContextMenu(QPoint const&) () at /usr/lib64/qt5/plugins/kcm_systemd.so
#5  0x00007fbf6a4213c0 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#6  0x00007fbf6afa9559 in QWidget::customContextMenuRequested(QPoint const&) () at /lib64/libQt5Widgets.so.5
#7  0x00007fbf6afc48a5 in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#8  0x00007fbf6b06d6f2 in QFrame::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#9  0x00007fbf6a3f1995 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#10 0x00007fbf6af82eb2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#11 0x00007fbf6af8ab63 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#12 0x00007fbf6a3f1bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#13 0x00007fbf6afdce96 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#14 0x00007fbf6afdf6be in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#15 0x00007fbf6af82ec3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#16 0x00007fbf6a3f1bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#17 0x00007fbf6a929143 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#18 0x00007fbf6a90a8cc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#19 0x00007fbf57f0747e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#20 0x00007fbf68171a9f in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#21 0x00007fbf681c3a98 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#22 0x00007fbf6816ee73 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#23 0x00007fbf6a43e6f3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#24 0x00007fbf6a3f057b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#25 0x00007fbf6a3f81b4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#26 0x000055d0768c4414 in main ()
[Inferior 1 (process 3490) detached]

Possible duplicates by query: bug 435312, bug 435295, bug 435251, bug 435153, bug 435116.

Reported using DrKonqi
Comment 1 Alois Wohlschlager 2021-04-04 08:37:24 UTC
Please install debug symbols and create a new backtrace.
Comment 2 Mike O 2021-04-04 21:34:52 UTC
(In reply to Alois Wohlschlager from comment #1)
> Please install debug symbols and create a new backtrace.

Here's a stack trace with kcm_systemd debug symbols. This is the best I can do.

I've only been able to reproduce this once since yesterday. I shut down the service by right click - Stop Unit, then right clicked again triggered the segmentation fault. But it's working since then. Maybe this bug is not worth investigating.

Application: System Settings (systemsettings5), signal: Segmentation fault

[KCrash Handler]
#4  QString::QString(QString const&) (other=..., this=0x7ffd8f6868e8, this=<optimized out>, other=<optimized out>) at /usr/include/qt5/QtCore/qstring.h:1050
#5  QDBusObjectPath::QDBusObjectPath(QDBusObjectPath const&) (this=0x7ffd8f6868e8) at /usr/include/qt5/QtDBus/qdbusextratypes.h:57
#6  kcmsystemd::slotUnitContextMenu(QPoint const&) (this=0x562cb31b2890, pos=...) at /usr/src/debug/kcm_systemd-1.2.1-17.fc33.x86_64/src/kcmsystemd.cpp:895
#7  0x00007f3d9df783c0 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#8  0x00007f3d9eb00559 in QWidget::customContextMenuRequested(QPoint const&) () at /lib64/libQt5Widgets.so.5
#9  0x00007f3d9eb1b8a5 in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#10 0x00007f3d9ebc46f2 in QFrame::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#11 0x00007f3d9df48995 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#12 0x00007f3d9ead9eb2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#13 0x00007f3d9eae1b63 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#14 0x00007f3d9df48bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#15 0x00007f3d9eb33e96 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#16 0x00007f3d9eb366be in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#17 0x00007f3d9ead9ec3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#18 0x00007f3d9df48bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#19 0x00007f3d9e480143 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#20 0x00007f3d9e47fd1c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#21 0x00007f3d9e4618cc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#22 0x00007f3d8ba5e47e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#23 0x00007f3d9bcc8a9f in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#24 0x00007f3d9bd1aa98 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#25 0x00007f3d9bcc5e73 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#26 0x00007f3d9df956f3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#27 0x00007f3d9df4757b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#28 0x00007f3d9df4f1b4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#29 0x0000562cb0f62414 in main ()
[Inferior 1 (process 48038) detached]





Application: System Settings (systemsettings5), signal: Segmentation fault

[KCrash Handler]
#4  QString::QString(QString const&) (other=..., this=0x7ffd8f6868e8, this=<optimized out>, other=<optimized out>) at /usr/include/qt5/QtCore/qstring.h:1050
#5  QDBusObjectPath::QDBusObjectPath(QDBusObjectPath const&) (this=0x7ffd8f6868e8) at /usr/include/qt5/QtDBus/qdbusextratypes.h:57
#6  kcmsystemd::slotUnitContextMenu(QPoint const&) (this=0x562cb31b2890, pos=...) at /usr/src/debug/kcm_systemd-1.2.1-17.fc33.x86_64/src/kcmsystemd.cpp:895
#7  0x00007f3d9df783c0 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#8  0x00007f3d9eb00559 in QWidget::customContextMenuRequested(QPoint const&) () at /lib64/libQt5Widgets.so.5
#9  0x00007f3d9eb1b8a5 in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#10 0x00007f3d9ebc46f2 in QFrame::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#11 0x00007f3d9df48995 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#12 0x00007f3d9ead9eb2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#13 0x00007f3d9eae1b63 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#14 0x00007f3d9df48bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#15 0x00007f3d9eb33e96 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#16 0x00007f3d9eb366be in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#17 0x00007f3d9ead9ec3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#18 0x00007f3d9df48bd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#19 0x00007f3d9e480143 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#20 0x00007f3d9e47fd1c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#21 0x00007f3d9e4618cc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#22 0x00007f3d8ba5e47e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#23 0x00007f3d9bcc8a9f in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#24 0x00007f3d9bd1aa98 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#25 0x00007f3d9bcc5e73 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#26 0x00007f3d9df956f3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#27 0x00007f3d9df4757b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#28 0x00007f3d9df4f1b4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#29 0x0000562cb0f62414 in main ()
[Inferior 1 (process 48038) detached]
Comment 3 David Edmundson 2021-04-04 21:38:16 UTC
kcmsystemd is not part of plasma