Bug 345207

Summary: kwin crash after plugging in external screen while screen is still locked after
Product: [Plasma] kwin Reporter: Marc Schiffbauer <mschiff>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.2.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marc Schiffbauer 2015-03-16 09:11:37 UTC
Application: kwin_x11 (5.2.1)

Qt Version: 5.4.1
Operating System: Linux 3.17.8-gentoo-r1 x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
kwin crash after plugging in external screen while screen is still locked after

at the same time, krunner also crashed: seee bug #345205

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f81e8eec840 (LWP 2805))]

Thread 4 (Thread 0x7f81d7fff700 (LWP 2820)):
#0  0x00007f81fece5783 in select () from /lib64/libc.so.6
#1  0x00007f81fd633f3b in qt_safe_select (nfds=17, fdread=0x7f81d0000a98, fdwrite=0x7f81d0000d28, fdexcept=0x7f81d0000fb8, orig_timeout=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f81fd6358c2 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f81d0000900, flags=..., flags@entry=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:196
#3  0x00007f81fd635d5b in QEventDispatcherUNIX::processEvents (this=0x7f81d00008e0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#4  0x00007f81fd5dc48b in QEventLoop::exec (this=this@entry=0x7f81d7ffed10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f81fd3f279a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f81f8931bf8 in ?? () from /usr/lib64/libQt5Qml.so.5
#7  0x00007f81fd3f75cb in QThreadPrivate::start (arg=0x14fe0b0) at thread/qthread_unix.cpp:337
#8  0x00007f81f7183204 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f81fecec71d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f81d55ec700 (LWP 2830)):
#0  0x00007f81f718754f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f81fc60625b in ?? () from /usr/lib64/libQt5Script.so.5
#2  0x00007f81fc606289 in ?? () from /usr/lib64/libQt5Script.so.5
#3  0x00007f81f7183204 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f81fecec71d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f81e5b14700 (LWP 4295)):
#0  0x00007f81f718754f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f81fd3f86fb in wait (time=18446744073709551615, this=0x187ee40) at thread/qwaitcondition_unix.cpp:128
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1784380, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:200
#3  0x00007f81f8bf068b in ?? () from /usr/lib64/libQt5Quick.so.5
#4  0x00007f81f8bf0b23 in ?? () from /usr/lib64/libQt5Quick.so.5
#5  0x00007f81fd3f75cb in QThreadPrivate::start (arg=0x1784300) at thread/qthread_unix.cpp:337
#6  0x00007f81f7183204 in start_thread () from /lib64/libpthread.so.0
#7  0x00007f81fecec71d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f81e8eec840 (LWP 2805)):
[KCrash Handler]
#5  QScreen::handle (this=0x0) at kernel/qscreen.cpp:85
#6  0x00007f81e8b7cd75 in QXcbWindow::QXcbWindow (this=0x204bee0, window=0x170a1d0) at qxcbwindow.cpp:260
#7  0x00007f81e8b6a8d1 in QXcbIntegration::createPlatformWindow (this=<optimized out>, window=0x170a1d0) at qxcbintegration.cpp:194
#8  0x00007f81fd909b46 in QWindowPrivate::create (this=0x19ee220, recursive=recursive@entry=false) at kernel/qwindow.cpp:395
#9  0x00007f81fd909d2b in QWindow::create (this=this@entry=0x170a1d0) at kernel/qwindow.cpp:539
#10 0x00007f81fd909eb8 in QWindow::winId (this=0x170a1d0) at kernel/qwindow.cpp:558
#11 0x00007f81fe8fb05f in KWin::AbstractThumbnailItem::findParentEffectWindow (this=0x1bd63e0) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1/thumbnailitem.cpp:79
#12 0x00007f81fe8fb20c in KWin::AbstractThumbnailItem::effectWindowAdded (this=0x1bd63e0) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1/thumbnailitem.cpp:90
#13 0x00007f81fe97b075 in KWin::AbstractThumbnailItem::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1_build/moc_thumbnailitem.cpp:130
#14 0x00007f81fd60f074 in QMetaObject::activate (sender=0x14c56d0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff471ea070) at kernel/qobject.cpp:3716
#15 0x00007f81fd60f717 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f81fce2daa0 <KWin::EffectsHandler::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff471ea070) at kernel/qobject.cpp:3582
#16 0x00007f81fcc206d2 in KWin::EffectsHandler::windowAdded (this=<optimized out>, _t1=0x1f80030) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1_build/libkwineffects/moc_kwineffects.cpp:1195
#17 0x00007f81fd60ea4b in call (a=0x7fff471ea1f0, r=0x14c56d0, this=0x1965870) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:124
#18 QMetaObject::activate (sender=sender@entry=0x1346b60, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7fff471ea1f0) at kernel/qobject.cpp:3702
#19 0x00007f81fd60f717 in QMetaObject::activate (sender=sender@entry=0x1346b60, m=m@entry=0x7f81febf99c0 <KWin::Toplevel::staticMetaObject>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7fff471ea1f0) at kernel/qobject.cpp:3582
#20 0x00007f81fe9749d2 in KWin::Toplevel::windowShown (this=this@entry=0x1346b60, _t1=_t1@entry=0x1346b60) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1_build/moc_toplevel.cpp:656
#21 0x00007f81fe8cbf74 in KWin::Toplevel::setReadyForPainting (this=0x1346b60) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1/toplevel.cpp:245
#22 0x00007f81fe979aa5 in KWin::Toplevel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1_build/moc_toplevel.cpp:327
#23 0x00007f81fd60f074 in QMetaObject::activate (sender=sender@entry=0x1460da0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#24 0x00007f81fd60f717 in QMetaObject::activate (sender=sender@entry=0x1460da0, m=m@entry=0x7f81fd810f40 <QSingleShotTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#25 0x00007f81fd61c7d3 in timeout (this=0x1460da0) at .moc/qtimer.moc:122
#26 QSingleShotTimer::timerEvent (this=0x1460da0) at kernel/qtimer.cpp:318
#27 0x00007f81fd60fd0c in QObject::event (this=0x1460da0, e=<optimized out>) at kernel/qobject.cpp:1226
#28 0x00007f81fde888bc in QApplicationPrivate::notify_helper (this=this@entry=0x1319280, receiver=receiver@entry=0x1460da0, e=e@entry=0x7fff471ea7c0) at kernel/qapplication.cpp:3720
#29 0x00007f81fde8d73e in QApplication::notify (this=0x7fff471eaa50, receiver=0x1460da0, e=0x7fff471ea7c0) at kernel/qapplication.cpp:3503
#30 0x00007f81fd5de5fd in QCoreApplication::notifyInternal (this=0x7fff471eaa50, receiver=0x1460da0, event=event@entry=0x7fff471ea7c0) at kernel/qcoreapplication.cpp:935
#31 0x00007f81fd63760d in sendEvent (event=0x7fff471ea7c0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#32 QTimerInfoList::activateTimers (this=0x1361ae8) at kernel/qtimerinfo_unix.cpp:635
#33 0x00007f81fd635080 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x135cb40) at kernel/qeventdispatcher_unix.cpp:549
#34 0x00007f81fd635e00 in QEventDispatcherUNIX::processEvents (this=0x135cb40, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:611
#35 0x00007f81e8bbd2cd in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#36 0x00007f81fd5dc48b in QEventLoop::exec (this=this@entry=0x7fff471ea980, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#37 0x00007f81fd5e3edf in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#38 0x00007f81fd8fe0dc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1507
#39 0x00007f81fde84f95 in QApplication::exec () at kernel/qapplication.cpp:2956
#40 0x00007f81fefa1783 in kdemain (argc=1, argv=0x7fff471eab98) at /var/tmp/portage/kde-plasma/kwin-5.2.1/work/kwin-5.2.1/main_x11.cpp:294
#41 0x00007f81fec26aa5 in __libc_start_main () from /lib64/libc.so.6
#42 0x000000000040083e in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2015-03-16 13:26:55 UTC
Qt5 bug.

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