Regression in trusty, i965_dri.so crashes

Bug #1289243 reported by Albert Astals Cid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mesa
Fix Released
High
mesa (Debian)
Confirmed
Unknown
mesa (Fedora)
Unknown
Unknown
mesa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am now getting crashes like

(gdb) bt
#0 0x00007fffe6d74958 in get_stencil_miptree (irb=0x7fffdd870080) at ../../../../../../../src/mesa/drivers/dri/i965/brw_misc_state.c:257
#1 brw_workaround_depthstencil_alignment (brw=brw@entry=0x7fffdc027018, clear_mask=clear_mask@entry=0) at ../../../../../../../src/mesa/drivers/dri/i965/brw_misc_state.c:273
#2 0x00007fffe6d3197d in brw_try_draw_prims (indirect=0x0, max_index=11, min_index=0, ib=0x7fffe621da80, nr_prims=1, prims=0x7fffe621daa0, arrays=0x7fffdc211030, ctx=0x7fffdc027018) at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw.c:415
#3 brw_draw_prims (ctx=0x7fffdc027018, prims=0x7fffe621daa0, nr_prims=1, ib=0x7fffe621da80, index_bounds_valid=<optimized out>, min_index=0, max_index=11, unused_tfb_object=0x0, indirect=0x0) at ../../../../../../../src/mesa/drivers/dri/i965/brw_draw.c:569
#4 0x00007fffe6b8ec03 in vbo_handle_primitive_restart (ctx=ctx@entry=0x7fffdc027018, prim=prim@entry=0x7fffe621daa0, nr_prims=nr_prims@entry=1, ib=ib@entry=0x7fffe621da80, index_bounds_valid=index_bounds_valid@entry=0 '\000', min_index=min_index@entry=4294967295,
    max_index=max_index@entry=4294967295) at ../../../../src/mesa/vbo/vbo_exec_array.c:585
#5 0x00007fffe6b8ff20 in vbo_validated_drawrangeelements (ctx=ctx@entry=0x7fffdc027018, mode=mode@entry=5, index_bounds_valid=index_bounds_valid@entry=0 '\000', start=start@entry=4294967295, end=end@entry=4294967295, count=count@entry=14, type=type@entry=5123,
    indices=indices@entry=0x7fffdc0c6bc0, basevertex=basevertex@entry=0, numInstances=numInstances@entry=1, baseInstance=baseInstance@entry=0) at ../../../../src/mesa/vbo/vbo_exec_array.c:1006
#6 0x00007fffe6b90443 in vbo_exec_DrawElements (mode=5, count=14, type=5123, indices=0x7fffdc0c6bc0) at ../../../../src/mesa/vbo/vbo_exec_array.c:1156
#7 0x00007ffff6744e0c in QSGDefaultRenderer::renderNodes (this=this@entry=0x7fffdc1cc670, nodes=<optimized out>, count=count@entry=40) at scenegraph/coreapi/qsgdefaultrenderer.cpp:536
#8 0x00007ffff674554c in QSGDefaultRenderer::render (this=0x7fffdc1cc670) at scenegraph/coreapi/qsgdefaultrenderer.cpp:281
#9 0x00007ffff674acc8 in QSGRenderer::renderScene (this=this@entry=0x7fffdc1cc670, bindable=...) at scenegraph/coreapi/qsgrenderer.cpp:271
#10 0x00007ffff674adf7 in QSGRenderer::renderScene (this=this@entry=0x7fffdc1cc670) at scenegraph/coreapi/qsgrenderer.cpp:229
#11 0x00007ffff6754365 in QSGContext::renderNextFrame (this=<optimized out>, renderer=0x7fffdc1cc670, fboId=<optimized out>) at scenegraph/qsgcontext.cpp:270
#12 0x00007ffff678139a in QQuickWindowPrivate::renderSceneGraph (this=this@entry=0x662c10, size=...) at items/qquickwindow.cpp:349
#13 0x00007ffff6863483 in QQuickRenderThreadSingleContextWindowManager::run (this=0x6634f0) at items/qquickthreadedwindowmanager.cpp:456
#14 0x00007ffff7629186 in QThreadPrivate::start (arg=0x6634f0) at thread/qthread_unix.cpp:333
#15 0x00007ffff5842182 in start_thread (arg=0x7fffe621e700) at pthread_create.c:312
#16 0x00007ffff5b5312d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

When running some of the tests of unity8 where a few days ago it was fine.

Revision history for this message
Albert Astals Cid (aacid) wrote :

Somehow it fixed itself

Changed in mesa (Ubuntu):
status: New → Fix Released
Revision history for this message
In , Alexander E. Patrakov (patrakov-gmail) wrote :
Download full text (8.0 KiB)

Created attachment 97312
valgrind log

This is a clone of https://bugs.kde.org/show_bug.cgi?id=328496

KWin sometimes gets into a mode when it always crashes on start if desktop effects are enabled. This happens on Haswell hardware.

00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)

The crash looks as follows:

