Bug 325129 - KWin crash when computer was left idle
Summary: KWin crash when computer was left idle
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 326213 334012 334020 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-20 20:41 UTC by Lassi Väätämöinen
Modified: 2014-04-28 13:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
thomas.luebking: nouveau+


Attachments
New crash information added by DrKonqi (8.31 KB, text/plain)
2013-10-01 17:08 UTC, Johan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lassi Väätämöinen 2013-09-20 20:41:07 UTC
Application: kwin (4.11.1)
KDE Platform Version: 4.11.1
Qt Version: 4.8.5
Operating System: Linux 3.7.10-6-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

-- Information about the crash:
Computer was sitting idle, with following apps running:
Firefox,
Amarok (playing)
Konsole (with an SSH session)
Dolphin
Kopete (online)
Skype
Konversastion
Kontact

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

Thread 2 (Thread 0x7f968a06f700 (LWP 1370)):
#0  0x00007f96a7598964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f96abf66fa7 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f96ac274660 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f96abf66fd9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f96a7594e0f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f96acd657dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f96ad583780 (LWP 1363)):
[KCrash Handler]
#6  PUSH_DATA (data=268496912, push=<optimized out>) at ../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:32
#7  nv50_screen_fence_emit (pscreen=0x1018c20, sequence=0x1e423c8) at nv50_screen.c:312
#8  0x00007f968afc5306 in nouveau_fence_emit (fence=0x1e423b0) at nouveau_fence.c:102
#9  0x00007f968afc5665 in nouveau_fence_next (screen=screen@entry=0x1018c20) at nouveau_fence.c:224
#10 0x00007f968af34762 in nv50_default_kick_notify (push=<optimized out>) at nv50_context.c:63
#11 0x00007f969034f15c in ?? () from /usr/lib64/libdrm_nouveau.so.2
#12 0x00007f969034f3ce in ?? () from /usr/lib64/libdrm_nouveau.so.2
#13 0x00007f969034fed0 in nouveau_pushbuf_kick () from /usr/lib64/libdrm_nouveau.so.2
#14 0x00007f968afc55d1 in nouveau_fence_wait (fence=0x1e41ec0) at nouveau_fence.c:199
#15 0x00007f968afc6102 in nouveau_buffer_sync (rw=<optimized out>, buf=0x1301360) at nouveau_buffer.c:229
#16 nouveau_buffer_transfer_map (pipe=<optimized out>, transfer=0x1edf1c0) at nouveau_buffer.c:280
#17 0x00007f968b13a821 in pipe_buffer_map_range (transfer=0x13017e8, usage=<optimized out>, length=320, offset=0, buffer=<optimized out>, pipe=0x1107ce0) at ../../src/gallium/auxiliary/util/u_inlines.h:279
#18 st_bufferobj_map_range (ctx=<optimized out>, offset=0, length=320, access=14, obj=0x1301770) at ../../src/mesa/state_tracker/st_cb_bufferobjects.c:291
#19 0x00007f968b0fc489 in _mesa_MapBufferRange (target=<optimized out>, offset=<optimized out>, length=<optimized out>, access=<optimized out>) at ../../src/mesa/main/bufferobj.c:1600
#20 0x00007f96ad10d20b in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x15e1220, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene_opengl.cpp:1479
#21 0x00007f96ad103cf4 in KWin::SceneOpenGL2::performPaintWindow (this=this@entry=0x100b220, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene_opengl.cpp:750
#22 0x00007f96ad103e95 in KWin::SceneOpenGL2::finalDrawWindow (this=0x100b220, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene_opengl.cpp:736
#23 0x00007f96ad11665c in KWin::EffectsHandlerImpl::drawWindow (this=0x12d1ca0, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects.cpp:454
#24 0x00007f96890f9efd in KWin::BlurEffect::drawWindow (this=this@entry=0x138b120, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects/blur/blur.cpp:428
#25 0x00007f96ad1165ea in KWin::EffectsHandlerImpl::drawWindow (this=0x12d1ca0, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects.cpp:451
#26 0x00007f96ad0f3a5a in KWin::Scene::finalPaintWindow (this=<optimized out>, w=0x10ca9f0, mask=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene.cpp:546
#27 0x00007f96ad11649e in KWin::EffectsHandlerImpl::paintWindow (this=0x12d1ca0, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects.cpp:417
#28 0x00007f96ac840f7a in KWin::Effect::paintWindow (this=this@entry=0x138b120, w=w@entry=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/libkwineffects/kwineffects.cpp:537
#29 0x00007f96ad11643a in KWin::EffectsHandlerImpl::paintWindow (this=0x12d1ca0, w=0x10ca9f0, mask=mask@entry=9, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects.cpp:414
#30 0x00007f96ad0f7ec7 in KWin::Scene::paintWindow (this=0x100b220, w=0x15e1220, mask=9, region=..., quads=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene.cpp:378
#31 0x00007f96ad0f6d1f in KWin::Scene::paintSimpleScreen (this=this@entry=0x100b220, orig_mask=orig_mask@entry=8, region=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene.cpp:355
#32 0x00007f96ad0f38ce in KWin::Scene::finalPaintScreen (this=0x100b220, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene.cpp:184
#33 0x00007f96ad116248 in KWin::EffectsHandlerImpl::paintScreen (this=0x12d1ca0, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects.cpp:374
#34 0x00007f96ac840fe7 in KWin::Effect::paintScreen (this=this@entry=0x138b120, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/libkwineffects/kwineffects.cpp:522
#35 0x00007f96ad1161f9 in KWin::EffectsHandlerImpl::paintScreen (this=0x12d1ca0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/effects.cpp:371
#36 0x00007f96ad0f60e0 in KWin::Scene::paintScreen (this=0x100b220, mask=0x7fff6c63f2dc, region=0x7fff6c63f3a0) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene.cpp:141
#37 0x00007f96ad10dd6d in KWin::SceneOpenGL::paint (this=0x100b220, damage=..., toplevels=...) at /usr/src/debug/kde-workspace-4.11.1/kwin/scene_opengl.cpp:360
#38 0x00007f96ad0ee537 in KWin::Compositor::performCompositing (this=0xfd5160) at /usr/src/debug/kde-workspace-4.11.1/kwin/composite.cpp:618
#39 0x00007f96a793b75c in QObject::event (this=0xfd5160, e=<optimized out>) at kernel/qobject.cpp:1165
#40 0x00007f96a6ab292c in QApplicationPrivate::notify_helper (this=this@entry=0xe29c20, receiver=receiver@entry=0xfd5160, e=e@entry=0x7fff6c63fb80) at kernel/qapplication.cpp:4562
#41 0x00007f96a6ab6dab in QApplication::notify (this=0x7fff6c6401c0, receiver=0xfd5160, e=0x7fff6c63fb80) at kernel/qapplication.cpp:4423
#42 0x00007f96ab9c1f76 in KApplication::notify (this=0x7fff6c6401c0, receiver=0xfd5160, event=0x7fff6c63fb80) at /usr/src/debug/kdelibs-4.11.1/kdeui/kernel/kapplication.cpp:311
#43 0x00007f96a7926f3e in QCoreApplication::notifyInternal (this=0x7fff6c6401c0, receiver=0xfd5160, event=0x7fff6c63fb80) at kernel/qcoreapplication.cpp:949
#44 0x00007f96a7957e51 in sendEvent (event=0x7fff6c63fb80, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#45 QTimerInfoList::activateTimers (this=0xe2a6d8) at kernel/qeventdispatcher_unix.cpp:636
#46 0x00007f96a7958490 in QEventDispatcherUNIX::activateTimers (this=this@entry=0xdcda70) at kernel/qeventdispatcher_unix.cpp:893
#47 0x00007f96a7958648 in QEventDispatcherUNIX::processEvents (this=0xdcda70, flags=...) at kernel/qeventdispatcher_unix.cpp:955
#48 0x00007f96a6b53c2f in QEventDispatcherX11::processEvents (this=0xdcda70, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#49 0x00007f96a7925bef in QEventLoop::processEvents (this=this@entry=0x7fff6c63fed0, flags=...) at kernel/qeventloop.cpp:149
#50 0x00007f96a7925e78 in QEventLoop::exec (this=0x7fff6c63fed0, flags=...) at kernel/qeventloop.cpp:204
#51 0x00007f96a792abb8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#52 0x00007f96ad0a7063 in kdemain (argc=3, argv=0x7fff6c640308) at /usr/src/debug/kde-workspace-4.11.1/kwin/main.cpp:589
#53 0x00007f96acc9ea15 in __libc_start_main () from /lib64/libc.so.6
#54 0x0000000000400761 in _start () at ../sysdeps/x86_64/start.S:123

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-09-20 21:11:12 UTC
ftr, the trace skipped:
GLVertex2D *map = (GLVertex2D *) vbo->map(size);
GLvoid *GLVertexBufferPrivate::mapNextFreeRange(size_t size)
glMapBufferRange(GL_ARRAY_BUFFER, nextOffset, size, access);

