Bug 373865 - plasmashell crashes on usb disconnect
Summary: plasmashell crashes on usb disconnect
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.5.5
Platform: openSUSE Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
: 373616 373624 373823 373868 373901 373975 374610 377540 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-18 20:39 UTC by Thomas Mitterfellner
Modified: 2017-03-15 17:31 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Mitterfellner 2016-12-18 20:39:19 UTC
Application: plasmashell (5.5.5)

Qt Version: 5.7.1
Frameworks Version: 5.29.0
Operating System: Linux 4.1.36-41-default x86_64
Distribution: "openSUSE Leap 42.1 (x86_64)"

-- Information about the crash:
I have a dual monitor setup where the external monitor is connected to the laptop and has an usb hub to which mouse and keyboard are connected. When I disconnect that hub from the laptop, sometimes I get this crash. The laptop screen is turned off, if that matters; I'm writing this because I also had other crashes in connection with the monitor (kwin crashed twice, also not 100% reproducible) when I turned the monitor off (with gwenview in fullscreen mode).

The crash can be reproduced sometimes.

-- Backtrace:
Application: Plasma (plasmashell), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fda853c27c0 (LWP 16745))]

Thread 11 (Thread 0x7fd9a70f0700 (LWP 16808)):
#0  0x00007fda7e12a03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fda7f01d46b in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x26e9070) at thread/qwaitcondition_unix.cpp:143
#2  0x00007fda7f01d46b in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=0x272e720, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007fda82e8875b in  () at /usr/lib64/libQt5Quick.so.5
#4  0x00007fda82e8a5d5 in  () at /usr/lib64/libQt5Quick.so.5
#5  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0x272e6a0) at thread/qthread_unix.cpp:368
#6  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7fd9adc1f700 (LWP 16807)):
#0  0x00007fda7e12a03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fda7f01d46b in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x24cf820) at thread/qwaitcondition_unix.cpp:143
#2  0x00007fda7f01d46b in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=0x24cf2b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007fda82e8875b in  () at /usr/lib64/libQt5Quick.so.5
#4  0x00007fda82e8a5d5 in  () at /usr/lib64/libQt5Quick.so.5
#5  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0x24cf230) at thread/qthread_unix.cpp:368
#6  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7fd9af011700 (LWP 16802)):
#0  0x00007fda7e91cbfd in poll () at /lib64/libc.so.6
#1  0x00007fda799f8e64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fda7f2229eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fd9a80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fd9af010dd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007fda7f017fca in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007fd9b0439cf7 in KCupsConnection::run() () at /usr/lib64/libkcupslib.so
#7  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0x23d79a0) at thread/qthread_unix.cpp:368
#8  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7fd9c60d7700 (LWP 16783)):
#0  0x00007fda7e12a03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fda7f01d46b in QWaitCondition::wait(QMutex*, unsigned long) (time=18446744073709551615, this=0x1258fc0) at thread/qwaitcondition_unix.cpp:143
#2  0x00007fda7f01d46b in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=0xd86b10, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007fda82e8875b in  () at /usr/lib64/libQt5Quick.so.5
#4  0x00007fda82e8a5d5 in  () at /usr/lib64/libQt5Quick.so.5
#5  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0xd86a90) at thread/qthread_unix.cpp:368
#6  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#7  0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7fd9c6ff7700 (LWP 16782)):
#0  0x00007fda7e91cbfd in poll () at /lib64/libc.so.6
#1  0x00007fda799f8e64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fda7f2229eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fd9c00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fd9c6ff6db0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007fda7f017fca in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007fda82e1c492 in  () at /usr/lib64/libQt5Quick.so.5
#7  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0x17c7380) at thread/qthread_unix.cpp:368
#8  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#9  0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7fda4e36c700 (LWP 16781)):
#0  0x00007fda7e12a03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007fda84aa8acb in  () at /usr/lib64/libQt5Script.so.5
#2  0x00007fda84aa8af9 in  () at /usr/lib64/libQt5Script.so.5
#3  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7fda4fdc7700 (LWP 16778)):
#0  0x00007fda79a3acf9 in g_mutex_lock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fda799f88fc in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fda799f8df8 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fda7f2229eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fda480008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fda4fdc6df0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007fda7f017fca in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507
#7  0x00007fda8229a3e8 in  () at /usr/lib64/libQt5Qml.so.5
#8  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0xe2f5c0) at thread/qthread_unix.cpp:368
#9  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7fda55525700 (LWP 16775)):
#0  0x00007fda79a3ad14 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fda799f7f20 in g_main_context_acquire () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fda799f8d25 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fda7f2229eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fda500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fda55524df0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007fda7f017fca in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507
#7  0x00007fda8229a3e8 in  () at /usr/lib64/libQt5Qml.so.5
#8  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0xca2610) at thread/qthread_unix.cpp:368
#9  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7fda61fdc700 (LWP 16753)):
#0  0x00007fda79a3ad14 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007fda799f8759 in g_main_context_query () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fda799f8dcf in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fda7f2229eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fda5c0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fda61fdbdf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007fda7f017fca in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507
#7  0x00007fda8229a3e8 in  () at /usr/lib64/libQt5Qml.so.5
#8  0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0xb9ce00) at thread/qthread_unix.cpp:368
#9  0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7fda720e2700 (LWP 16747)):
#0  0x00007fda7e918ccd in read () at /lib64/libc.so.6
#1  0x00007fda76b12073 in  () at /usr/lib64/tls/libnvidia-tls.so.375.20
#2  0x00007fda79a39b60 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007fda799f8999 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#4  0x00007fda799f8df8 in  () at /usr/lib64/libglib-2.0.so.0
#5  0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#6  0x00007fda7f2229eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fda6c0008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fda720e1de0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#8  0x00007fda7f017fca in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:507
#9  0x00007fda7ff3da25 in  () at /usr/lib64/libQt5DBus.so.5
#10 0x00007fda7f01c7f9 in QThreadPrivate::start(void*) (arg=0x7fda801a4d00) at thread/qthread_unix.cpp:368
#11 0x00007fda7e1260a4 in start_thread () at /lib64/libpthread.so.0
#12 0x00007fda7e92502d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7fda853c27c0 (LWP 16745)):
[KCrash Handler]
#6  0x00007fda7e8750c7 in raise () at /lib64/libc.so.6
#7  0x00007fda7e876478 in abort () at /lib64/libc.so.6
#8  0x00007fda7e8b2784 in  () at /lib64/libc.so.6
#9  0x00007fda7e8b8026 in malloc_printerr () at /lib64/libc.so.6
#10 0x00007fda7e8b8d53 in _int_free () at /lib64/libc.so.6
#11 0x00007fda6b9033f1 in XIQueryDevice () at /usr/lib64/libXi.so.6
#12 0x00007fda6bd70dc9 in QXcbConnection::touchDeviceForId(int) (this=this@entry=0xaae230, id=10) at qxcbconnection_xi2.cpp:398
#13 0x00007fda6bd72596 in QXcbConnection::xi2SetupDevices() (this=this@entry=0xaae230) at qxcbconnection_xi2.cpp:258
#14 0x00007fda6bd7384c in QXcbConnection::xi2HandleHierachyEvent(void*) (this=this@entry=0xaae230, event=event@entry=0x29ab5f0) at qxcbconnection_xi2.cpp:831
#15 0x00007fda6bd755d3 in QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) (this=this@entry=0xaae230, event=event@entry=0x29ab5f0) at qxcbconnection_xi2.cpp:523
#16 0x00007fda6bd4bc6a in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (this=this@entry=0xaae230, event=event@entry=0x29ab5f0) at qxcbconnection.cpp:1229
#17 0x00007fda6bd4daee in QXcbConnection::processXcbEvents() (this=0xaae230) at qxcbconnection.cpp:1741
#18 0x00007fda7f1fd726 in QObject::event(QEvent*) (this=0xaae230, e=<optimized out>) at kernel/qobject.cpp:1263
#19 0x00007fda8051c21c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0xaae230, e=0x7fda64003dc0) at kernel/qapplication.cpp:3799
#20 0x00007fda805231a0 in QApplication::notify(QObject*, QEvent*) (this=0x7ffd8467a1d0, receiver=0xaae230, e=0x7fda64003dc0) at kernel/qapplication.cpp:3556
#21 0x00007fda7f1d4005 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0xaae230, event=event@entry=0x7fda64003dc0) at kernel/qcoreapplication.cpp:988
#22 0x00007fda7f1d6063 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x7fda64003dc0, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#23 0x00007fda7f1d6063 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xa80a10) at kernel/qcoreapplication.cpp:1649
#24 0x00007fda7f1d65a8 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#25 0x00007fda7f223183 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0xaf8970) at kernel/qeventdispatcher_glib.cpp:276
#26 0x00007fda799f8c84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#27 0x00007fda799f8ed8 in  () at /usr/lib64/libglib-2.0.so.0
#28 0x00007fda799f8f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#29 0x00007fda7f2229cc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0xaeaaf0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007fda7f1d22db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd8467a060, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#31 0x00007fda7f1da0d6 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1261
#32 0x0000000000436b3d in main ()