Application: KWin (kwin), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f525dcc3800 (LWP 22941))] Thread 6 (Thread 0x7f523c0b4700 (LWP 22992)): #0 0x00007f5257ef67de in pthread_cond_timedwait () from /lib64/libpthread.so.0 #1 0x00007f5258188624 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f525817bda5 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0 #5 0x00007f525d50158d in clone () from /lib64/libc.so.6 Thread 5 (Thread 0x7f523ae18700 (LWP 23018)): #0 0x00007f5257ef67de in pthread_cond_timedwait () from /lib64/libpthread.so.0 #1 0x00007f5258188624 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f525817bda5 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0 #5 0x00007f525d50158d in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7f523a617700 (LWP 23019)): #0 0x00007f525d4fa403 in select () from /lib64/libc.so.6 #1 0x00007f5258264b21 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0 #4 0x00007f525d50158d in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7f5239c87700 (LWP 23024)): #0 0x00007f5257ef640c in pthread_cond_wait () from /lib64/libpthread.so.0 #1 0x00007f525c6fb86b in ?? () from /usr/lib64/qt4/libQtScript.so.4 #2 0x00007f525c6fb8a9 in ?? () from /usr/lib64/qt4/libQtScript.so.4 #3 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0 #4 0x00007f525d50158d in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7f5238eff700 (LWP 23025)): #0 0x00007f5257ef67de in pthread_cond_timedwait () from /lib64/libpthread.so.0 #1 0x00007f5258188624 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4 #2 0x00007f525817bda5 in ?? () from /usr/lib64/qt4/libQtCore.so.4 #3 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4 #4 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0 #5 0x00007f525d50158d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f525dcc3800 (LWP 22941)): [KCrash Handler] #5 0x00007f51abbbe758 in get_stencil_miptree (irb=0x27cf660) at brw_misc_state.c:257 #6 brw_workaround_depthstencil_alignment (brw=brw@entry=0x7f5238126038, clear_mask=clear_mask@entry=0) at brw_misc_state.c:273 #7 0x00007f51abb7b72d in brw_try_draw_prims (indirect=0x0, max_index=23, min_index=0, ib=0x0, nr_prims=1, prims=0x7fff99c1b300, ...

Read more...

Revision history for this message
In , Alexander E. Patrakov (patrakov-gmail) wrote :
Download full text (7.5 KiB)

Sorry for bad formatting of the crash. Reposting:

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

Thread 6 (Thread 0x7f523c0b4700 (LWP 22992)):
#0 0x00007f5257ef67de in pthread_cond_timedwait () from /lib64/libpthread.so.0
#1 0x00007f5258188624 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2 0x00007f525817bda5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f525d50158d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f523ae18700 (LWP 23018)):
#0 0x00007f5257ef67de in pthread_cond_timedwait () from /lib64/libpthread.so.0
#1 0x00007f5258188624 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2 0x00007f525817bda5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f525d50158d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f523a617700 (LWP 23019)):
#0 0x00007f525d4fa403 in select () from /lib64/libc.so.6
#1 0x00007f5258264b21 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0
#4 0x00007f525d50158d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f5239c87700 (LWP 23024)):
#0 0x00007f5257ef640c in pthread_cond_wait () from /lib64/libpthread.so.0
#1 0x00007f525c6fb86b in ?? () from /usr/lib64/qt4/libQtScript.so.4
#2 0x00007f525c6fb8a9 in ?? () from /usr/lib64/qt4/libQtScript.so.4
#3 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0
#4 0x00007f525d50158d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f5238eff700 (LWP 23025)):
#0 0x00007f5257ef67de in pthread_cond_timedwait () from /lib64/libpthread.so.0
#1 0x00007f5258188624 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2 0x00007f525817bda5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3 0x00007f525818816f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4 0x00007f5257ef2201 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f525d50158d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f525dcc3800 (LWP 22941)):
[KCrash Handler]
#5 0x00007f51abbbe758 in get_stencil_miptree (irb=0x27cf660) at brw_misc_state.c:257
#6 brw_workaround_depthstencil_alignment (brw=brw@entry=0x7f5238126038, clear_mask=clear_mask@entry=0) at brw_misc_state.c:273
#7 0x00007f51abb7b72d in brw_try_draw_prims (indirect=0x0, max_index=23, min_index=0, ib=0x0, nr_prims=1, prims=0x7fff99c1b300, arrays=0x28a4730, ctx=0x7f5238126038) at brw_draw.c:415
#8 brw_draw_prims (ctx=0x7f5238126038, prims=0x7fff99c1b300, nr_prims=1, ib=0x0, index_bounds_valid=&lt;optimized out&gt;, min_index=0, max_index=23, unused_tfb_object=0x0, indirect=0x0) at brw_draw.c:569
#9 0x00007f51ab9da23d in vbo_draw_arrays (ctx=0x7f5238126038, mo...

Read more...

Revision history for this message
In , Kenxeth (kenxeth) wrote :

Huh, I've never seen this failure mode. But it sounds entirely plausible.

The X server's GLX code has a bug where it may randomly return a bogus visual/fbconfig; perhaps it ended up not having stencil, and we crashed?

That bug is fixed in X server git, and the upcoming 1.15.1 and 1.14.6 releases (due any day now). Alternatively, you could try asking KWin to use EGL:

   KWIN_OPENGL_INTERFACE=egl kwin --replace &

Does either of those fix this issue for you?

Revision history for this message
In , Alexander E. Patrakov (patrakov-gmail) wrote :

Tested by applying eec04d76a39a7334de4e00ef9f0f6e44c92b3d91 on top of 1.15.0. Cannot reproduce the bug anymore.

Revision history for this message
In , Chris Bainbridge (chris-bainbridge) wrote :

*** Bug 82793 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Chris Bainbridge (chris-bainbridge) wrote :

*** Bug 85077 has been marked as a duplicate of this bug. ***

Changed in mesa:
importance: Unknown → High
status: Unknown → Fix Released
Changed in mesa (Debian):
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.