Bug 317880 - kwin segmentation fault during logout
Summary: kwin segmentation fault during logout
Status: RESOLVED DUPLICATE of bug 309280
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 4.10.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 12:52 UTC by Helmut Robben
Modified: 2013-04-11 18:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (6.01 KB, text/plain)
2013-04-10 15:46 UTC, ob.harald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Robben 2013-04-05 12:52:39 UTC
Application: kwin (4.10.1)
KDE Platform Version: 4.10.1 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.4-gentoo-self i686
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
Each time when a user logs out from a KDE session, kwin crashes with a segfault. This is independent of the user who uses the sytem.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#7  0xac564ee4 in PUSH_RESRC (push=0x81a4360, subc=7, mthd=5764, bin=2, r=0x0, data=0, access=4352, vor=0, tor=2147483648) at nv30_winsys.h:108
#8  0xac565ae5 in nv30_vbo_validate (nv30=0x81d7670) at nv30_vbo.c:239
#9  0xac55ff28 in nv30_state_validate (nv30=0x81d7670, hwtnl=1 '\001') at nv30_state_validate.c:487
#10 0xac5641f9 in nv30_clear (pipe=0x81d7670, buffers=1, color=0xbf954c58, depth=1, stencil=0) at nv30_clear.c:61
#11 0xac31fd4b in st_Clear (ctx=0x822a348, mask=2) at ../../src/mesa/state_tracker/st_cb_clear.c:463
#12 0xac1d076a in _mesa_Clear (mask=16384) at ../../src/mesa/main/clear.c:227
#13 0xb76bfafd in KWin::SceneOpenGL::paintBackground (this=this@entry=0x826a8d8, region=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/scene_opengl.cpp:349
#14 0xb76afced in KWin::Scene::paintGenericScreen (this=0x826a8d8, orig_mask=32) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/scene.cpp:194
#15 0xb76bcc57 in KWin::SceneOpenGL2::paintGenericScreen (this=this@entry=0x826a8d8, mask=mask@entry=32, data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/scene_opengl.cpp:516
#16 0xb76aed23 in KWin::Scene::finalPaintScreen (this=0x826a8d8, mask=32, region=..., data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/scene.cpp:184
#17 0xb76d4304 in KWin::EffectsHandlerImpl::paintScreen (this=0x8313158, mask=mask@entry=32, region=..., data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/effects.cpp:254
#18 0xaa88801f in KWin::LogoutEffect::paintScreen (this=this@entry=0x8418600, mask=mask@entry=32, region=..., data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/effects/logout/logout.cpp:193
#19 0xb76d42c3 in KWin::EffectsHandlerImpl::paintScreen (this=0x8313158, mask=mask@entry=32, region=..., data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/effects.cpp:251
#20 0xb6895880 in KWin::Effect::paintScreen (this=this@entry=0x83cf7f0, mask=mask@entry=32, region=..., data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/libkwineffects/kwineffects.cpp:489
#21 0xb76d42c3 in KWin::EffectsHandlerImpl::paintScreen (this=0x8313158, mask=32, region=..., data=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/effects.cpp:251
#22 0xb76afab0 in KWin::Scene::paintScreen (this=0x826a8d8, mask=0xbf955214, region=0xbf9552ac) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/scene.cpp:140
#23 0xb76c195a in KWin::SceneOpenGL::paint (this=0x826a8d8, damage=..., toplevels=...) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/scene_opengl.cpp:308
#24 0xb76a9ff8 in KWin::Compositor::performCompositing (this=this@entry=0x81871f8) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/composite.cpp:610
#25 0xb76aa1c7 in KWin::Compositor::timerEvent (this=0x81871f8, te=0xbf955780) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/composite.cpp:534
#26 0xb5d4f593 in QObject::event (this=0x81871f8, e=0xbf955780) at kernel/qobject.cpp:1156
#27 0xb51b1a18 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#28 0xb51b6c8d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/qt4/libQtGui.so.4
#29 0xb71b49c1 in KApplication::notify (this=0xbf955a80, receiver=0x81871f8, event=0xbf955780) at /media/sda/portage/portage/kde-base/kdelibs-4.10.1-r1/work/kdelibs-4.10.1/kdeui/kernel/kapplication.cpp:311
#30 0xb765053a in KWin::Application::notify (this=0xbf955a80, o=0x81871f8, e=0xbf955780) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/main.cpp:371
#31 0xb5d38bdc in QCoreApplication::notifyInternal (this=0xbf955a80, receiver=0x81871f8, event=0xbf955780) at kernel/qcoreapplication.cpp:946
#32 0xb5d6e062 in sendEvent (event=0xbf955780, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#33 QTimerInfoList::activateTimers (this=0x808194c) at kernel/qeventdispatcher_unix.cpp:622
#34 0xb5d6e1b0 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x8080d80) at kernel/qeventdispatcher_unix.cpp:879
#35 0xb5d6e2af in QEventDispatcherUNIX::processEvents (this=0x8080d80, flags=...) at kernel/qeventdispatcher_unix.cpp:941
#36 0xb5264ab9 in ?? () from /usr/lib/qt4/libQtGui.so.4
#37 0xb5d372a8 in QEventLoop::processEvents (this=this@entry=0xbf9559d4, flags=...) at kernel/qeventloop.cpp:149
#38 0xb5d3753f in QEventLoop::exec (this=0xbf9559d4, flags=...) at kernel/qeventloop.cpp:204
#39 0xb5d3c5bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#40 0xb51afca0 in QApplication::exec() () from /usr/lib/qt4/libQtGui.so.4
#41 0xb7654aad in kdemain (argc=1, argv=0xbf955cd4) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1/kwin/main.cpp:537
#42 0x0804876e in main (argc=1, argv=0xbf955cd4) at /media/sda/portage/portage/kde-base/kwin-4.10.1-r2/work/kwin-4.10.1_build/kwin/kwin_dummy.cpp:3

