Bug 364524 - kcmshell5 kcm_sddm dumps core everytime it is executed
Summary: kcmshell5 kcm_sddm dumps core everytime it is executed
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.9.5
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-06-20 05:36 UTC by Bob Wya
Modified: 2018-03-22 01:42 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Wya 2016-06-20 05:36:51 UTC
Application: systemsettings5 (5.6.95)
 (Compiled from sources)
Qt Version: 5.7.0
Frameworks Version: 5.23.0
Operating System: Linux 4.6.0-gentoo x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
I'm unable to access the KCM module for SDDM (either via the SystemSettings5 menu or via a direct launch from a console).

I'm getting the following message when I attempt:
kcmshell 5 kcm_sddm

QDBusArgument: read from a write-only object
Aborted (core dumped)

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff41bcdb7c0 (LWP 19310))]

Thread 6 (Thread 0x7ff3ea693700 (LWP 19317)):
#0  0x00007ff41836537d in poll () from /lib64/libc.so.6
#1  0x00007ff4139dd0ac in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff4139dd432 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff3eb17da26 in gdbus_shared_thread_func () from /usr/lib64/libgio-2.0.so.0
#4  0x00007ff413a037b5 in g_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ff415732424 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff41836e3fd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7ff3eae94700 (LWP 19316)):
#0  0x00007ff41836537d in poll () from /lib64/libc.so.6
#1  0x00007ff4139dd0ac in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff4139dd1bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff4139dd1f9 in glib_worker_main () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ff413a037b5 in g_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ff415732424 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff41836e3fd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7ff3f4801700 (LWP 19315)):
#0  0x00007ff41836537d in poll () from /lib64/libc.so.6
#1  0x00007ff4139dd0ac in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff4139dd1bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff418cdbebb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ff418c831ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ff418ac088b in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ff41736f2e5 in QQmlThreadPrivate::run() () from /usr/lib64/libQt5Qml.so.5
#7  0x00007ff418ac62ad in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007ff415732424 in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff41836e3fd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7ff4027aa700 (LWP 19313)):
#0  0x00007ff41836537d in poll () from /lib64/libc.so.6
#1  0x00007ff4139dd0ac in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff4139dd1bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff418cdbebb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ff418c831ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ff418ac088b in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ff41bddfc08 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#7  0x00007ff418ac62ad in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007ff415732424 in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff41836e3fd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff40b321700 (LWP 19312)):
#0  0x00007ff41836537d in poll () from /lib64/libc.so.6
#1  0x00007ff415faa8f2 in _xcb_conn_wait () from /usr/lib64/libxcb.so.1
#2  0x00007ff415fac707 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007ff40deb9bf9 in QXcbEventReader::run() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007ff418ac62ad in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ff415732424 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff41836e3fd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff41bcdb7c0 (LWP 19310)):
[KCrash Handler]
#6  0x00007ff4182b82f8 in raise () from /lib64/libc.so.6
#7  0x00007ff4182b974a in abort () from /lib64/libc.so.6
#8  0x00007ff418aae9e9 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
#9  0x00007ff41bddef88 in QDBusArgumentPrivate::checkRead(QDBusArgumentPrivate*) [clone .part.27] () from /usr/lib64/libQt5DBus.so.5
#10 0x00007ff41be2d428 in QDBusArgumentPrivate::checkReadAndDetach(QDBusArgumentPrivate*&) () from /usr/lib64/libQt5DBus.so.5
#11 0x00007ff41be303e9 in QDBusArgument::beginMapEntry() const () from /usr/lib64/libQt5DBus.so.5
#12 0x00007ff3eb89e6b2 in PolkitQt1::Authority::Private::init() () from /usr/lib64/libpolkit-qt5-core-1.so.1
#13 0x00007ff3eb89f051 in PolkitQt1::Authority::Authority(_PolkitAuthority*, QObject*) () from /usr/lib64/libpolkit-qt5-core-1.so.1
#14 0x00007ff3eb89f312 in PolkitQt1::Authority::instance(_PolkitAuthority*) () from /usr/lib64/libpolkit-qt5-core-1.so.1
#15 0x00007ff3ebaaf5fa in KAuth::Polkit1Backend::Polkit1Backend() () from /usr/lib64/qt5/plugins/kauth/backend/kauth_backend_plugin.so
#16 0x00007ff3ebab16b5 in qt_plugin_instance () from /usr/lib64/qt5/plugins/kauth/backend/kauth_backend_plugin.so
#17 0x00007ff418c6f563 in QPluginLoader::instance() () from /usr/lib64/libQt5Core.so.5
#18 0x00007ff417b181cb in KAuth::BackendsManager::retrieveInstancesIn(QString const&) () from /usr/lib64/libKF5Auth.so.5
#19 0x00007ff417b18683 in KAuth::BackendsManager::init() () from /usr/lib64/libKF5Auth.so.5
#20 0x00007ff417b18d4d in KAuth::BackendsManager::authBackend() () from /usr/lib64/libKF5Auth.so.5
#21 0x00007ff417b113fb in KAuth::Action::setName(QString const&) () from /usr/lib64/libKF5Auth.so.5
#22 0x00007ff417b11556 in KAuth::Action::Action(QString const&) () from /usr/lib64/libKF5Auth.so.5
#23 0x00007ff41ae90398 in KCModule::setNeedsAuthorization(bool) () from /usr/lib64/libKF5ConfigWidgets.so.5
#24 0x00007ff3ed39cd49 in SddmKcm::SddmKcm(QWidget*, QList<QVariant> const&) () from /usr/lib64/qt5/plugins/kcm_sddm.so
#25 0x00007ff3ed39df7b in QObject* KPluginFactory::createInstance<SddmKcm, QWidget>(QWidget*, QObject*, QList<QVariant> const&) () from /usr/lib64/qt5/plugins/kcm_sddm.so
#26 0x00007ff418f304bc in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () from /usr/lib64/libKF5CoreAddons.so.5
#27 0x00007ff41b867806 in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () from /usr/lib64/libKF5KCMUtils.so.5
#28 0x00007ff41b86ecdf in KCModuleProxyPrivate::loadModule() () from /usr/lib64/libKF5KCMUtils.so.5
#29 0x00007ff41b86f8d5 in KCModuleProxy::realModule() const () from /usr/lib64/libKF5KCMUtils.so.5
#30 0x00007ff41b86fe23 in KCModuleProxy::showEvent(QShowEvent*) () from /usr/lib64/libKF5KCMUtils.so.5
#31 0x00007ff41a19bd98 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#32 0x00007ff41a14c644 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#33 0x00007ff41a1541ee in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#34 0x00007ff418c84b4a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#35 0x00007ff41a198582 in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#36 0x00007ff41a198440 in QWidgetPrivate::showChildren(bool) () from /usr/lib64/libQt5Widgets.so.5
#37 0x00007ff41a1984ff in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#38 0x00007ff41a19b8cc in QWidget::setVisible(bool) () from /usr/lib64/libQt5Widgets.so.5
#39 0x00007ff41a198458 in QWidgetPrivate::showChildren(bool) () from /usr/lib64/libQt5Widgets.so.5
#40 0x00007ff41a1984ff in QWidgetPrivate::show_helper() () from /usr/lib64/libQt5Widgets.so.5
#41 0x00007ff41a19b8cc in QWidget::setVisible(bool) () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007ff41a17ac95 in QStackedLayout::setCurrentIndex(int) () from /usr/lib64/libQt5Widgets.so.5
#43 0x00007ff41a17aea4 in QStackedLayout::setCurrentWidget(QWidget*) () from /usr/lib64/libQt5Widgets.so.5
#44 0x00007ff41a2f66b1 in QStackedWidget::setCurrentWidget(QWidget*) () from /usr/lib64/libQt5Widgets.so.5
#45 0x00007ff41a7a2b95 in KPageViewPrivate::_k_pageSelected(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libKF5WidgetsAddons.so.5
#46 0x00007ff418cb1706 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#47 0x00007ff418c3c777 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libQt5Core.so.5
#48 0x00007ff418c41130 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib64/libQt5Core.so.5
#49 0x00007ff418c43ba2 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib64/libQt5Core.so.5
#50 0x00007ff41a3e5eb8 in QListView::setSelection(QRect const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib64/libQt5Widgets.so.5
#51 0x00007ff41a3c519b in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#52 0x00007ff41a19c6ff in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#53 0x00007ff41a28e0ee in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#54 0x00007ff41a3cb9bb in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#55 0x00007ff418c848f4 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#56 0x00007ff41a14c61e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#57 0x00007ff41a154e58 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#58 0x00007ff418c84b4a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#59 0x00007ff41a15388d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5
#60 0x00007ff41a1b71af in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#61 0x00007ff41a1b9b0b in QWidgetWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#62 0x00007ff41a14c644 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007ff41a1541ee in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#64 0x00007ff418c84b4a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#65 0x00007ff419bebf0d in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#66 0x00007ff419beddd5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#67 0x00007ff419bccacb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#68 0x00007ff40def57a0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5XcbQpa.so.5
#69 0x00007ff4139dceb7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#70 0x00007ff4139dd110 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#71 0x00007ff4139dd1bc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#72 0x00007ff418cdbe9f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#73 0x00007ff418c831ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#74 0x00007ff418c8be2c in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#75 0x000000000040bffe in main ()

