Bug 416397 - After I remove the shortcut to lock the screen via standalone "Screen locking" KCM, System Settings started to crash every time I double-click on "Workspace behavior"
Summary: After I remove the shortcut to lock the screen via standalone "Screen locking...
Status: RESOLVED FIXED
Alias: None
Product: kscreenlocker
Classification: Plasma
Component: kcm (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-01-17 22:25 UTC by Patrick Silva
Modified: 2020-01-19 22:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.18.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-01-17 22:25:41 UTC
Application: systemsettings5 (5.17.90)

Qt Version: 5.14.0
Frameworks Version: 5.66.0
Operating System: Linux 5.4.12-arch1-1 x86_64
Windowing system: X11
Distribution: Arch Linux

-- Information about the crash:
- What I was doing when the application crashed:
I opened "Screen locking" kcm via the apps launcher
I removed the shortcut to lock the screen (meta+l)
I clicked on "Ok" button
since then system settings crashes every time I try to open "Workspace behavior"

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f7cc033c100 (LWP 96963))]

Thread 8 (Thread 0x7f7c9e330700 (LWP 97018)):
#0  0x00007f7cc4a4d9ef in poll () at /usr/lib/libc.so.6
#1  0x00007f7cc0f6f120 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f7cc0f6f1f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f7cc5008cdc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f7c98000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f7cc4faf39c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f7c9e32fd40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#5  0x00007f7cc4dd4e62 in QThread::exec() (this=this@entry=0x5617c1ea7c90) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#6  0x00007f7cc407b249 in QQmlThreadPrivate::run() (this=0x5617c1ea7c90) at /tmp/makepkg/qt5-declarative-debug/src/qtdeclarative-everywhere-src-5.14.0/src/qml/qml/ftw/qqmlthread.cpp:155
#7  0x00007f7cc4dd5fd6 in QThreadPrivate::start(void*) (arg=0x5617c1ea7c90) at thread/qthread_unix.cpp:342
#8  0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7f7cb5b2e700 (LWP 97008)):
#0  0x00007f7cc363dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f7cb7828dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007f7cb78289c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f7cb632f700 (LWP 97007)):
#0  0x00007f7cc363dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f7cb7828dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007f7cb78289c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f7cb6b30700 (LWP 97006)):
#0  0x00007f7cc363dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f7cb7828dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007f7cb78289c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f7cb7331700 (LWP 97005)):
#0  0x00007f7cc363dc45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f7cb7828dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007f7cb78289c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f7cbe189700 (LWP 96995)):
#0  0x00007f7cc0f6662f in g_source_ref () at /usr/lib/libglib-2.0.so.0
#1  0x00007f7cc0f6d662 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f7cc0f6d7df in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007f7cc0f6f0c8 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f7cc0f6f1f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007f7cc5008cdc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f7cb0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f7cc4faf39c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f7cbe188d30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f7cc4dd4e62 in QThread::exec() (this=this@entry=0x7f7cc52dd080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f7cc5258b28 in QDBusConnectionManager::run() (this=0x7f7cc52dd080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#9  0x00007f7cc4dd5fd6 in QThreadPrivate::start(void*) (arg=0x7f7cc52dd080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:342
#10 0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f7cbf53c700 (LWP 96982)):
#0  0x00007f7cc4a4d9ef in poll () at /usr/lib/libc.so.6
#1  0x00007f7cc35f6630 in  () at /usr/lib/libxcb.so.1
#2  0x00007f7cc35f82db in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f7cbff04a01 in QXcbEventQueue::run() (this=0x5617c18dbcd0) at qxcbeventqueue.cpp:228
#4  0x00007f7cc4dd5fd6 in QThreadPrivate::start(void*) (arg=0x5617c18dbcd0) at thread/qthread_unix.cpp:342
#5  0x00007f7cc36374cf in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f7cc4a582d3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f7cc033c100 (LWP 96963)):
[KCrash Handler]
#6  0x00007f7cc5433a26 in std::__atomic_base<int>::operator++() (this=0x29650019473f) at /usr/include/c++/9.2.0/bits/atomic_base.h:318
#7  0x00007f7cc5433a26 in QAtomicOps<int>::ref<int>(std::atomic<int>&) (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:283
#8  0x00007f7cc5433a26 in QBasicAtomicInteger<int>::ref() (this=0x29650019473f) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:118
#9  0x00007f7cc5433a26 in QKeySequence::QKeySequence(QKeySequence const&) (this=0x7ffcb26d4c60, keysequence=...) at kernel/qkeysequence.cpp:880
#10 0x00007f7c969991a3 in  () at /usr/lib/qt/plugins/screenlocker_kcm.so
#11 0x00007f7c9699456f in  () at /usr/lib/qt/plugins/screenlocker_kcm.so
#12 0x00007f7c96994d73 in  () at /usr/lib/qt/plugins/screenlocker_kcm.so
#13 0x00007f7cc4fbcf85 in QMetaProperty::read(QObject const*) const (this=this@entry=0x7ffcb26d4d80, object=object@entry=0x5617c504a0c0) at kernel/qmetaobject.cpp:3151
#14 0x00007f7cc4fe28d6 in QObject::property(char const*) const (this=0x5617c504a0c0, name=<optimized out>) at kernel/qobject.cpp:4087
#15 0x00007f7cc61c2cd2 in KPropertySkeletonItem::readConfig(KConfig*) () at /usr/lib/libKF5ConfigCore.so.5
#16 0x00007f7cc61c67a4 in KCoreConfigSkeleton::addItem(KConfigSkeletonItem*, QString const&) () at /usr/lib/libKF5ConfigCore.so.5
#17 0x00007f7c96998e5d in  () at /usr/lib/qt/plugins/screenlocker_kcm.so
#18 0x00007f7c9699557b in  () at /usr/lib/qt/plugins/screenlocker_kcm.so
#19 0x00007f7c9699808d in  () at /usr/lib/qt/plugins/screenlocker_kcm.so
#20 0x00007f7cc6123755 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () at /usr/lib/libKF5CoreAddons.so.5
#21 0x00007f7cc6694d3d in KCModule* KService::createInstance<KCModule>(QWidget*, QObject*, QList<QVariant> const&, QString*) const () at /usr/lib/libKF5KCMUtils.so.5
#22 0x00007f7cc669396c in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () at /usr/lib/libKF5KCMUtils.so.5
#23 0x00007f7cc669d8f4 in  () at /usr/lib/libKF5KCMUtils.so.5
#24 0x00007f7cc669df4b in KCModuleProxy::realModule() const () at /usr/lib/libKF5KCMUtils.so.5
#25 0x00007f7cc66df67e in ModuleView::updatePageIconHeader(KPageWidgetItem*, bool) (this=this@entry=0x5617c1d97c60, page=page@entry=0x5617c503dab0, light=light@entry=true) at /usr/src/debug/systemsettings-5.17.90/core/ModuleView.cpp:218
#26 0x00007f7cc66e0a7e in ModuleView::addModule(KCModuleInfo*) (this=this@entry=0x5617c1d97c60, module=0x5617c1d85898) at /usr/src/debug/systemsettings-5.17.90/core/ModuleView.cpp:195
#27 0x00007f7cc66e0e89 in ModuleView::loadModule(QModelIndex const&) (this=0x5617c1d97c60, menuItem=...) at /usr/src/debug/systemsettings-5.17.90/core/ModuleView.cpp:150
#28 0x00007f7cc4fe633e in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffcb26d5670, r=0x5617c1d957b0, this=0x5617c1e00510) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#29 0x00007f7cc4fe633e in doActivate<false>(QObject*, int, void**) (sender=0x5617c1da8d40, signal_index=10, argv=0x7ffcb26d5670) at kernel/qobject.cpp:3870
#30 0x00007f7cc4fe096f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x5617c1da8d40, m=m@entry=0x7f7cc601f600 <QAbstractItemView::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffcb26d5670) at kernel/qobject.cpp:3930
#31 0x00007f7cc5d5e956 in QAbstractItemView::activated(QModelIndex const&) (this=this@entry=0x5617c1da8d40, _t1=...) at .moc/moc_qabstractitemview.cpp:668
#32 0x00007f7cc5d6d2d8 in QAbstractItemView::mouseDoubleClickEvent(QMouseEvent*) (this=0x5617c1da8d40, event=0x7ffcb26d5e30) at itemviews/qabstractitemview.cpp:1968
#33 0x00007f7cc5b3088b in QWidget::event(QEvent*) (this=this@entry=0x5617c1da8d40, event=event@entry=0x7ffcb26d5e30) at kernel/qwidget.cpp:8635
#34 0x00007f7cc5be222f in QFrame::event(QEvent*) (this=0x5617c1da8d40, e=0x7ffcb26d5e30) at widgets/qframe.cpp:550
#35 0x00007f7cc5d6cc80 in QAbstractItemView::viewportEvent(QEvent*) (this=0x5617c1da8d40, event=0x7ffcb26d5e30) at itemviews/qabstractitemview.cpp:1754
#36 0x00007f7cc4fb0543 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1218
#37 0x00007f7cc4fb0543 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (receiver=receiver@entry=0x5617c1da8d80, event=event@entry=0x7ffcb26d5e30) at kernel/qcoreapplication.cpp:1207
#38 0x00007f7cc5aec461 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x5617c18b7ce0, receiver=receiver@entry=0x5617c1da8d80, e=e@entry=0x7ffcb26d5e30) at kernel/qapplication.cpp:3687
#39 0x00007f7cc5af5ed8 in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x5617c1da8d80, e=0x7ffcb26d5e30) at kernel/qapplication.cpp:3137
#40 0x00007f7cc4fb0832 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5617c1da8d80, event=0x7ffcb26d5e30) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#41 0x00007f7cc5af4ff6 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) (receiver=receiver@entry=0x5617c1da8d80, event=event@entry=0x7ffcb26d5e30, alienWidget=alienWidget@entry=0x5617c1da8d80, nativeWidget=0x5617c19573e0, buttonDown=buttonDown@entry=0x7f7cc6030330 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2623
#42 0x00007f7cc5b4bf91 in QWidgetWindow::handleMouseEvent(QMouseEvent*) (this=0x5617c1aab800, event=0x7ffcb26d6320) at /usr/include/c++/9.2.0/bits/atomic_base.h:413
#43 0x00007f7cc5b4ef14 in QWidgetWindow::event(QEvent*) (event=0x7ffcb26d6320, this=0x5617c1aab800) at kernel/qwidgetwindow.cpp:295
#44 0x00007f7cc5b4ef14 in QWidgetWindow::event(QEvent*) (this=0x5617c1aab800, event=0x7ffcb26d6320) at kernel/qwidgetwindow.cpp:238
#45 0x00007f7cc5aec472 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x5617c18b7ce0, receiver=receiver@entry=0x5617c1aab800, e=e@entry=0x7ffcb26d6320) at kernel/qapplication.cpp:3693
#46 0x00007f7cc5af5c89 in QApplication::notify(QObject*, QEvent*) (this=0x7ffcb26d6730, receiver=0x5617c1aab800, e=0x7ffcb26d6320) at kernel/qapplication.cpp:3439
#47 0x00007f7cc4fb0832 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5617c1aab800, event=0x7ffcb26d6320) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#48 0x00007f7cc5416215 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=e@entry=0x5617c1e5bb50) at kernel/qguiapplication.cpp:2232
#49 0x00007f7cc54179d6 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (e=e@entry=0x5617c1e5bb50) at kernel/qguiapplication.cpp:1920
#50 0x00007f7cc53f0c2c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1163
#51 0x00007f7cbff05a2c in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#52 0x00007f7cc0f6d39e in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#53 0x00007f7cc0f6f1b1 in  () at /usr/lib/libglib-2.0.so.0
#54 0x00007f7cc0f6f1f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#55 0x00007f7cc5008cc0 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5617c191dd40, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#56 0x00007f7cc4faf39c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffcb26d6650, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#57 0x00007f7cc4fb73a6 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#58 0x00005617c0021475 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/systemsettings-5.17.90/app/main.cpp:71
[Inferior 1 (process 96963) detached]

