Bug 417864

Summary: Crashed when unplugging power/hdmi/usb on Wayland
Product: [Plasma] KScreen Reporter: Pascal d'Hermilly <pascal>
Component: kcmAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: dvratil, kde, nate
Priority: NOR Keywords: drkonqi
Version: 5.18.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pascal d'Hermilly 2020-02-19 09:39:17 UTC
Application: systemsettings5 (5.18.0)

Qt Version: 5.13.2
Frameworks Version: 5.67.0
Operating System: Linux 5.3.0-40-generic x86_64
Windowing system: Wayland
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
- What I was doing when the application crashed:
I unplugged the power/hdmi/usb cable at the same time.
KDED and and the power-manager died at the same time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6411926800 (LWP 7501))]

Thread 7 (Thread 0x7f63d3de5700 (LWP 7516)):
#0  0x00007f640ce6dbf9 in __GI___poll (fds=0x7f63cc004db0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f640651c5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f640651c6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f640d7c0acb in QEventDispatcherGlib::processEvents (this=0x7f63cc000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f640d760f9a in QEventLoop::exec (this=this@entry=0x7f63d3de4da0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f640d57c3aa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007f640d57db52 in QThreadPrivate::start (arg=0x560bd4d96bd0) at thread/qthread_unix.cpp:360
#7  0x00007f64088db6db in start_thread (arg=0x7f63d3de5700) at pthread_create.c:463
#8  0x00007f640ce7a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f63d981f700 (LWP 7514)):
#0  0x00007f640ce690b4 in __GI___libc_read (fd=27, buf=0x7f63d981eb70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f64065612d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f640651c0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f640651c570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f640651c6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f640d7c0acb in QEventDispatcherGlib::processEvents (this=0x7f63d4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f640d760f9a in QEventLoop::exec (this=this@entry=0x7f63d981ed80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f640d57c3aa in QThread::exec (this=this@entry=0x560bcf332230) at thread/qthread.cpp:531
#8  0x00007f640b101815 in QQmlThreadPrivate::run (this=0x560bcf332230) at qml/ftw/qqmlthread.cpp:152
#9  0x00007f640d57db52 in QThreadPrivate::start (arg=0x560bcf332230) at thread/qthread_unix.cpp:360
#10 0x00007f64088db6db in start_thread (arg=0x7f63d981f700) at pthread_create.c:463
#11 0x00007f640ce7a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f63ea42e700 (LWP 7511)):
#0  0x00007f640ce690b4 in __GI___libc_read (fd=17, buf=0x7f63ea42db70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f64065612d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f640651c0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f640651c570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f640651c6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f640d7c0acb in QEventDispatcherGlib::processEvents (this=0x7f63e0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f640d760f9a in QEventLoop::exec (this=this@entry=0x7f63ea42dd80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f640d57c3aa in QThread::exec (this=this@entry=0x560bc9723e50) at thread/qthread.cpp:531
#8  0x00007f640b101815 in QQmlThreadPrivate::run (this=0x560bc9723e50) at qml/ftw/qqmlthread.cpp:152
#9  0x00007f640d57db52 in QThreadPrivate::start (arg=0x560bc9723e50) at thread/qthread_unix.cpp:360
#10 0x00007f64088db6db in start_thread (arg=0x7f63ea42e700) at pthread_create.c:463
#11 0x00007f640ce7a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f63f2ca1700 (LWP 7509)):
#0  0x00007f640ce690b4 in __GI___libc_read (fd=20, buf=0x7f63f2ca0b70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f64065612d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f640651c0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f640651c570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f640651c6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f640d7c0acb in QEventDispatcherGlib::processEvents (this=0x7f63e4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f640d760f9a in QEventLoop::exec (this=this@entry=0x7f63f2ca0d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f640d57c3aa in QThread::exec (this=this@entry=0x560bc94d6d80) at thread/qthread.cpp:531
#8  0x00007f640b101815 in QQmlThreadPrivate::run (this=0x560bc94d6d80) at qml/ftw/qqmlthread.cpp:152
#9  0x00007f640d57db52 in QThreadPrivate::start (arg=0x560bc94d6d80) at thread/qthread_unix.cpp:360
#10 0x00007f64088db6db in start_thread (arg=0x7f63f2ca1700) at pthread_create.c:463
#11 0x00007f640ce7a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f63f42c6700 (LWP 7508)):
#0  0x00007f64088e19f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x560bc91ae5bc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x560bc91ae568, cond=0x560bc91ae590) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x560bc91ae590, mutex=0x560bc91ae568) at pthread_cond_wait.c:655
#3  0x00007f63f5963ebb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f63f5963ab7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f64088db6db in start_thread (arg=0x7f63f42c6700) at pthread_create.c:463
#6  0x00007f640ce7a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f63fd4fa700 (LWP 7507)):
#0  0x00007f640652bf70 in g_poll () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f640651c5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f640651c6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f640d7c0acb in QEventDispatcherGlib::processEvents (this=0x7f63f8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f640d760f9a in QEventLoop::exec (this=this@entry=0x7f63fd4f9d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f640d57c3aa in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007f640dc370e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f640d57db52 in QThreadPrivate::start (arg=0x7f640deaed80) at thread/qthread_unix.cpp:360
#8  0x00007f64088db6db in start_thread (arg=0x7f63fd4fa700) at pthread_create.c:463
#9  0x00007f640ce7a88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f6411926800 (LWP 7501)):
[KCrash Handler]
#6  0x00007f63ffd89564 in KWayland::Client::OutputDevice::enabled (this=0x560bc9a8fd30) at ./src/client/outputdevice.cpp:535
#7  0x00007f63d3df5566 in KScreen::WaylandOutput::updateKScreenOutput (this=this@entry=0x560bd9240f00, output=...) at ./backends/kwayland/waylandoutput.cpp:102
#8  0x00007f63d3df67fc in KScreen::WaylandOutput::toKScreenOutput (this=0x560bd9240f00) at ./backends/kwayland/waylandoutput.cpp:94
#9  0x00007f63d3dede0e in KScreen::WaylandConfig::currentConfig (this=0x560bd91bbfe0) at ./backends/kwayland/waylandconfig.cpp:294
#10 0x00007f63d3debcb3 in KScreen::WaylandBackend::<lambda()>::operator() (__closure=<optimized out>) at ./backends/kwayland/waylandbackend.cpp:45
#11 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KScreen::WaylandBackend::WaylandBackend()::<lambda()> >::call (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#12 QtPrivate::Functor<KScreen::WaylandBackend::WaylandBackend()::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#13 QtPrivate::QFunctorSlotObject<KScreen::WaylandBackend::WaylandBackend()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:439
#14 0x00007f640d79391f in QtPrivate::QSlotObjectBase::call (a=0x7fff51f2c8c0, r=0x560bd926d010, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#15 QMetaObject::activate (sender=sender@entry=0x560bd91bbfe0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=<optimized out>, argv@entry=0x0) at kernel/qobject.cpp:3789
#16 0x00007f640d793ec7 in QMetaObject::activate (sender=sender@entry=0x560bd91bbfe0, m=m@entry=0x7f63d3ffec80 <KScreen::WaylandConfig::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3660
#17 0x00007f63d3dfb050 in KScreen::WaylandConfig::configChanged (this=this@entry=0x560bd91bbfe0) at ./obj-x86_64-linux-gnu/backends/kwayland/KSC_KWayland_autogen/EWIEGA46WW/moc_waylandconfig.cpp:143
#18 0x00007f63d3df208c in KScreen::WaylandConfig::removeOutput (this=0x560bd91bbfe0, output=<optimized out>) at ./backends/kwayland/waylandconfig.cpp:253
#19 0x00007f640d79391f in QtPrivate::QSlotObjectBase::call (a=0x7fff51f2ca20, r=0x560bd91bbfe0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#20 QMetaObject::activate (sender=0x560bd9240f00, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3789
#21 0x00007f640d79391f in QtPrivate::QSlotObjectBase::call (a=0x7fff51f2cb20, r=0x560bd9240f00, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#22 QMetaObject::activate (sender=0x560bd91c82a0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3789
#23 0x00007f640d79391f in QtPrivate::QSlotObjectBase::call (a=0x7fff51f2cc80, r=0x560bd91c82a0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#24 QMetaObject::activate (sender=0x560bd9138a00, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=77, argv=<optimized out>, argv@entry=0x7fff51f2cc80) at kernel/qobject.cpp:3789
#25 0x00007f640d793ec7 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f6400003360 <KWayland::Client::Registry::staticMetaObject>, local_signal_index=local_signal_index@entry=77, argv=argv@entry=0x7fff51f2cc80) at kernel/qobject.cpp:3660
#26 0x00007f63ffdbff81 in KWayland::Client::Registry::interfaceRemoved (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/src/client/KF5WaylandClient_autogen/EWIEGA46WW/moc_registry.cpp:1597
#27 0x00007f6400c1bdae in ffi_call_unix64 () at ../src/x86/unix64.S:76
#28 0x00007f6400c1b71f in ffi_call (cif=<optimized out>, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>) at ../src/x86/ffi64.c:525
#29 0x00007f64012aae24 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#30 0x00007f64012a7659 in ?? () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#31 0x00007f64012a8b24 in wl_display_dispatch_queue_pending () from /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
#32 0x00007f63ffd83731 in KWayland::Client::EventQueue::dispatch (this=0x560bd4deac60) at ./src/client/event_queue.cpp:96
#33 0x00007f640d794362 in QObject::event (this=0x560bd4deac60, e=<optimized out>) at kernel/qobject.cpp:1260
#34 0x00007f640e7f6eac in QApplicationPrivate::notify_helper (this=this@entry=0x560bc9148000, receiver=receiver@entry=0x560bd4deac60, e=e@entry=0x7f63cc009b10) at kernel/qapplication.cpp:3703
#35 0x00007f640e7fe4b0 in QApplication::notify (this=0x7fff51f2d6d0, receiver=0x560bd4deac60, e=0x7f63cc009b10) at kernel/qapplication.cpp:3449
#36 0x00007f640d762e38 in QCoreApplication::notifyInternal2 (receiver=0x560bd4deac60, event=0x7f63cc009b10) at kernel/qcoreapplication.cpp:1095
#37 0x00007f640d76300e in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x7f63cc009b10) at kernel/qcoreapplication.cpp:1490
#38 0x00007f640d765757 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x560bc913efa0) at kernel/qcoreapplication.cpp:1840
#39 0x00007f640d765ce8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1694
#40 0x00007f640d7c1493 in postEventSourceDispatch (s=0x560bc916d1a0) at kernel/qeventdispatcher_glib.cpp:277
#41 0x00007f640651c417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f640651c650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f640651c6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f640d7c0aaf in QEventDispatcherGlib::processEvents (this=0x560bc91bf9c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#45 0x00007f640d760f9a in QEventLoop::exec (this=this@entry=0x7fff51f2d5f0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#46 0x00007f640d76a310 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403
#47 0x0000560bc71c72c0 in ?? ()
#48 0x00007f640cd7ab97 in __libc_start_main (main=0x560bc71c6ee0, argc=1, argv=0x7fff51f2d818, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff51f2d808) at ../csu/libc-start.c:310
#49 0x0000560bc71c734a in _start ()

Reported using DrKonqi
Comment 1 Daniel Vrátil 2020-02-21 08:43:54 UTC

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