Bug 416961 - kde5 crashed immediately after login to Wayland session
Summary: kde5 crashed immediately after login to Wayland session
Status: RESOLVED DUPLICATE of bug 416566
Alias: None
Product: KScreen
Classification: Plasma
Component: kded (show other bugs)
Version: git
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-30 19:00 UTC by Patrick Silva
Modified: 2020-02-13 22:00 UTC (History)
2 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 Patrick Silva 2020-01-30 19:00:42 UTC
SUMMARY
Plasma shown a notification about kded5 crash immediately after I start Wayland session. Apparently it's a random crash, sometimes it also occurs on Arch Linux running Plasma 5.18 beta.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2

Application: kded5 (kded5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5f2261e800 (LWP 1001))]

Thread 6 (Thread 0x7f5ee80b7700 (LWP 1045)):
#0  0x00007f5f1f4a99f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56302a88de98) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x56302a88de48, cond=0x56302a88de70) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x56302a88de70, mutex=0x56302a88de48) at pthread_cond_wait.c:655
#3  0x00007f5ee9754c3b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f5ee9754837 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f5f1f4a36db in start_thread (arg=0x7f5ee80b7700) at pthread_create.c:463
#6  0x00007f5f1f7dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f5f02411700 (LWP 1011)):
#0  0x00007f5f1f7cfbf9 in __GI___poll (fds=0x7f5efc01b2c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5f1c3505c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5f1c350962 in g_main_loop_run () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5f0d15e0e6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f5f1c378195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5f1f4a36db in start_thread (arg=0x7f5f02411700) at pthread_create.c:463
#6  0x00007f5f1f7dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f5f02c12700 (LWP 1010)):
#0  0x00007f5f1f7cfbf9 in __GI___poll (fds=0x7f5efc006cc0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5f1c3505c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5f1c3506dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5f1c350721 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5f1c378195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5f1f4a36db in start_thread (arg=0x7f5f02c12700) at pthread_create.c:463
#6  0x00007f5f1f7dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f5f03413700 (LWP 1009)):
#0  0x00007f5f1f7cfbf9 in __GI___poll (fds=0x56302a6a2120, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5f1c3505c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5f1c3506dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5f0341b36d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f5f1c378195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5f1f4a36db in start_thread (arg=0x7f5f03413700) at pthread_create.c:463
#6  0x00007f5f1f7dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f5f0f565700 (LWP 1004)):
#0  0x00007f5f1f7cfbf9 in __GI___poll (fds=0x7f5f08003ce0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f5f1c3505c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5f1c3506dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5f20122acb in QEventDispatcherGlib::processEvents (this=0x7f5f08000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5f200c2f9a in QEventLoop::exec (this=this@entry=0x7f5f0f564d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f5f1fede3aa in QThread::exec (this=this@entry=0x7f5f20ab0d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#6  0x00007f5f208390e5 in QDBusConnectionManager::run (this=0x7f5f20ab0d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#7  0x00007f5f1fedfb52 in QThreadPrivate::start (arg=0x7f5f20ab0d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:360
#8  0x00007f5f1f4a36db in start_thread (arg=0x7f5f0f565700) at pthread_create.c:463
#9  0x00007f5f1f7dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f5f2261e800 (LWP 1001)):
[KCrash Handler]
#7  KWayland::Client::OutputManagement::createConfiguration (this=0x0, parent=<optimized out>) at ./src/client/outputmanagement.cpp:96
#8  0x00007f5f00ecc4bf in KScreen::WaylandConfig::applyConfig (this=0x56302a560990, newConfig=...) at ./backends/kwayland/waylandconfig.cpp:330
#9  0x00007f5f0655216d in KScreen::SetConfigOperation::start (this=0x56302a630960) at ./src/setconfigoperation.cpp:129
#10 0x00007f5f200f6362 in QObject::event (this=0x56302a630960, e=<optimized out>) at kernel/qobject.cpp:1260
#11 0x00007f5f21d20eac in QApplicationPrivate::notify_helper (this=this@entry=0x56302a4db4e0, receiver=receiver@entry=0x56302a630960, e=e@entry=0x56302a8dbc10) at kernel/qapplication.cpp:3703
#12 0x00007f5f21d284b0 in QApplication::notify (this=0x7ffe4de3a950, receiver=0x56302a630960, e=0x56302a8dbc10) at kernel/qapplication.cpp:3449
#13 0x00007f5f200c4e38 in QCoreApplication::notifyInternal2 (receiver=0x56302a630960, event=0x56302a8dbc10) at kernel/qcoreapplication.cpp:1095
#14 0x00007f5f200c500e in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x56302a8dbc10) at kernel/qcoreapplication.cpp:1490
#15 0x00007f5f200c7757 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x56302a4db660) at kernel/qcoreapplication.cpp:1840
#16 0x00007f5f200c7ce8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1694
#17 0x00007f5f20123493 in postEventSourceDispatch (s=0x56302a5049e0) at kernel/qeventdispatcher_glib.cpp:277
#18 0x00007f5f1c350417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f5f1c350650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f5f1c3506dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f5f20122aaf in QEventDispatcherGlib::processEvents (this=0x56302a5196e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#22 0x00007f5f200c2f9a in QEventLoop::exec (this=this@entry=0x7ffe4de3a8a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#23 0x00007f5f200cc310 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403
#24 0x000056302974b2f4 in main (argc=<optimized out>, argv=<optimized out>) at ./src/kded.cpp:804
Comment 1 Roman Gilg 2020-02-13 16:53:19 UTC
Still a problem after release?
Comment 2 Patrick Silva 2020-02-13 16:57:12 UTC
Today it crashed again.

