Bug 446969

Summary: Kwin crashed inKWin::Scripting::queryScriptsToLoad() on bootup
Product: [Plasma] kwin Reporter: Pascalio <pascalio>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: contact, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.23.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Pascalio 2021-12-14 11:22:07 UTC
Application: kwin_x11 (5.23.4)

Qt Version: 5.15.3
Frameworks Version: 5.89.0
Operating System: Linux 5.11.0-41-generic x86_64
Windowing System: X11
Distribution: KDE neon User - Plasma 25th Anniversary Edition
DrKonqi: 5.23.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Just regular boot process, logged into user account. (Maybe special settings: GPG wallet, Desktop effet: darken background when admin dialog pop-up)
Hope that helps...

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault

[New LWP 1409]
[New LWP 1410]
[New LWP 1411]
[New LWP 1412]
[New LWP 1419]
[New LWP 1439]
[New LWP 1444]
[New LWP 1455]
[New LWP 1456]
[New LWP 1457]
[New LWP 1458]
[New LWP 1470]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f2f2620caff in __GI___poll (fds=0x7fff0f351f78, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f2f204b9080 (LWP 1390))]

Thread 13 (Thread 0x7f2ee37fe700 (LWP 1470)):
#0  0x00007f2f2620cbf6 in __ppoll (fds=fds@entry=0x7f2ed8000d98, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007f2f27047519 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f2ed8000d98) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f2ed8000d98) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f2ed8000d98, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f2f27048bc3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f2f26fef8ab in QEventLoop::exec (this=this@entry=0x7f2ee37fdbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f2f26e092c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f2f26e0a45c in QThreadPrivate::start (arg=0x55fa7edc7610) at thread/qthread_unix.cpp:329
#9  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f2ee3fff700 (LWP 1458)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7ed79948) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7ed798f8, cond=0x55fa7ed79920) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7ed79920, mutex=0x55fa7ed798f8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f2ef8e4d700 (LWP 1457)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7ed79948) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7ed798f8, cond=0x55fa7ed79920) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7ed79920, mutex=0x55fa7ed798f8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f2ef964e700 (LWP 1456)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7ed79948) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7ed798f8, cond=0x55fa7ed79920) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7ed79920, mutex=0x55fa7ed798f8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f2ef9e4f700 (LWP 1455)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7ed79948) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7ed798f8, cond=0x55fa7ed79920) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7ed79920, mutex=0x55fa7ed798f8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f2efa7bd700 (LWP 1444)):
#0  0x00007f2f2620cbf6 in __ppoll (fds=fds@entry=0x55fa7ed7c8f8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007f2f27047519 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x55fa7ed7c8f8) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x55fa7ed7c8f8) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x55fa7ed7c8f8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f2f27048bc3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f2f26fef8ab in QEventLoop::exec (this=this@entry=0x7f2efa7bcbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f2f26e092c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f2f26e0a45c in QThreadPrivate::start (arg=0x55fa7ec2f840) at thread/qthread_unix.cpp:329
#9  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f2efb7fe700 (LWP 1439)):
#0  0x00007f2f2620cbf6 in __ppoll (fds=fds@entry=0x7f2eec000d78, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007f2f27047519 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f2eec000d78) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f2eec000d78) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f2eec000d78, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f2f27048bc3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f2f26fef8ab in QEventLoop::exec (this=this@entry=0x7f2efb7fdbc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f2f26e092c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f2f24eb1549 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f2f26e0a45c in QThreadPrivate::start (arg=0x55fa7e840ae0) at thread/qthread_unix.cpp:329
#10 0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f2f11847700 (LWP 1419)):
#0  0x00007f2f2620cbf6 in __ppoll (fds=fds@entry=0x7f2f000074f8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:44
#1  0x00007f2f27047519 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f2f000074f8) at kernel/qcore_unix.cpp:132
#3  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f2f000074f8) at kernel/qcore_unix.cpp:129
#4  qt_safe_poll (fds=0x7f2f000074f8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:155
#5  0x00007f2f27048bc3 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:211
#6  0x00007f2f26fef8ab in QEventLoop::exec (this=this@entry=0x7f2f11846bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007f2f26e092c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007f2f26cb6f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f2f26e0a45c in QThreadPrivate::start (arg=0x7f2f26d3ad80) at thread/qthread_unix.cpp:329
#10 0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f2f12048700 (LWP 1412)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7eaf6c08) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7eaf6bb8, cond=0x55fa7eaf6be0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7eaf6be0, mutex=0x55fa7eaf6bb8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f2f12849700 (LWP 1411)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7eaf6c08) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7eaf6bb8, cond=0x55fa7eaf6be0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7eaf6be0, mutex=0x55fa7eaf6bb8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f2f1ca03700 (LWP 1410)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7eaf6c08) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7eaf6bb8, cond=0x55fa7eaf6be0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7eaf6be0, mutex=0x55fa7eaf6bb8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f2f1d204700 (LWP 1409)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fa7eaf6c08) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55fa7eaf6bb8, cond=0x55fa7eaf6be0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55fa7eaf6be0, mutex=0x55fa7eaf6bb8) at pthread_cond_wait.c:638
#3  0x00007f2f1d6bce7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f2f1d6bca7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f2f2486f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f2f26219293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f2f204b9080 (LWP 1390)):
[KCrash Handler]
#4  QHashNode<QString, QList<KPluginMetaData> >::same_key (key0=..., h0=1573973172, this=0x7000200070007) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:156
#5  QHash<QString, QList<KPluginMetaData> >::findNode (this=this@entry=0x55fa7e8cd9c8, akey=..., h=h@entry=1573973172) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:931
#6  0x00007f2f24ad2b3a in QHash<QString, QList<KPluginMetaData> >::insert (avalue=..., akey=..., this=0x55fa7e8cd9c8) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:105
#7  KPackage::PackageLoader::listPackages (this=0x7f2f000077a0, packageFormat=..., packageRoot=...) at ./src/kpackage/packageloader.cpp:230
#8  0x00007f2f27c94b16 in KWin::Scripting::queryScriptsToLoad (this=this@entry=0x7f2f18005dd0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:967
#9  0x00007f2f27c9563d in KWin::Scripting::start (this=0x7f2f18005dd0) at ./src/scripting/scripting.cpp:682
#10 0x00007f2f27027dce in QtPrivate::QSlotObjectBase::call (a=0x7fff0f353680, r=0x7f2f18005dd0, this=0x55fa7ed049f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x55fa7ebb1830, signal_index=3, argv=0x7fff0f353680) at kernel/qobject.cpp:3886
#12 0x00007f2f2701e949 in QObject::event (this=0x55fa7ebb1830, e=0x55fa7ecab290) at kernel/qobject.cpp:1314
#13 0x00007f2f26641dc3 in QApplicationPrivate::notify_helper (this=this@entry=0x55fa7e81c7d0, receiver=receiver@entry=0x55fa7ebb1830, e=e@entry=0x55fa7ecab290) at kernel/qapplication.cpp:3632
#14 0x00007f2f2664abb8 in QApplication::notify (this=0x7fff0f353c80, receiver=0x55fa7ebb1830, e=0x55fa7ecab290) at kernel/qapplication.cpp:3156
#15 0x00007f2f26ff0daa in QCoreApplication::notifyInternal2 (receiver=0x55fa7ebb1830, event=0x55fa7ecab290) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#16 0x00007f2f26ff36b1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55fa7e7f73f0) at kernel/qcoreapplication.cpp:1821
#17 0x00007f2f2704899e in QEventDispatcherUNIX::processEvents (this=0x55fa7e8e02d0, flags=...) at kernel/qeventdispatcher_unix.cpp:468
#18 0x00007f2f20093262 in QXcbUnixEventDispatcher::processEvents (this=0x55fa7e8e02d0, flags=...) at qxcbeventdispatcher.cpp:60
#19 0x00007f2f26fef8ab in QEventLoop::exec (this=this@entry=0x7fff0f353b90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#20 0x00007f2f26ff7a64 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#21 0x000055fa7d47dae3 in main (argc=<optimized out>, argv=0x7fff0f353e38) at ./src/main_x11.cpp:483
[Inferior 1 (process 1390) detached]

Possible duplicates by query: bug 410129, bug 325673, bug 322830, bug 322552, bug 322535.

Reported using DrKonqi
Comment 1 Nate Graham 2021-12-14 20:46:36 UTC
#7  KPackage::PackageLoader::listPackages (this=0x7f2f000077a0, packageFormat=..., packageRoot=...) at ./src/kpackage/packageloader.cpp:230
#8  0x00007f2f27c94b16 in KWin::Scripting::queryScriptsToLoad (this=this@entry=0x7f2f18005dd0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:967
#9  0x00007f2f27c9563d in KWin::Scripting::start (this=0x7f2f18005dd0) at ./src/scripting/scripting.cpp:682

Issue is in KPackage, or how KWin is using it.
Comment 2 David Edmundson 2023-09-06 10:38:23 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.