Bug 378327

Summary: Crash on resume from suspend
Product: [Plasma] kwin Reporter: SeeLook <seelook>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.9.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description SeeLook 2017-03-31 20:47:54 UTC
Application: kwin_x11 (5.9.3)

Qt Version: 5.8.0
Frameworks Version: 5.32.0
Operating System: Linux 4.10.3-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:

After resume from suspend Kwin crashes, if not - composition is broken - some random part of the screen are dispaled - (hitting SHIFT+ALT+F12 twice fixes it). 
Latest NVIdia driver is on the board

The crash can be reproduced sometimes.

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

Thread 7 (Thread 0x7f567a060700 (LWP 23338)):
#0  0x00007f56a6a9d85b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#1  0x00007f56a6a4a89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#2  0x00007f56a686ca73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#3  0x00007f56a68716d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007f56a265e2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f56a942254f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f5670ae7700 (LWP 23327)):
#0  0x00007f56a2664756 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f56a59db234 in  () at /usr/lib/libQt5Script.so.5
#2  0x00007f56a59db279 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007f56a265e2e7 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f56a942254f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f56792cc700 (LWP 23325)):
#0  0x00007f56a2664ca6 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007f5679584e44 in  () at /usr/lib/libGLX_nvidia.so.0
#2  0x00007f5672fd5394 in  () at /usr/lib/libnvidia-glcore.so.378.13
#3  0x00007f567958412c in  () at /usr/lib/libGLX_nvidia.so.0
#4  0x00007f56a265e2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007f56a942254f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f567b061700 (LWP 23322)):
#0  0x00007f56a941876b in ppoll () at /usr/lib/libc.so.6
#1  0x00007f56a6a9c2f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f56a6a9d96a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f56a6a4a89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f56a686ca73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f56a1388025 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007f56a68716d8 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f56a265e2e7 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f56a942254f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f568dffe700 (LWP 23316)):
#0  0x00007f56a941876b in ppoll () at /usr/lib/libc.so.6
#1  0x00007f56a6a9c2f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007f56a6a9d96a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007f56a6a4a89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f56a686ca73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007f56a0532125 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007f56a68716d8 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f56a265e2e7 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007f56a942254f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f569014e700 (LWP 23315)):
#0  0x00007f56a941867d in poll () at /usr/lib/libc.so.6
#1  0x00007f56a85318e0 in  () at /usr/lib/libxcb.so.1
#2  0x00007f56a8533679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007f569122a239 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f56a68716d8 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f56a265e2e7 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f56a942254f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f56a99cf840 (LWP 23311)):
[KCrash Handler]
#6  0x00007f56a93bb7fa in __memmove_sse2_unaligned_erms () at /usr/lib/libc.so.6
#7  0x00007f56a220e8ae in KWin::GLVertexBuffer::setData(int, int, float const*, float const*) () at /usr/lib/libkwinglutils.so.10
#8  0x00007f56a8facd1e in  () at /usr/lib/libkwin.so.5
#9  0x00007f56a8fb05b5 in KWin::SceneOpenGL::paintBackground(QRegion) () at /usr/lib/libkwin.so.5
#10 0x00007f56a8f98c38 in KWin::Scene::paintSimpleScreen(int, QRegion) () at /usr/lib/libkwin.so.5
#11 0x00007f56a8facca0 in  () at /usr/lib/libkwin.so.5
#12 0x00007f56a8f9b214 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#13 0x00007f56a8fca7af in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#14 0x00007f56a621567f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.10
#15 0x00007f56a8fca75a in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#16 0x00007f56a621567f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.10
#17 0x00007f56a8fca75a in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#18 0x00007f56a621567f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwineffects.so.10
#19 0x00007f56a8fca75a in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () at /usr/lib/libkwin.so.5
#20 0x00007f56a8f9aea2 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () at /usr/lib/libkwin.so.5
#21 0x00007f56a8fb1349 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () at /usr/lib/libkwin.so.5
#22 0x00007f56a8f8b511 in KWin::Compositor::performCompositing() () at /usr/lib/libkwin.so.5
#23 0x00007f56a6a78b63 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#24 0x00007f56a772e34c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007f56a7735b61 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#26 0x00007f56a6a4c440 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#27 0x00007f56a6a9fcbe in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#28 0x00007f56a6a9dbda in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007f569128aded in  () at /usr/lib/libQt5XcbQpa.so.5
#30 0x00007f56a6a4a89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#31 0x00007f56a6a52de4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#32 0x00007f56a96e3391 in kdemain () at /usr/lib/libkdeinit5_kwin_x11.so
#33 0x00007f56a9356511 in __libc_start_main () at /usr/lib/libc.so.6
#34 0x000000000040069a in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2017-04-02 09:10:00 UTC
Unfortunately the backtrace is lacking debug symbols. If you are able to reproduce please install the debug packages provided by your distribution (please ask the distribution support channel on how to install them) and attach a new backtrace.
Comment 2 SeeLook 2017-04-02 18:50:17 UTC
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fee16051840 (LWP 20659))]