Possible duplicates by query: bug 317789, bug 314515, bug 313786, bug 313388, bug 312219.

Reported using DrKonqi
Comment 1 Martin Flöser 2013-04-05 12:56:25 UTC
consider switching to the proprietary NVIDIA driver.

*** This bug has been marked as a duplicate of bug 309280 ***
Comment 2 Helmut Robben 2013-04-06 08:00:51 UTC
Switching to proprietary NVIDIA driver solves the issue, but it's kind of weird:

A few month ago I was told that the proprietary driver higher than version 304.88 doesn't support my video card anymore. Trying to emerge nvidia-driver-304.88 resulted in an error without support (gentoo only supports the nvidia driver up to kernel < 3.7). That's why I switched to nouveau.

Actually emerging nvidia-driver-304.88 works with kernel 3.8.5. Don't know how long this will last, but for now everything works well.
Comment 3 Thomas Lübking 2013-04-06 09:43:08 UTC
304.xx is legacy but not unmaintained. You'll get updates to match recent kernels/XOrg versions. Potentially with (increasingly) more delay than the mainline blob, though.
Comment 4 ob.harald 2013-04-10 15:46:37 UTC
Created attachment 78776 [details]
New crash information added by DrKonqi

kwin (4.10.00 "release 1") on KDE Platform 4.10.00 "release 1" using Qt 4.8.4

- What I was doing when the application crashed:
Each time when a user logs out or shutdown from a KDE session, kwin crashes with a segfault.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#6  PUSH_RESRC (tor=<optimized out>, data=<optimized out>, r=<optimized out>, bin=<optimized out>, mthd=<optimized out>, push=<optimized out>, subc=<optimized out>, access=<optimized out>, vor=<optimized out>) at nv30_winsys.h:107
#7  nv30_vbo_validate (nv30=0x92ce688) at nv30_vbo.c:239
#8  0xada72a82 in nv30_state_validate (nv30=nv30@entry=0x92ce688, hwtnl=hwtnl@entry=1 '\001') at nv30_state_validate.c:487
#9  0xada50505 in nv30_clear (pipe=0x92ce688, buffers=1, color=0xbfb2afcc, depth=1, stencil=0) at nv30_clear.c:61
#10 0xadc91c62 in st_Clear (ctx=0x932acf8, mask=2) at ../../src/mesa/state_tracker/st_cb_clear.c:557
Comment 5 Thomas Lübking 2013-04-10 16:00:02 UTC
kcmshell4 kwincompositing, 2nd tab. disable the "logout" effect or try
kwriteconfig --file kwinrc --group Effect-Logout --key UseBlur false
qdbus org.kde.kwin /KWin reconfigure
qdbus org.kde.kwin /KWin reconfigureEffect kwin4_effect_logout
Comment 6 ob.harald 2013-04-11 15:06:37 UTC
Am 10.04.2013 18:00, schrieb Thomas Lübking :
> https://bugs.kde.org/show_bug.cgi?id=317880
>
> --- Comment #5 from Thomas Lübking <thomas.luebking@gmail.com> ---
> kcmshell4 kwincompositing, 2nd tab. disable the "logout" effect or try
> kwriteconfig --file kwinrc --group Effect-Logout --key UseBlur false
> qdbus org.kde.kwin /KWin reconfigure
> qdbus org.kde.kwin /KWin reconfigureEffect kwin4_effect_logout
>
Dies beseitigt das Problem, besten Dank. Vielleicht lässt sich ja das 
Fehlverhalten eleganter durch einen zukünftigen Patch beseitigen !
Thanks a lot, Harald Huber
Comment 7 Thomas Lübking 2013-04-11 18:05:22 UTC
The problem is that the patch is in the driver (even if KWin would do really really wrong by -actually- ignoring limitations, which you should however rather not hit on that GPU, the GL call should yell an error, but no way crash), so a patch could at best blacklist the driver.

Now, the particular issue about the nouveau drivers is that their OpenGL implementation is not considered "reliable" and you're actually supposed to expect issues [1], so they'll be rather used by developers and driver testers - therefore blacklisting explicitly them would be rather not helpful.

Upstream bug *might* be https://bugs.freedesktop.org/show_bug.cgi?id=56474 (do you have that chip?)

[1] http://nouveau.freedesktop.org/wiki/MesaDrivers