Possible duplicates by query: bug 411883, bug 303186.

Reported using DrKonqi
Comment 1 David Edmundson 2020-01-18 00:51:45 UTC
>/usr/lib/qt/plugins/screenlocker_kcm.so

could you get debug symbols for this please
Comment 2 Patrick Silva 2020-01-18 01:07:57 UTC
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff7c5061100 (LWP 6622))]

Thread 8 (Thread 0x7ff7a789b700 (LWP 6682)):
#0  0x00007ff7c976e42c in read () at /usr/lib/libc.so.6
#1  0x00007ff7c5c449f0 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ff7c5c929e1 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007ff7c5c940c8 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007ff7c5c941f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007ff7c9d2dcdc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ff79c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007ff7c9cd439c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ff7a789ad40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007ff7c9af9e62 in QThread::exec() (this=this@entry=0x55f80a1e3ed0) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007ff7c8da0249 in QQmlThreadPrivate::run() (this=0x55f80a1e3ed0) at /tmp/makepkg/qt5-declarative-debug/src/qtdeclarative-everywhere-src-5.14.0/src/qml/qml/ftw/qqmlthread.cpp:155
#9  0x00007ff7c9afafd6 in QThreadPrivate::start(void*) (arg=0x55f80a1e3ed0) at thread/qthread_unix.cpp:342
#10 0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7ff7ba7fc700 (LWP 6668)):
#0  0x00007ff7c8362c45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007ff7c0e01dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007ff7c0e019c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7ff7baffd700 (LWP 6667)):
#0  0x00007ff7c8362c45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007ff7c0e01dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007ff7c0e019c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7ff7bb7fe700 (LWP 6666)):
#0  0x00007ff7c8362c45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007ff7c0e01dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007ff7c0e019c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7ff7bbfff700 (LWP 6665)):
#0  0x00007ff7c8362c45 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007ff7c0e01dcc in  () at /usr/lib/dri/i965_dri.so
#2  0x00007ff7c0e019c8 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7ff7c2eae700 (LWP 6664)):
#0  0x00007ff7c976e42c in read () at /usr/lib/libc.so.6
#1  0x00007ff7c5c449f0 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ff7c5c929e1 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007ff7c5c940c8 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007ff7c5c941f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#5  0x00007ff7c9d2dcdc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ff7b4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007ff7c9cd439c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ff7c2eadd30, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007ff7c9af9e62 in QThread::exec() (this=this@entry=0x7ff7ca002080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007ff7c9f7db28 in QDBusConnectionManager::run() (this=0x7ff7ca002080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#9  0x00007ff7c9afafd6 in QThreadPrivate::start(void*) (arg=0x7ff7ca002080 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:342
#10 0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7ff7c4261700 (LWP 6647)):
#0  0x00007ff7c97729ef in poll () at /usr/lib/libc.so.6
#1  0x00007ff7c831b630 in  () at /usr/lib/libxcb.so.1
#2  0x00007ff7c831d2db in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007ff7c4c29a01 in QXcbEventQueue::run() (this=0x55f809be7790) at qxcbeventqueue.cpp:228
#4  0x00007ff7c9afafd6 in QThreadPrivate::start(void*) (arg=0x55f809be7790) at thread/qthread_unix.cpp:342
#5  0x00007ff7c835c4cf in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ff7c977d2d3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7ff7c5061100 (LWP 6622)):
[KCrash Handler]
#6  0x00007ff7ca158a26 in std::__atomic_base<int>::operator++() (this=0x29ffbb5cd609) at /usr/include/c++/9.2.0/bits/atomic_base.h:318
#7  0x00007ff7ca158a26 in QAtomicOps<int>::ref<int>(std::atomic<int>&) (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:283
#8  0x00007ff7ca158a26 in QBasicAtomicInteger<int>::ref() (this=0x29ffbb5cd609) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:118
#9  0x00007ff7ca158a26 in QKeySequence::QKeySequence(QKeySequence const&) (this=0x7ffe39e41850, keysequence=...) at kernel/qkeysequence.cpp:880
#10 0x00007ff7a51281a3 in KScreenSaverSettings::shortcut() const (this=0x55f80d3600c0) at /usr/include/qt/QtCore/qlist.h:245
#11 0x00007ff7a512356f in KScreenSaverSettings::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/build/kcm/screenlocker_kcm_autogen/YCDLW3T4OG/moc_kscreensaversettings.cpp:74
#12 0x00007ff7a5123d73 in KScreenSaverSettings::qt_metacall(QMetaObject::Call, int, void**) (this=0x55f80d3600c0, _c=QMetaObject::ReadProperty, _id=0, _a=0x7ffe39e41910) at /usr/src/debug/build/kcm/screenlocker_kcm_autogen/YCDLW3T4OG/moc_kscreensaversettings.cpp:128
#13 0x00007ff7c9ce1f85 in QMetaProperty::read(QObject const*) const (this=this@entry=0x7ffe39e41970, object=object@entry=0x55f80d3600c0) at kernel/qmetaobject.cpp:3151
#14 0x00007ff7c9d078d6 in QObject::property(char const*) const (this=0x55f80d3600c0, name=<optimized out>) at kernel/qobject.cpp:4087
#15 0x00007ff7caee7cd2 in KPropertySkeletonItem::readConfig(KConfig*) () at /usr/lib/libKF5ConfigCore.so.5
#16 0x00007ff7caeeb7a4 in KCoreConfigSkeleton::addItem(KConfigSkeletonItem*, QString const&) () at /usr/lib/libKF5ConfigCore.so.5
#17 0x00007ff7a5127e5d in KScreenSaverSettings::KScreenSaverSettings(QObject*) (this=0x55f80d3600c0, parent=<optimized out>) at /usr/include/qt/QtCore/qlist.h:245
#18 0x00007ff7a512457b in ScreenLockerKcm::ScreenLockerKcm(QWidget*, QList<QVariant> const&) (this=0x55f80d35fd60, parent=<optimized out>, args=...) at /usr/src/debug/kscreenlocker-5.17.90/kcm/kcm.cpp:62
#19 0x00007ff7a512708d in KPluginFactory::createInstance<ScreenLockerKcm, QWidget>(QWidget*, QObject*, QList<QVariant> const&) (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/qt/QtCore/qobject.h:153
#20 0x00007ff7cae48755 in KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) () at /usr/lib/libKF5CoreAddons.so.5
#21 0x00007ff7cb3b9d3d in KCModule* KService::createInstance<KCModule>(QWidget*, QObject*, QList<QVariant> const&, QString*) const () at /usr/lib/libKF5KCMUtils.so.5
#22 0x00007ff7cb3b896c in KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) () at /usr/lib/libKF5KCMUtils.so.5
#23 0x00007ff7cb3c28f4 in  () at /usr/lib/libKF5KCMUtils.so.5
#24 0x00007ff7cb3c2f4b in KCModuleProxy::realModule() const () at /usr/lib/libKF5KCMUtils.so.5
#25 0x00007ff7cb40467e in ModuleView::updatePageIconHeader(KPageWidgetItem*, bool) (this=this@entry=0x55f80a0eb580, page=page@entry=0x55f80d34a280, light=light@entry=true) at /usr/src/debug/systemsettings-5.17.90/core/ModuleView.cpp:218
#26 0x00007ff7cb405a7e in ModuleView::addModule(KCModuleInfo*) (this=this@entry=0x55f80a0eb580, module=0x55f80a0e1378) at /usr/src/debug/systemsettings-5.17.90/core/ModuleView.cpp:195
#27 0x00007ff7cb405e89 in ModuleView::loadModule(QModelIndex const&) (this=0x55f80a0eb580, menuItem=...) at /usr/src/debug/systemsettings-5.17.90/core/ModuleView.cpp:150
#28 0x00007ff7c9d0b33e in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe39e42260, r=0x55f80a0ea950, this=0x55f80a14e550) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#29 0x00007ff7c9d0b33e in doActivate<false>(QObject*, int, void**) (sender=0x55f80a0fe600, signal_index=10, argv=0x7ffe39e42260) at kernel/qobject.cpp:3870
#30 0x00007ff7c9d0596f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x55f80a0fe600, m=m@entry=0x7ff7cad44600 <QAbstractItemView::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffe39e42260) at kernel/qobject.cpp:3930
#31 0x00007ff7caa83956 in QAbstractItemView::activated(QModelIndex const&) (this=this@entry=0x55f80a0fe600, _t1=...) at .moc/moc_qabstractitemview.cpp:668
#32 0x00007ff7caa922d8 in QAbstractItemView::mouseDoubleClickEvent(QMouseEvent*) (this=0x55f80a0fe600, event=0x7ffe39e42a20) at itemviews/qabstractitemview.cpp:1968
#33 0x00007ff7ca85588b in QWidget::event(QEvent*) (this=this@entry=0x55f80a0fe600, event=event@entry=0x7ffe39e42a20) at kernel/qwidget.cpp:8635
#34 0x00007ff7ca90722f in QFrame::event(QEvent*) (this=0x55f80a0fe600, e=0x7ffe39e42a20) at widgets/qframe.cpp:550
#35 0x00007ff7caa91c80 in QAbstractItemView::viewportEvent(QEvent*) (this=0x55f80a0fe600, event=0x7ffe39e42a20) at itemviews/qabstractitemview.cpp:1754
#36 0x00007ff7c9cd5543 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1218
#37 0x00007ff7c9cd5543 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (receiver=receiver@entry=0x55f80a0fe640, event=event@entry=0x7ffe39e42a20) at kernel/qcoreapplication.cpp:1207
#38 0x00007ff7ca811461 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55f809bc8ce0, receiver=receiver@entry=0x55f80a0fe640, e=e@entry=0x7ffe39e42a20) at kernel/qapplication.cpp:3687
#39 0x00007ff7ca81aed8 in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x55f80a0fe640, e=0x7ffe39e42a20) at kernel/qapplication.cpp:3137
#40 0x00007ff7c9cd5832 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55f80a0fe640, event=0x7ffe39e42a20) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#41 0x00007ff7ca819ff6 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) (receiver=receiver@entry=0x55f80a0fe640, event=event@entry=0x7ffe39e42a20, alienWidget=alienWidget@entry=0x55f80a0fe640, nativeWidget=0x55f809c69980, buttonDown=buttonDown@entry=0x7ff7cad55330 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2623
#42 0x00007ff7ca870f91 in QWidgetWindow::handleMouseEvent(QMouseEvent*) (this=0x55f809d77690, event=0x7ffe39e42f10) at /usr/include/c++/9.2.0/bits/atomic_base.h:413
#43 0x00007ff7ca873f14 in QWidgetWindow::event(QEvent*) (event=0x7ffe39e42f10, this=0x55f809d77690) at kernel/qwidgetwindow.cpp:295
#44 0x00007ff7ca873f14 in QWidgetWindow::event(QEvent*) (this=0x55f809d77690, event=0x7ffe39e42f10) at kernel/qwidgetwindow.cpp:238
#45 0x00007ff7ca811472 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55f809bc8ce0, receiver=receiver@entry=0x55f809d77690, e=e@entry=0x7ffe39e42f10) at kernel/qapplication.cpp:3693
#46 0x00007ff7ca81ac89 in QApplication::notify(QObject*, QEvent*) (this=0x7ffe39e43320, receiver=0x55f809d77690, e=0x7ffe39e42f10) at kernel/qapplication.cpp:3439
#47 0x00007ff7c9cd5832 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55f809d77690, event=0x7ffe39e42f10) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#48 0x00007ff7ca13b215 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=e@entry=0x55f80a14adb0) at kernel/qguiapplication.cpp:2232
#49 0x00007ff7ca13c9d6 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (e=e@entry=0x55f80a14adb0) at kernel/qguiapplication.cpp:1920
#50 0x00007ff7ca115c2c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1163
#51 0x00007ff7c4c2aa2c in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#52 0x00007ff7c5c9239e in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#53 0x00007ff7c5c941b1 in  () at /usr/lib/libglib-2.0.so.0
#54 0x00007ff7c5c941f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#55 0x00007ff7c9d2dcc0 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55f809c305b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#56 0x00007ff7c9cd439c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe39e43240, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#57 0x00007ff7c9cdc3a6 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#58 0x000055f8089a9475 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/systemsettings-5.17.90/app/main.cpp:71
[Inferior 1 (process 6622) detached]
Comment 3 David Edmundson 2020-01-19 18:46:29 UTC
Urgh, right

KScreenSaverSettings ctor

calls into a path into some kconfigxt code that is calling into KScreenSaverSettings::shortcut before m_lockAction is initialised to null, let alone initialised properly.
Comment 4 David Edmundson 2020-01-19 18:57:52 UTC
Edit, I was talking nonsense above. Fix is simple. Patch on review in a few minutes.
Comment 5 David Edmundson 2020-01-19 22:11:26 UTC
Git commit 5140150ef80c72ea9ab0c3b5fc31b474b2a8ea6a by David Edmundson.
Committed on 19/01/2020 at 21:50.
Pushed by davidedmundson into branch 'Plasma/5.18'.

[kcm] Handle empty shortcut in property fetch

Summary:
.first() wasn't guarded with a check of
the list size.
FIXED-IN: 5.18.0

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26772

M  +5    -1    kscreensaversettings.cpp

https://commits.kde.org/kscreenlocker/5140150ef80c72ea9ab0c3b5fc31b474b2a8ea6a