Thread 7 (Thread 0x7fed5e23b700 (LWP 21295)):
#0  0x00007fee13122c80 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#1  0x00007fee130cf89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#2  0x00007fee12ef1a73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#3  0x00007fee12ef66d8 in  () at /usr/lib/libQt5Core.so.5
#4  0x00007fee0ecee2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007fee15aa454f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fed5f582700 (LWP 20995)):
#0  0x00007fee0ecf4ca6 in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fed61630e44 in  () at /usr/lib/libGLX_nvidia.so.0
#2  0x00007fed6034e394 in  () at /usr/lib/libnvidia-glcore.so.378.13
#3  0x00007fed6163012c in  () at /usr/lib/libGLX_nvidia.so.0
#4  0x00007fee0ecee2e7 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007fee15aa454f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fede25b0700 (LWP 20759)):
#0  0x00007fee0ecf4756 in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fee1206b234 in  () at /usr/lib/libQt5Script.so.5
#2  0x00007fee1206b279 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007fee0ecee2e7 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fee15aa454f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fedebfff700 (LWP 20730)):
#0  0x00007fee15a9a76b in ppoll () at /usr/lib/libc.so.6
#1  0x00007fee131212f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007fee1312296a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007fee130cf89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fee12ef1a73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007fee0da17025 in  () at /usr/lib/libQt5Qml.so.5
#6  0x00007fee12ef66d8 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fee0ecee2e7 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fee15aa454f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fedfa68d700 (LWP 20695)):
#0  0x00007fee15a9a76b in ppoll () at /usr/lib/libc.so.6
#1  0x00007fee131212f9 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5
#2  0x00007fee1312296a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#3  0x00007fee130cf89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fee12ef1a73 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#5  0x00007fee0cbc1125 in  () at /usr/lib/libQt5DBus.so.5
#6  0x00007fee12ef66d8 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fee0ecee2e7 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fee15aa454f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fedfc7dd700 (LWP 20661)):
#0  0x00007fee15a9a67d in poll () at /usr/lib/libc.so.6
#1  0x00007fee14bb68e0 in  () at /usr/lib/libxcb.so.1
#2  0x00007fee14bb8679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fedfd8b9239 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fee12ef66d8 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fee0ecee2e7 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fee15aa454f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fee16051840 (LWP 20659)):
[KCrash Handler]
#6  0x00007fee15a3d7fa in __memmove_sse2_unaligned_erms () at /usr/lib/libc.so.6
#7  0x00007fee0e89d7ee in KWin::GLVertexBuffer::setData(int, int, float const*, float const*) (this=this@entry=0x15d8b80, vertexCount=24, dim=dim@entry=2, vertices=0x14ea738, texcoords=texcoords@entry=0x0) at /home/tom/Apps/AUR/kwin-git/src/kwin/libkwineffects/kwinglutils.cpp:1967
#8  0x00007fee15626718 in KWin::SceneOpenGL2::doPaintBackground(QVector<float> const&) (this=0x15d0320, vertices=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene_opengl.cpp:1097
#9  0x00007fee1562be05 in KWin::SceneOpenGL::paintBackground(QRegion) (this=this@entry=0x15d0320, region=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene_opengl.cpp:816
#10 0x00007fee15613641 in KWin::Scene::paintSimpleScreen(int, QRegion) (this=this@entry=0x15d0320, orig_mask=orig_mask@entry=0, region=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene.cpp:365
#11 0x00007fee156266a0 in KWin::SceneOpenGL2::paintSimpleScreen(int, QRegion) (this=this@entry=0x15d0320, mask=mask@entry=0, region=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene_opengl.cpp:1080
#12 0x00007fee15616654 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) (this=0x15d0320, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene.cpp:201
#13 0x00007fee15644935 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=0x1618680, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/effects.cpp:341
#14 0x00007fee1289d71f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=this@entry=0x12b0f10, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/libkwineffects/kwineffects.cpp:583
#15 0x00007fee156448f4 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=0x1618680, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/effects.cpp:338
#16 0x00007fee1289d71f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=this@entry=0x1611d90, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/libkwineffects/kwineffects.cpp:583
#17 0x00007fee156448f4 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=0x1618680, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/effects.cpp:338
#18 0x00007fee1289d71f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=this@entry=0x157b4b0, mask=mask@entry=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/libkwineffects/kwineffects.cpp:583
#19 0x00007fee156448f4 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) (this=0x1618680, mask=0, region=..., data=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/effects.cpp:338
#20 0x00007fee156161cb in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) (this=this@entry=0x15d0320, mask=mask@entry=0x7ffcb2d04560, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffcb2d04520, validRegion=validRegion@entry=0x7ffcb2d04530, projection=..., outputGeometry=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene.cpp:151
#21 0x00007fee1562c928 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) (this=0x15d0320, damage=..., toplevels=...) at /home/tom/Apps/AUR/kwin-git/src/kwin/scene_opengl.cpp:734
#22 0x00007fee15608437 in KWin::Compositor::performCompositing() (this=0x1234280) at /home/tom/Apps/AUR/kwin-git/src/kwin/composite.cpp:742
#23 0x00007fee130fdb63 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#24 0x00007fee13db334c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007fee13dbab61 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#26 0x00007fee130d1440 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#27 0x00007fee13124cbe in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#28 0x00007fee13122bda in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007fedfd919ded in  () at /usr/lib/libQt5XcbQpa.so.5
#30 0x00007fee130cf89a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#31 0x00007fee130d7de4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#32 0x00007fee15d6539d in kdemain(int, char**) (argc=<optimized out>, argv=0x7ffcb2d04e28) at /home/tom/Apps/AUR/kwin-git/src/kwin/main_x11.cpp:468
#33 0x00007fee159d8511 in __libc_start_main () at /usr/lib/libc.so.6
#34 0x00000000004006ca in _start ()
Comment 3 SeeLook 2017-04-02 18:55:16 UTC
Here it is, I hope it is more verbose now.
This kwin version if from git but switched to Plasma/5.9 branch.

Hope this helps.
Comment 4 Martin Flöser 2017-04-02 19:41:42 UTC
This is the first time I see a backtrace with good debug symbols from an Arch user! Good job!

It looks like this is the well known issue of Nvidia discarding the mapped memory on vt switches.

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