Reported using DrKonqi
Comment 1 Bob Wya 2016-07-20 23:00:40 UTC
Still present in 5.7.2 ... Sigh...

kcmshell5 kcm_sddm

QDBusArgument: read from a write-only object
Aborted (core dumped)
Comment 2 Andreas Sturmlechner 2016-08-20 17:13:18 UTC
Is it safe to assume you have built Qt with USE=debug?
Comment 3 Bob Wya 2016-08-20 20:18:04 UTC
(In reply to andreas.sturmlechner from comment #2)
> Is it safe to assume you have built Qt with USE=debug?

You presume correctly. You may also presume, that building with Qt 5.7.0 with USE=-debug, fixes the issue! I am able launch kcm_sddm without any issues in this instance. I might have forgotten to report this fact - I stumbled upon a month or two ago (cough). :-)
Comment 4 Andreas Sturmlechner 2016-08-21 08:09:24 UTC
Allow me to link back to the related Gentoo bug, then: https://bugs.gentoo.org/show_bug.cgi?id=589780#c6
Comment 5 Matěj Laitl 2017-07-09 10:20:39 UTC
Also happens to me with more KDE components:

org_kde_powerdevil (5.9.5)
polkit-kde-authentication-agent-1 (5.9.5)

Qt Version: 5.7.1
Frameworks Version: 5.34.0
polkit-qt-1: 0.112.0
Operating System: Linux 4.9.16-gentoo x86_64
Distribution (Platform): Gentoo Packages