Reported using DrKonqi
Comment 1 Marco Martin 2016-12-19 12:19:47 UTC
*** Bug 373624 has been marked as a duplicate of this bug. ***
Comment 2 Thomas Mitterfellner 2016-12-19 13:15:00 UTC
Is there anything I can do to help track down the cause of this?
Should I submit the data or a bug report for those kwin crashes (I saved data for one of them)? 
[I'm a bit reluctant to report bugs which I cannot reproduce (I tried but couldn't find anything that triggers either of those crashes reliably), but I'm getting crashes frequently (kvmserver, plasmashell, kwin) recently, seemingly in connection with my dual monitor setup; or maybe it's just that I'm doing different stuff when I have two monitors connected.]
Comment 3 David Edmundson 2016-12-19 14:02:39 UTC
Things you can do:

Try running latest Qt. The crash is very much in there.

If you have a consistently reproducible case, run
valgrind plasmashell, then cause the crash.

It's nothing to do with your number of monitors, but some sort of input device, like a mouse or touchscreen.
Comment 4 Christoph Feck 2016-12-20 17:57:49 UTC
*** Bug 373823 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2016-12-20 17:58:04 UTC
*** Bug 373868 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2016-12-20 17:59:26 UTC
Crash happening with latest Qt 5.7.1, so I suggest to report it directly to Qt developers via https://bugreports.qt.io/
Comment 7 Adam Reed 2016-12-20 20:22:58 UTC
Konsole also crashes in the same situation. It seems that one application crashes each time the KVM switches from the openSUSE Leap machine to the Mac Mini with OS X.
Comment 8 Christoph Feck 2016-12-21 03:14:42 UTC
*** Bug 373975 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2016-12-21 04:10:48 UTC
*** Bug 373901 has been marked as a duplicate of this bug. ***
Comment 10 Adam Reed 2016-12-22 00:24:28 UTC
Another app crashes when KVM switches to a different computer:

Application: drkonqi (drkonqi), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f96c69b3780 (LWP 11414))]

Thread 3 (Thread 0x7f96a0761700 (LWP 11426)):
#0  0x00007f96c0b7a03f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f96a71b7a73 in  () at /usr/lib64/dri/r600_dri.so
#2  0x00007f96a71b71f7 in  () at /usr/lib64/dri/r600_dri.so
#3  0x00007f96c0b760a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f96c24ce02d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f96b7371700 (LWP 11416)):
#0  0x00007f96c24c5bfd in poll () at /lib64/libc.so.6
#1  0x00007f96bdfeb422 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f96bdfed00f in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f96b96c63c9 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f96c2bc032f in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f96c0b760a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f96c24ce02d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f96c69b3780 (LWP 11414)):
[KCrash Handler]
#6  0x00007f96c241e0c7 in raise () at /lib64/libc.so.6
#7  0x00007f96c241f478 in abort () at /lib64/libc.so.6
#8  0x00007f96c245b784 in  () at /lib64/libc.so.6
#9  0x00007f96c2461026 in malloc_printerr () at /lib64/libc.so.6
#10 0x00007f96c2461d53 in _int_free () at /lib64/libc.so.6
#11 0x00007f96b94803f1 in XIQueryDevice () at /usr/lib64/libXi.so.6
#12 0x00007f96b96e7d74 in QXcbConnection::touchDeviceForId(int) () at /usr/lib64/libQt5XcbQpa.so.5
#13 0x00007f96b96e94ed in QXcbConnection::xi2SetupDevices() () at /usr/lib64/libQt5XcbQpa.so.5
#14 0x00007f96b96e9ba0 in QXcbConnection::xi2HandleHierachyEvent(void*) () at /usr/lib64/libQt5XcbQpa.so.5
#15 0x00007f96b96eb93b in QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) () at /usr/lib64/libQt5XcbQpa.so.5
#16 0x00007f96b96c434d in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib64/libQt5XcbQpa.so.5
#17 0x00007f96b96c601b in QXcbConnection::processXcbEvents() () at /usr/lib64/libQt5XcbQpa.so.5
#18 0x00007f96c2dccac6 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#19 0x00007f96c3a7fe7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#20 0x00007f96c3a84cc8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#21 0x00007f96c2d9be95 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#22 0x00007f96c2d9e057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#23 0x00007f96c2df38f3 in  () at /usr/lib64/libQt5Core.so.5
#24 0x00007f96c01fbc84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#25 0x00007f96c01fbed8 in  () at /usr/lib64/libglib-2.0.so.0
#26 0x00007f96c01fbf7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f96c2df2d6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#28 0x00007f96c2d99d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#29 0x00007f96c2da18f6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#30 0x00000000004394be in main ()
Comment 11 Adam Reed 2016-12-24 22:01:25 UTC
kdeinit5 also crashes:

