[Mesa-dev] [Bug 29148] New: KWin segfaults when OpenGL desktop effects are enabled

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 19 06:46:57 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29148

           Summary: KWin segfaults when OpenGL desktop effects are enabled
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: alain.perrot at gmail.com


KWin crash with a segmentation fault when OpenGL desktop effects are enabled.
It runs fine when desktop effects are disabled.

The problem appeared a few days ago when I upgraded the mesa packages from the
Xorg-edgers PPA repository.

The last good version of the packages was
7.9.0+git20100714.d023fb39-0ubuntu0sarvatt (commit d023fb39 is "llvmpipe:
Remove redundant alignments").

The first bad version of the packages was
7.9.0+git20100716.41bcd8cb-0ubuntu0sarvatt (commit 41bcd8cb is "mesa: return
retval in _mesa_RenderObjectUnpurgeable()").

My guess (from the stack trace below) is that the commit f8d81c31 "dri2: Track
event mask in client code" may be the culprit.


Software :
- Kubuntu Maverick (development distro) AMD64
- Linux 2.6.35-9-generic (2.6.35rc5)
- KDE SC 4.5rc2 (aka 4.4.92)
- Mesa 7.9.0 (master) from Xorg-edgers PPA repository

Hardware :
- Radeon HD 3870 (RV670)


Stack trace:

Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f425f658780 (LWP 2879))]

Thread 2 (Thread 0x7f4240873710 (LWP 2885)):
#0  0x00007f425eecf6f3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f425b7832be in qt_safe_select (nfds=19, fdread=0x2ccb130,
fdwrite=0x2ccb3c8, fdexcept=0x2ccb660, orig_timeout=0x0) at
kernel/qcore_unix.cpp:82
#2  0x00007f425b7885eb in QEventDispatcherUNIXPrivate::doSelect
(this=0x2ccaf70, flags=<value optimized out>, timeout=<value optimized out>) at
kernel/qeventdispatcher_unix.cpp:219
#3  0x00007f425b78921b in QEventDispatcherUNIX::processEvents (this=0x2acd8c0,
flags=) at kernel/qeventdispatcher_unix.cpp:919
#4  0x00007f425b758792 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f425b758b7c in QEventLoop::exec (this=0x7f4240872d90, flags=) at
kernel/qeventloop.cpp:201
#6  0x00007f425b66422d in QThread::exec (this=<value optimized out>) at
thread/qthread.cpp:490
#7  0x00007f425b7386a8 in QInotifyFileSystemWatcherEngine::run (this=0x298b3b0)
at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f425b6671ae in QThreadPrivate::start (arg=0x298b3b0) at
thread/qthread_unix.cpp:266
#9  0x00007f425b3d6981 in start_thread (arg=<value optimized out>) at
pthread_create.c:304
#10 0x00007f425eed6d6d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f425f658780 (LWP 2879)):
[KCrash Handler]
#6  DRI2WireToEvent (dpy=0x22c3d40, event=0x2db7ea8, wire=0x2df76c0) at
dri2.c:105
#7  0x00007f425d0c517e in _XEnq (dpy=0x22c3d40, event=0x0) at
../../src/XlibInt.c:907
#8  0x00007f425d0c3473 in handle_response (dpy=0x22c3d40, response=0x2df76c0,
in_XReply=0) at ../../src/xcb_io.c:280
#9  0x00007f425d0c3a00 in _XReply (dpy=0x22c3d40, rep=0x7fff176dc3b0,
extra=<value optimized out>, discard=<value optimized out>) at
../../src/xcb_io.c:555
#10 0x00007f425d0bf403 in XSync (dpy=0x22c3d40, discard=0) at
../../src/Sync.c:46
#11 0x00007f425cc4aecf in DRI2DestroyDrawable (dpy=0x22c3d40,
drawable=25166196) at dri2.c:350
#12 0x00007f425cc49ac4 in dri2DestroyDrawable (pdraw=0x2eb4780) at
dri2_glx.c:174
#13 0x00007f425cc43f55 in DestroyDRIDrawable (dpy=<value optimized out>,
drawable=25166728, destroy_xdrawable=0) at glx_pbuffer.c:225
#14 0x00007f425f23ba82 in KWin::SceneOpenGL::Texture::release (this=0x2db5c20)
at ../../kwin/scene_opengl.cpp:1009
#15 0x00007f425f23be11 in KWin::SceneOpenGL::Texture::discard (this=0x2db5c20)
at ../../kwin/scene_opengl.cpp:999
#16 0x00007f425f23bf53 in ~Window (this=0x1800035, __in_chrg=<value optimized
out>) at ../../kwin/scene_opengl.cpp:1304
#17 0x00007f425f23d4bc in KWin::SceneOpenGL::windowClosed (this=0x24999a0,
c=0x2d9c280, deleted=0x0) at ../../kwin/scene_opengl.cpp:933
#18 0x00007f425f229ce9 in KWin::Workspace::finishCompositing (this=0x2627250)
at ../../kwin/composite.cpp:258
#19 0x00007f425f22d069 in KWin::Workspace::fallbackToXRenderCompositing
(this=0x1800035) at ../../kwin/composite.cpp:301
#20 0x00007f425f1ace78 in KWin::Workspace::qt_metacall (this=0x2627250,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2ea8e20) at
./workspace.moc:582
#21 0x00007f425b76b8be in QObject::event (this=0x2627250, e=0x1800035) at
kernel/qobject.cpp:1219
#22 0x00007f425a8adcdc in QApplicationPrivate::notify_helper (this=0x22c1c40,
receiver=0x2627250, e=0x2db84c0) at kernel/qapplication.cpp:4389
#23 0x00007f425a8b37cd in QApplication::notify (this=0x7fff176dd130,
receiver=0x2627250, e=0x2db84c0) at kernel/qapplication.cpp:4270
#24 0x00007f425e9d4966 in KApplication::notify (this=0x7fff176dd130,
receiver=0x2627250, event=0x2db84c0) at ../../kdeui/kernel/kapplication.cpp:309
#25 0x00007f425b759a6c in QCoreApplication::notifyInternal
(this=0x7fff176dd130, receiver=0x2627250, event=0x2db84c0) at
kernel/qcoreapplication.cpp:732
#26 0x00007f425b75c992 in QCoreApplication::sendEvent (receiver=0x0,
event_type=<value optimized out>, data=0x229f150) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value
optimized out>, data=0x229f150) at kernel/qcoreapplication.cpp:1373
#28 0x00007f425a9607b4 in QCoreApplication::sendPostedEvents (this=<value
optimized out>, flags=) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#29 QEventDispatcherX11::processEvents (this=<value optimized out>, flags=) at
kernel/qeventdispatcher_x11.cpp:75
#30 0x00007f425b758792 in QEventLoop::processEvents (this=<value optimized
out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007f425b758b7c in QEventLoop::exec (this=0x7fff176dd070, flags=) at
kernel/qeventloop.cpp:201
#32 0x00007f425b75cc2b in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1009
#33 0x00007f425f1c962d in kdemain (argc=<value optimized out>, argv=<value
optimized out>) at ../../kwin/main.cpp:531
#34 0x00007f425ee0ed8d in __libc_start_main (main=<value optimized out>,
argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized
out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fff176dd738) at
libc-start.c:226
#35 0x00000000004006b9 in _start ()

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list