Bug 278993

Summary: kwin + opengl + vboxvideo + desktop effects = segfault
Product: [Plasma] kwin Reporter: luca <luca.pedrielli>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: andrelmoraes, natgross, rbyshko, shadowcaster787
Priority: NOR    
Version: 4.7.0   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.1
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description luca 2011-08-01 06:30:54 UTC
Application: kwin (4.7.00 (4.7.0))
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.3
Operating System: Linux 3.0.0-desktop586-1.mga2 i686
Distribution: "Mageia Cauldron"

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

enabling desktop effects
trying my distro in virtualbox
desktop effects enabled are basic effects
it is happening every time

libmesagl1-7.11-0.rc3.1.mga2

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb21566d0 (LWP 8462))]

Thread 2 (Thread 0xb0f62b70 (LWP 8469)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb61a802c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0
#2  0xb75361bd in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libc.so.6
#3  0xb6b95897 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb6cad1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0xb6b958df in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb6cad1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0xb61a3e89 in start_thread () from /lib/i686/libpthread.so.0
#6  0xb75274ce in clone () from /lib/i686/libc.so.6

Thread 1 (Thread 0xb21566d0 (LWP 8462)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0xb6989232 in KWin::GLShader::load (this=0xae8448f8, vertexSource=..., fragmentSource=...) at /usr/src/debug/kde-workspace-4.7.0/kwin/libkwineffects/kwinglutils.cpp:798
#9  0xb69899ce in KWin::GLShader::loadFromFiles (this=0xae8448f8, vertexFile=..., fragmentFile=...) at /usr/src/debug/kde-workspace-4.7.0/kwin/libkwineffects/kwinglutils.cpp:745
#10 0xb6989d85 in KWin::GLShader::GLShader (this=0xae8448f8, vertexfile=..., fragmentfile=...) at /usr/src/debug/kde-workspace-4.7.0/kwin/libkwineffects/kwinglutils.cpp:719
#11 0xb698d236 in KWin::ShaderManager::initShaders (this=0xae842650) at /usr/src/debug/kde-workspace-4.7.0/kwin/libkwineffects/kwinglutils.cpp:1220
#12 0xb698d8fd in KWin::ShaderManager::ShaderManager (this=0xae842650) at /usr/src/debug/kde-workspace-4.7.0/kwin/libkwineffects/kwinglutils.cpp:1077
#13 0xb698d95e in KWin::ShaderManager::instance () at /usr/src/debug/kde-workspace-4.7.0/kwin/libkwineffects/kwinglutils.cpp:1059
#14 0xb768d12e in KWin::SceneOpenGL::SceneOpenGL (this=0x8b03ef0, ws=0x85d48f0) at /usr/src/debug/kde-workspace-4.7.0/kwin/scene_opengl_glx.cpp:96
#15 0xb7675f21 in KWin::Workspace::setupCompositing (this=0x85d48f0) at /usr/src/debug/kde-workspace-4.7.0/kwin/composite.cpp:128
#16 0xb75ddead in KWin::Workspace::slotReinitCompositing (this=0x85d48f0) at /usr/src/debug/kde-workspace-4.7.0/kwin/workspace.cpp:1149
#17 0xb75e57cd in KWin::Workspace::qt_metacall (this=0x85d48f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfd426cc)
    at /usr/src/debug/kde-workspace-4.7.0/build/kwin/workspace.moc:436
#18 0xb646f743 in QDBusConnectionPrivate::deliverCall (this=0x84e2208, object=0x85d48f0, msg=..., metaTypes=..., slotIdx=-1231423248) at qdbusintegrator.cpp:941
#19 0xb647a9f6 in QDBusCallDeliveryEvent::placeMetaCall (this=0x889eff0, object=0x85d48f0) at qdbusintegrator_p.h:103
#20 0xb632aaaf in QObject::event (this=0x85d48f0, e=0x889eff0) at kernel/qobject.cpp:1217
#21 0xb5814fb4 in QApplicationPrivate::notify_helper (this=0x84ff9c8, receiver=0x85d48f0, e=0x889eff0) at kernel/qapplication.cpp:4462
#22 0xb5819f97 in QApplication::notify (this=0xbfd42ef0, receiver=0x85d48f0, e=0x889eff0) at kernel/qapplication.cpp:3862
#23 0xb71598a1 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0xb7604801 in KWin::Application::notify (this=0xbfd42ef0, o=0x85d48f0, e=0x889eff0) at /usr/src/debug/kde-workspace-4.7.0/kwin/main.cpp:365
#25 0xb6314f2e in QCoreApplication::notifyInternal (this=0xbfd42ef0, receiver=0x85d48f0, event=0x889eff0) at kernel/qcoreapplication.cpp:731
#26 0xb6318ccc in sendEvent (receiver=0x0, event_type=0, data=0x84d0998) at kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x84d0998) at kernel/qcoreapplication.cpp:1372
#28 0xb6318e1c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1265
#29 0xb58cd669 in sendPostedEvents (this=0x84d1648, flags=...) at ../../src/corelib/kernel/qcoreapplication.h:220
#30 QEventDispatcherX11::processEvents (this=0x84d1648, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#31 0xb631413d in QEventLoop::processEvents (this=0xbfd42e24, flags=...) at kernel/qeventloop.cpp:149
#32 0xb63143b9 in QEventLoop::exec (this=0xbfd42e24, flags=...) at kernel/qeventloop.cpp:201
#33 0xb6318ef0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#34 0xb5812d34 in QApplication::exec () at kernel/qapplication.cpp:3736
#35 0xb7607495 in kdemain (argc=3, argv=0xbfd43164) at /usr/src/debug/kde-workspace-4.7.0/kwin/main.cpp:514
#36 0x080485db in main (argc=3, argv=0xbfd43164) at /usr/src/debug/kde-workspace-4.7.0/build/kwin/kwin_dummy.cpp:3

Possible duplicates by query: bug 277271, bug 277073, bug 276230, bug 275679, bug 265824.

Reported using DrKonqi
Comment 1 Martin Flöser 2011-08-01 06:37:32 UTC
crashes in the driver - not much we cand do about it.
Comment 2 Thomas Lübking 2011-08-10 22:16:57 UTC
*** Bug 279845 has been marked as a duplicate of this bug. ***
Comment 3 Martin Flöser 2011-08-14 15:03:08 UTC
*** Bug 280077 has been marked as a duplicate of this bug. ***
Comment 4 Martin Flöser 2011-08-14 15:04:50 UTC
should be fixed in master and branch:


commit 29911870d2691e30fc9aefb48a252871f6131145
Author: Martin Gräßlin 
Date:   Wed Aug 3 20:00:11 2011 +0200

    Detect Driver "Software Rasterizer"
    
    Fixes a major regression which allowed OpenGL
    compositing to be used with software rasterizer, which
    either did not work or crashed directly.
    
    Cherry-picked from cf2f572 in branch KDE/4.7.
Comment 5 Martin Flöser 2011-09-07 05:04:11 UTC
*** Bug 281516 has been marked as a duplicate of this bug. ***
Comment 6 Roman 2012-02-08 18:51:06 UTC
Created attachment 68633 [details]
New crash information added by DrKonqi

kwin (4.7.2 (4.7.2) "release 5") on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed:

Used Alt+Shift+F12 to switch effects on. Each time KWin crashed!

Note: This bug is claimed to be fixed in 4.7.1, however I have it with 4.7.2.

-- Backtrace (Reduced):
#7  0xb6a1e2e2 in load (fragmentSource=..., vertexSource=..., this=0x84239b0) at /usr/src/debug/kde-workspace-4.7.2/kwin/libkwineffects/kwinglutils.cpp:807
#8  KWin::GLShader::load (this=0x84239b0, vertexSource=..., fragmentSource=...) at /usr/src/debug/kde-workspace-4.7.2/kwin/libkwineffects/kwinglutils.cpp:796
#9  0xb6a1ea66 in KWin::GLShader::loadFromFiles (this=0x84239b0, vertexFile=..., fragmentFile=...) at /usr/src/debug/kde-workspace-4.7.2/kwin/libkwineffects/kwinglutils.cpp:752
#10 0xb6a1ee25 in KWin::GLShader::GLShader (this=0x84239b0, vertexfile=..., fragmentfile=...) at /usr/src/debug/kde-workspace-4.7.2/kwin/libkwineffects/kwinglutils.cpp:726
#11 0xb6a223e8 in KWin::ShaderManager::loadFragmentShader (this=0x828ab20, vertex=KWin::ShaderManager::GenericShader, fragmentFile=...) at /usr/src/debug/kde-workspace-4.7.2/kwin/libkwineffects/kwinglutils.cpp:1185
Comment 7 Thomas Lübking 2012-02-08 18:57:12 UTC
is this in VBOX at all?
What's the output when starting "kwin --replace &" from konsole?