Application: kdeinit5 (kdeinit5), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0ff2766780 (LWP 2202))]

Thread 6 (Thread 0x7f0fc94b9700 (LWP 2339)):
#0  0x00007f0ff08b5bfd in poll () at /lib64/libc.so.6
#1  0x00007f0fed612e64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f0fed612f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f0ff0e5ed8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f0ff0e05d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f0ff0c2761a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f0ff0c2c32f in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f0fee2d70a4 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f0ff08be02d in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f0fcadee700 (LWP 2216)):
#0  0x00007f0ff08b5bfd in poll () at /lib64/libc.so.6
#1  0x00007f0fed612e64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f0fed612f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f0ff0e5ed8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f0ff0e05d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f0ff0c2761a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f0ff0c2c32f in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f0fee2d70a4 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f0ff08be02d in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f0fcb5ef700 (LWP 2215)):
#0  0x00007f0fed654d14 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f0fed6128e9 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f0fed612df8 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f0fed612f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f0ff0e5ed8b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f0ff0e05d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f0ff0c2761a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f0fd1df2cf7 in KCupsConnection::run() () at /usr/lib64/libkcupslib.so
#8  0x00007f0ff0c2c32f in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f0fee2d70a4 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f0ff08be02d in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f0fd2a39700 (LWP 2207)):
#0  0x00007f0ff08b5bfd in poll () at /lib64/libc.so.6
#1  0x00007f0fed612e64 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f0fed61319a in g_main_loop_run () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f0fd3574426 in  () at /usr/lib64/libgio-2.0.so.0
#4  0x00007f0fed637f65 in  () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f0fee2d70a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f0ff08be02d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f0fdd2d1700 (LWP 2205)):
#0  0x00007f0ff08b5bfd in poll () at /lib64/libc.so.6
#1  0x00007f0ff1bda422 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f0ff1bdc00f in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f0fdf6263c9 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f0ff0c2c32f in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f0fee2d70a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f0ff08be02d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f0ff2766780 (LWP 2202)):
[KCrash Handler]
#6  0x00007f0ff080e0c7 in raise () at /lib64/libc.so.6
#7  0x00007f0ff080f478 in abort () at /lib64/libc.so.6
#8  0x00007f0ff084b784 in  () at /lib64/libc.so.6
#9  0x00007f0ff0851026 in malloc_printerr () at /lib64/libc.so.6
#10 0x00007f0ff0851d53 in _int_free () at /lib64/libc.so.6
#11 0x00007f0fdf3e03f1 in XIQueryDevice () at /usr/lib64/libXi.so.6
#12 0x00007f0fdf6470bf in QXcbConnection::handleEnterEvent(xcb_enter_notify_event_t const*) () at /usr/lib64/libQt5XcbQpa.so.5
#13 0x00007f0fdf6387df in QXcbWindow::handleEnterNotifyEvent(xcb_enter_notify_event_t const*) () at /usr/lib64/libQt5XcbQpa.so.5
#14 0x00007f0fdf624515 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib64/libQt5XcbQpa.so.5
#15 0x00007f0fdf62601b in QXcbConnection::processXcbEvents() () at /usr/lib64/libQt5XcbQpa.so.5
#16 0x00007f0ff0e38ac6 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#17 0x00007f0fef49de7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#18 0x00007f0fef4a2cc8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#19 0x00007f0ff0e07e95 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#20 0x00007f0ff0e0a057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#21 0x00007f0ff0e5f8f3 in  () at /usr/lib64/libQt5Core.so.5
#22 0x00007f0fed612c84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#23 0x00007f0fed612ed8 in  () at /usr/lib64/libglib-2.0.so.0
#24 0x00007f0fed612f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#25 0x00007f0ff0e5ed6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#26 0x00007f0ff0e05d53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#27 0x00007f0ff0e0d8f6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#28 0x00007f0fdfadcc9f in kdemain () at /usr/lib64/libkdeinit5_kded5.so
#29 0x000000000040874c in _start ()
Comment 12 Ralf Jung 2017-01-04 09:55:37 UTC
I am having the same issue and reported it upstream with Qt at <https://bugreports.qt.io/browse/QTBUG-57897>.
Comment 13 Christoph Feck 2017-01-04 17:46:22 UTC
*** Bug 373616 has been marked as a duplicate of this bug. ***
Comment 14 Adam Reed 2017-01-06 20:48:28 UTC
Application: Konsole (konsole), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f57942d8800 (LWP 2660))]