Looks much like https://bugs.arx-libertatis.org/arx/issues/279

This is a driver bug, glMapBufferRange can throw a bunch of errors (including OOM) but not crash.
I didn't find an upstream bug, so you may want to report it against nouveau at https://bugs.freedesktop.org/

Do you use some MESA snapshot/development version?
Comment 2 Lassi Väätämöinen 2013-09-25 18:57:46 UTC
(In reply to comment #1)
> Do you use some MESA snapshot/development version?

No, just what the distribution (openSUSE 12.3) provides.
Comment 3 Johan 2013-10-01 17:08:23 UTC
Created attachment 82591 [details]
New crash information added by DrKonqi

kwin (4.11.1) on KDE Platform 4.11.1 using Qt 4.8.5

- What I was doing when the application crashed:

Just moving an application window on the screen. Has happened a couple of times over the last month but is not application specific since this seems to be a driver issue.

-- Backtrace (Reduced):
#6  PUSH_DATA (data=268496912, push=<optimized out>) at ../../../../src/gallium/drivers/nouveau/nouveau_winsys.h:32
#7  nv50_screen_fence_emit (pscreen=0x1b16dc0, sequence=0x3157cf8) at nv50_screen.c:312
#8  0x00007fcdf548a306 in nouveau_fence_emit (fence=0x3157ce0) at nouveau_fence.c:102
#9  0x00007fcdf548a665 in nouveau_fence_next (screen=screen@entry=0x1b16dc0) at nouveau_fence.c:224
#10 0x00007fcdf53f9762 in nv50_default_kick_notify (push=<optimized out>) at nv50_context.c:63
Comment 4 Thomas Lübking 2013-10-18 16:58:54 UTC
*** Bug 326213 has been marked as a duplicate of this bug. ***
Comment 5 Martin Flöser 2014-04-28 12:30:15 UTC
*** Bug 334012 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Lübking 2014-04-28 13:08:47 UTC
*** Bug 334020 has been marked as a duplicate of this bug. ***