All the crashes have common end of the backtrace:

Thread 1 (Thread 0x7f5a98552840 (LWP 3681)):
[KCrash Handler]
#6  0x00007f5a96b13128 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f5a96b1457a in __GI_abort () at abort.c:89
#8  0x00007f5a97306999 in qt_message_fatal (context=..., message=<synthetic pointer>...) at global/qlogging.cpp:1682
#9  QMessageLogger::fatal (this=this@entry=0x7ffd00abfaa0, msg=msg@entry=0x7f5a986b0098 "QDBusArgument: read from a write-only object") at global/qlogging.cpp:793
#10 0x00007f5a98645e08 in QDBusArgumentPrivate::checkRead (d=<optimized out>) at qdbusargument.cpp:142
#11 0x00007f5a98693ee8 in QDBusArgumentPrivate::checkRead (d=<optimized out>) at qdbusargument.cpp:166
#12 QDBusArgumentPrivate::checkReadAndDetach (d=@0x7ffd00abfc50: 0x2503980) at qdbusargument.cpp:152
#13 0x00007f5a98696ea9 in QDBusArgument::beginMapEntry (this=0x7ffd00abfc50) at qdbusargument.cpp:1069
#14 0x00007f5a7edba93f in operator>><QString> (list=..., arg=...) at /usr/include/qt5/QtDBus/qdbusargument.h:275
#15 PolkitQt1::Authority::Private::init (this=0x24e1090) at /var/tmp/portage/sys-auth/polkit-qt-0.112.0-r1/work/polkit-qt-1-0.112.0/core/polkitqt1-authority.cpp:226

...and appear indeed only when QtDBus is compiled in debug mode:
https://code.qt.io/cgit/qt/qtbase.git/tree/src/dbus/qdbusargument.cpp?h=5.7#n141

The assertion has been however probably fixed in polkit-qt master in this commit:
https://cgit.kde.org/polkit-qt-1.git/commit/?id=fb1667ac9a5437b4784d2806a3e816cbdbe404a5

Alex, maybe this warrants releasing new polkit-qt-1 with the fix?