$ coredumpctl|grep kded
Thu 2020-02-13 13:03:38 -03     753  1003  1003  11 present   /usr/bin/kded5


Operating System: Arch Linux 
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Comment 3 Roman Gilg 2020-02-13 17:34:07 UTC
Ok, similar backtrace?
Comment 4 Roman Gilg 2020-02-13 17:38:10 UTC
m_outputManagement is not yet set when this crash happens. Should not be happening in theory because applyConfig should only be called after it got set.

Sometimes it's called before that apparently.
Comment 5 Patrick Silva 2020-02-13 18:06:30 UTC
Here is a new backtrace.

Application: kded5 (kded5), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f31bc3c7080 (LWP 776))]

Thread 6 (Thread 0x7f31a37fe700 (LWP 1022)):
#0  0x00007f31bf38e9ef in poll () at /usr/lib/libc.so.6
#1  0x00007f31be521120 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f31be5211f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f31bf94803c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f31bf8ee4cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f31bf712e52 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f31bf713fc6 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f31bf2814cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f31bf3992d3 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f31b25ed700 (LWP 968)):
#0  0x00007f31bf38a42c in read () at /usr/lib/libc.so.6
#1  0x00007f31be4d19f0 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f31be51f9e1 in g_main_context_check () at /usr/lib/libglib-2.0.so.0
#3  0x00007f31be5210c8 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f31be5220c3 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#5  0x00007f31b8943bc8 in  () at /usr/lib/libgio-2.0.so.0
#6  0x00007f31be4fdbb1 in  () at /usr/lib/libglib-2.0.so.0
#7  0x00007f31bf2814cf in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f31bf3992d3 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f31b2dee700 (LWP 967)):
#0  0x00007f31be520ff4 in  () at /usr/lib/libglib-2.0.so.0
#1  0x00007f31be5211f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#2  0x00007f31b8aa4e5e in  () at /usr/lib/gio/modules/libdconfsettings.so
#3  0x00007f31be4fdbb1 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f31bf2814cf in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f31bf3992d3 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f31b35ef700 (LWP 966)):
#0  0x00007f31bf38e9ef in poll () at /usr/lib/libc.so.6
#1  0x00007f31be521120 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f31be5211f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f31be521242 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007f31be4fdbb1 in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007f31bf2814cf in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f31bf3992d3 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f31b9867700 (LWP 779)):
#0  0x00007f31bf38e9ef in poll () at /usr/lib/libc.so.6
#1  0x00007f31be521120 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f31be5211f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f31bf94803c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f31bf8ee4cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f31bf712e52 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f31bfc42b28 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007f31bf713fc6 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f31bf2814cf in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f31bf3992d3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f31bc3c7080 (LWP 776)):
[KCrash Handler]
#6  0x00007f31bbac5901 in KWayland::Client::OutputManagement::createConfiguration(QObject*) () at /usr/lib/libKF5WaylandClient.so.5
#7  0x00007f31b19766a0 in  () at /usr/lib/qt/plugins/kf5/kscreen/KSC_KWayland.so
#8  0x00007f31b8654972 in KScreen::SetConfigOperation::start() () at /usr/lib/libKF5Screen.so.7
#9  0x00007f31bf91d26a in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#10 0x00007f31c0613362 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f31c061c819 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f31bf8ef962 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f31bf8f21c6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f31bf9489d4 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007f31be51f39e in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#16 0x00007f31be5211b1 in  () at /usr/lib/libglib-2.0.so.0
#17 0x00007f31be5211f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#18 0x00007f31bf948020 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007f31bf8ee4cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#20 0x00007f31bf8f64d6 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#21 0x000055dd4bead6ad in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kded-5.67.0/src/kded.cpp:804
[Inferior 1 (process 776) detached]
Comment 6 Roman Gilg 2020-02-13 22:00:06 UTC

*** This bug has been marked as a duplicate of bug 416566 ***