Bug 463428

Summary: Crash in TaskManager::WaylandStartupTasksModel::Private::loadConfig() after reloading wayland tasksmodel from config change
Product: [Plasma] plasmashell Reporter: Mariusz Libera <mariusz.libera>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: akselmo, kde, nate, nicolas.fella
Priority: NOR Keywords: wayland
Version: 5.26.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace
backtrace

Description Mariusz Libera 2022-12-24 13:19:56 UTC
Created attachment 154799 [details]
backtrace

Operating System: Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 19.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 81BF
System Version: Lenovo ideapad 520-15IKB
Comment 1 Mariusz Libera 2022-12-24 13:25:13 UTC
Created attachment 154800 [details]
backtrace

Another crash while using xdg portal file picker to add an attachement to this bug report.
Comment 2 Nicolas Fella 2022-12-30 00:47:18 UTC
#0  0x00007f53755140bf in __GI___poll (fds=0x7f5368015890, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f537436dbef in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f5368015890, timeout=<optimized out>, context=0x7f5368001cf0) at ../glib/glib/gmain.c:4553
#2  g_main_context_iterate.constprop.0 (context=0x7f5368001cf0, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4243
#3  0x00007f5374315132 in g_main_context_iteration (context=0x7f5368001cf0, may_block=1) at ../glib/glib/gmain.c:4313
#4  0x00007f5375cd7c6f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f5368000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5375c8573c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f53707fea90, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007f5375ae721f in QThread::exec() (this=this@entry=0x7f537749d560 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f5377441cba in QDBusConnectionManager::run() (this=0x7f537749d560 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusconnection.cpp:179
#8  0x00007f5375ae42ea in QThreadPrivate::start(void*) (arg=0x7f537749d560 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:330
#9  0x00007f537549f8fd in start_thread (arg=<optimized out>) at pthread_create.c:442
#10 0x00007f5375521a60 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
#0  __GI___pthread_sigmask (how=1, newmask=<optimized out>, oldmask=0x0) at pthread_sigmask.c:43
#1  0x00007f5375451bfd in __GI___sigprocmask (how=<optimized out>, set=<optimized out>, oset=<optimized out>) at ../sysdeps/unix/sysv/linux/sigprocmask.c:25
#2  0x00007f5377d521eb in KCrash::setCrashHandler(void (*)(int)) (handler=handler@entry=0x0) at /usr/src/debug/kcrash/kcrash-5.101.0/src/kcrash.cpp:415
#3  0x00007f5377d5485f in KCrash::defaultCrashHandler(int) (sig=6) at /usr/src/debug/kcrash/kcrash-5.101.0/src/kcrash.cpp:632
#4  0x00007f5375451a00 in <signal handler called> () at /usr/lib/libc.so.6
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007f53754a16b3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#7  0x00007f5375451958 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f537543b53d in __GI_abort () at abort.c:79
#9  0x00007f53754957ee in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f53755b444b "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#10 0x00007f53754ab3dc in malloc_printerr (str=str@entry=0x7f53755b7088 "free(): invalid next size (fast)") at malloc.c:5660
#11 0x00007f53754ad30a in _int_free (av=0x7f53755f1ba0 <main_arena>, p=0x564aacc66da0, have_lock=have_lock@entry=0) at malloc.c:4518
#12 0x00007f53754afba3 in __GI___libc_free (mem=<optimized out>) at malloc.c:3385
#13 0x00007f5375c601e4 in QTypedArrayData<int>::deallocate(QArrayData*) (data=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:237
#14 QVector<int>::freeData(QTypedArrayData<int>*) (x=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:579
#15 QVector<int>::~QVector() (this=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:73
#16 QSortFilterProxyModelPrivate::Mapping::~Mapping() (this=0x564aacbe4670, this=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:277
#17 qDeleteAll<QHash<QModelIndex, QSortFilterProxyModelPrivate::Mapping*>::const_iterator>(QHash<QModelIndex, QSortFilterProxyModelPrivate::Mapping*>::const_iterator, QHash<QModelIndex, QSortFilterProxyModelPrivate::Mapping*>::const_iterator) (end=..., begin=...) at ../../include/QtCore/../../src/corelib/tools/qalgorithms.h:320
#18 qDeleteAll<QHash<QModelIndex, QSortFilterProxyModelPrivate::Mapping*> >(QHash<QModelIndex, QSortFilterProxyModelPrivate::Mapping*> const&) (c=...) at ../../include/QtCore/../../src/corelib/tools/qalgorithms.h:328
#19 QSortFilterProxyModelPrivate::_q_clearMapping() (this=0x564aab84f560) at itemmodels/qsortfilterproxymodel.cpp:483
#20 0x00007f5375c6ebf4 in QSortFilterProxyModelPrivate::_q_sourceReset() (this=0x564aab84f560) at itemmodels/qsortfilterproxymodel.cpp:1605
#21 QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qsortfilterproxymodel.cpp:278
#22 0x00007f5375cbdc00 in doActivate<false>(QObject*, int, void**) (sender=0x564aab84f0f0, signal_index=21, argv=0x7ffe6dd94db0) at kernel/qobject.cpp:3931
#23 0x00007f5375c47312 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qabstractitemmodel.cpp:648
#24 0x00007f5375cbda51 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe6dd94ec0, r=<optimized out>, this=0x564aab84f270, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#25 doActivate<false>(QObject*, int, void**) (sender=0x564aab84eb80, signal_index=21, argv=0x7ffe6dd94ec0) at kernel/qobject.cpp:3919
#26 0x00007f5375c47312 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qabstractitemmodel.cpp:648
#27 0x00007f5375c6ebfd in QSortFilterProxyModelPrivate::_q_sourceReset() (this=0x564aab8590d0) at itemmodels/qsortfilterproxymodel.cpp:1607
#28 QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qsortfilterproxymodel.cpp:278
#29 0x00007f5375cbdc00 in doActivate<false>(QObject*, int, void**) (sender=0x564aab84ea00, signal_index=21, argv=0x7ffe6dd950a0) at kernel/qobject.cpp:3931
#30 0x00007f5375c47312 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qabstractitemmodel.cpp:648
#31 0x00007f5375cbdc00 in doActivate<false>(QObject*, int, void**) (sender=0x564aaaa096d0, signal_index=21, argv=0x7ffe6dd951b0) at kernel/qobject.cpp:3931
#32 0x00007f5375c47312 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qabstractitemmodel.cpp:648
#33 0x00007f5375cbdc00 in doActivate<false>(QObject*, int, void**) (sender=0x564aaaa09870, signal_index=21, argv=0x7ffe6dd952c0) at kernel/qobject.cpp:3931
#34 0x00007f5375c47312 in QAbstractItemModel::modelReset(QAbstractItemModel::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qabstractitemmodel.cpp:648
#35 0x00007f5375c47392 in QAbstractItemModel::endResetModel() (this=<optimized out>) at itemmodels/qabstractitemmodel.cpp:3302
#36 0x00007f535ffcc2b5 in TaskManager::WaylandStartupTasksModel::Private::loadConfig() (this=0x564aaaa09420) at /usr/src/debug/plasma-workspace/plasma-workspace-5.26.4.1/libtaskmanager/waylandstartuptasksmodel.cpp:77
#37 0x00007f5375cbda51 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe6dd95460, r=<optimized out>, this=0x564aaaa09850, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#38 doActivate<false>(QObject*, int, void**) (sender=0x564aaaa08c00, signal_index=3, argv=0x7ffe6dd95460) at kernel/qobject.cpp:3919
#39 0x00007f53775b94ec in KConfigWatcher::configChanged(KConfigGroup const&, QList<QByteArray> const&) (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /usr/src/debug/kconfig/build/src/core/KF5ConfigCore_autogen/EWIEGA46WW/moc_kconfigwatcher.cpp:147
#40 0x00007f53775e827d in KConfigWatcher::onConfigChangeNotification(QHash<QString, QList<QByteArray> > const&) (this=0x564aaaa08c00, changes=...) at /usr/src/debug/kconfig/kconfig-5.101.0/src/core/kconfigwatcher.cpp:102
#41 0x00007f53775c4793 in KConfigWatcher::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_a=0x7ffe6dd95610, _id=1, _c=QMetaObject::InvokeMetaMethod, _o=0x564aaaa08c00) at /usr/src/debug/kconfig/build/src/core/KF5ConfigCore_autogen/EWIEGA46WW/moc_kconfigwatcher.cpp:88
#42 KConfigWatcher::qt_metacall(QMetaObject::Call, int, void**) (this=0x564aaaa08c00, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7ffe6dd95610) at /usr/src/debug/kconfig/build/src/core/KF5ConfigCore_autogen/EWIEGA46WW/moc_kconfigwatcher.cpp:133
#43 0x00007f537747f45f in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) [clone .constprop.0] (this=<optimized out>, object=<optimized out>, msg=<optimized out>, metaTypes=<optimized out>, slotIdx=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/dbus/qdbusintegrator.cpp:1001
#44 0x00007f5375cb0be0 in QObject::event(QEvent*) (this=0x564aaaa08c00, e=0x7f5368028350) at kernel/qobject.cpp:1347
#45 0x00007f5376978b1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x564aaaa08c00, e=0x7f5368028350) at kernel/qapplication.cpp:3637
#46 0x00007f5375c8cf98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x564aaaa08c00, event=0x7f5368028350) at kernel/qcoreapplication.cpp:1064
#47 0x00007f5375c8daa3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x564aa955ded0) at kernel/qcoreapplication.cpp:1821
#48 0x00007f5375cd3e68 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x564aa958bb50) at kernel/qeventdispatcher_glib.cpp:277
#49 0x00007f537431687b in g_main_dispatch (context=0x7f5368005010) at ../glib/glib/gmain.c:3454
#50 g_main_context_dispatch (context=0x7f5368005010) at ../glib/glib/gmain.c:4172
#51 0x00007f537436dc89 in g_main_context_iterate.constprop.0 (context=0x7f5368005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#52 0x00007f5374315132 in g_main_context_iteration (context=0x7f5368005010, may_block=1) at ../glib/glib/gmain.c:4313
#53 0x00007f5375cd7c4c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x564aa952fc10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#54 0x00007f5375c8573c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffe6dd95ae0, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#55 0x00007f5375c90269 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#56 0x00007f537613a102 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#57 0x00007f5376976f2a in QApplication::exec() () at kernel/qapplication.cpp:2829
#58 0x0000564aa94701ef in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/plasma-workspace/plasma-workspace-5.26.4.1/shell/main.cpp:233
Comment 3 David Edmundson 2023-01-03 09:44:14 UTC
*** Bug 463287 has been marked as a duplicate of this bug. ***
Comment 4 Akseli Lahtinen 2024-05-30 11:03:32 UTC
Has this crash occured anymore in Plasma 6?
Comment 5 Mariusz Libera 2024-05-30 11:27:31 UTC
(In reply to Akseli Lahtinen from comment #4)
> Has this crash occured anymore in Plasma 6?

No.