Thread 3 (Thread 0x7f57715be700 (LWP 2895)):
#0  0x00007f578af4103f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f57779f9a73 in  () at /usr/lib64/dri/r600_dri.so
#2  0x00007f57779f91f7 in  () at /usr/lib64/dri/r600_dri.so
#3  0x00007f578af3d0a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f5793c0d02d in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f577eae6700 (LWP 2663)):
#0  0x00007f5793c04bfd in poll () at /lib64/libc.so.6
#1  0x00007f578b360422 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f578b36200f in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f57808113c9 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f578ffd332f in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f578af3d0a4 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f5793c0d02d in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f57942d8800 (LWP 2660)):
[KCrash Handler]
#6  0x00007f5793b5d0c7 in raise () at /lib64/libc.so.6
#7  0x00007f5793b5e478 in abort () at /lib64/libc.so.6
#8  0x00007f5793b9a784 in  () at /lib64/libc.so.6
#9  0x00007f5793ba0026 in malloc_printerr () at /lib64/libc.so.6
#10 0x00007f5793ba0d53 in _int_free () at /lib64/libc.so.6
#11 0x00007f57805cb3f1 in XIQueryDevice () at /usr/lib64/libXi.so.6
#12 0x00007f5780832d74 in QXcbConnection::touchDeviceForId(int) () at /usr/lib64/libQt5XcbQpa.so.5
#13 0x00007f57808344ed in QXcbConnection::xi2SetupDevices() () at /usr/lib64/libQt5XcbQpa.so.5
#14 0x00007f5780834ba0 in QXcbConnection::xi2HandleHierachyEvent(void*) () at /usr/lib64/libQt5XcbQpa.so.5
#15 0x00007f578083693b in QXcbConnection::xi2HandleEvent(xcb_ge_event_t*) () at /usr/lib64/libQt5XcbQpa.so.5
#16 0x00007f578080f34d in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () at /usr/lib64/libQt5XcbQpa.so.5
#17 0x00007f578081101b in QXcbConnection::processXcbEvents() () at /usr/lib64/libQt5XcbQpa.so.5
#18 0x00007f57901dfac6 in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#19 0x00007f5790e92e7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#20 0x00007f5790e97cc8 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#21 0x00007f57901aee95 in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#22 0x00007f57901b1057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#23 0x00007f57902068f3 in  () at /usr/lib64/libQt5Core.so.5
#24 0x00007f578a809c84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#25 0x00007f578a809ed8 in  () at /usr/lib64/libglib-2.0.so.0
#26 0x00007f578a809f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f5790205d6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#28 0x00007f57901acd53 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#29 0x00007f57901b48f6 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#30 0x00007f5793ef8e87 in kdemain () at /usr/lib64/libkdeinit5_konsole.so
#31 0x00007f5793b49b25 in __libc_start_main () at /lib64/libc.so.6
#32 0x00000000004007ee in _start ()
Comment 15 Christoph Feck 2017-01-09 22:27:20 UTC
*** Bug 374610 has been marked as a duplicate of this bug. ***
Comment 16 Ralf Jung 2017-01-10 20:37:57 UTC
As was brought up in the Qt bug, the cause is likely even more upstream, in libxi: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849026>

A libxi package with the fix is in Debian unstable and should migrate to testing tomorrow.  I have my fingers crossed that this fixes the problem.  No crash in the one suspend-disconnect I did so far, but that's a rather small sample size ;)
Comment 17 Christoph Feck 2017-01-13 19:20:08 UTC
Thanks for the investigation; let's mark this as resolved.
Comment 18 Adam Reed 2017-01-13 22:47:57 UTC
OK, but when can Leap users expect an update to fix this bug?
Comment 19 Christoph Feck 2017-01-19 15:42:51 UTC
If this has not been fixed in openSUSE yet, I suggest to report a bug to their bug tracker and ask them to backport https://cgit.freedesktop.org/xorg/lib/libXi/commit/?id=557b60798a9da49386f1034b133838332735de22
Comment 20 Christoph Feck 2017-03-15 17:31:26 UTC
*** Bug 377540 has been marked as a duplicate of this bug. ***