Bug 33889

Summary: kwin crashes when enabling Desktop Cube Effects crashed via gallium r600g driver
Product: Mesa Reporter: Shawn Starr <shawn.starr>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: mgraesslin
Version: 7.10   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Shawn Starr 2011-02-03 20:21:24 UTC
Stack trace with a little bit of what kwin was doing and gallium specific calls

Fedora rawhide: 

Kernel: 2.6.38-0.rc3.git0.1.fc15.x86_64
DRM library: libdrm-2.4.24-0.1.20110106.fc15.x86_64
Mesa: mesa-dri-drivers-7.10-0.24.fc15.x86_64
X Server: xorg-x11-server-Xorg-1.9.99.1-3.20101201.fc15.x86_64

Don't think you need this but doesn't hurt:

DDX: xorg-x11-drv-ati-6.14.0-1.20110204gita27b5dbd9.fc15.x86_64

Thread 1 (Thread 0x7fd77e242860 (LWP 3820)):
[KCrash Handler]
#6  0x00007fd7708863c9 in r600_bo (radeon=0x23b02b0, size=128, alignment=4096,
binding=32, usage=0) at r600_bo.c:43
#7  0x00007fd77087b909 in r600_buffer_create (screen=0x23b0420,
templ=0x7fffc5bd2d10) at r600_buffer.c:62
#8  0x00007fd7709cdb3f in pipe_buffer_create (size=128, bind=32, screen=<value
optimized out>) at ../../src/gallium/auxiliary/util/u_inlines.h:183
#9  st_upload_constants (st=0x2a1cfb0, params=0x2288640, shader_type=0) at
state_tracker/st_atom_constbuf.c:80
#10 0x00007fd7709cd275 in st_validate_state (st=0x2a1cfb0) at
state_tracker/st_atom.c:172
#11 0x00007fd77092dcc3 in st_draw_vbo (ctx=0x29dabc0, arrays=0x2a201c8,
prims=0x2a1e8e4, nr_prims=1, ib=0x0, index_bounds_valid=<value optimized out>,
min_index=0, max_index=3) at state_tracker/st_draw.c:649
#12 0x00007fd77092b999 in vbo_exec_vtx_flush (exec=<value optimized out>,
unmap=<value optimized out>) at vbo/vbo_exec_draw.c:381
#13 0x00007fd77092961c in vbo_exec_FlushVertices_internal (ctx=<value optimized
out>, unmap=<value optimized out>) at vbo/vbo_exec_api.c:911
#14 0x00007fd770929812 in vbo_exec_FlushVertices (ctx=<value optimized out>,
flags=1) at vbo/vbo_exec_api.c:945
#15 0x00007fd770992a3e in _mesa_PopAttrib () at main/attrib.c:858
#16 0x0000003d00e13c45 in KWin::PaintClipper::Iterator::~Iterator
(this=0x7fffc5bd35a0, __in_chrg=<value optimized out>) at
/usr/src/debug/kdebase-workspace-4.6.0/kwin/lib/kwineffects.cpp:873
#17 0x0000003d00e1d2c2 in KWin::renderGLGeometry (region=..., count=4,
vertices=0x2ef8940, texture=0x2cc04a0, color=0x0, dim=2, stride=0) at
/usr/src/debug/kdebase-workspace-4.6.0/kwin/lib/kwinglutils.cpp:180
#18 0x0000003cffad0616 in KWin::SceneOpenGL::Window::paintDecoration
(this=0x2f290d0, decoration=<value optimized out>,
decorationType=KWin::SceneOpenGL::Window::DecorationTop, region=..., rect=...,
data=..., quads=..., updateDeco=true) at
/usr/src/debug/kdebase-workspace-4.6.0/kwin/scene_opengl.cpp:1633
#19 0x0000003cffad6679 in performPaint (data=..., region=..., mask=9,
this=<value optimized out>) at
/usr/src/debug/kdebase-workspace-4.6.0/kwin/scene_opengl.cpp:1545
#20 KWin::SceneOpenGL::Window::performPaint (this=<value optimized out>,
mask=9, region=..., data=...) at
/usr/src/debug/kdebase-workspace-4.6.0/kwin/scene_opengl.cpp:1408
#21 0x0000003cffac10a9 in KWin::Scene::finalDrawWindow (this=<value optimized
out>, w=<value optimized out>, mask=9, region=<value optimized out>,
data=<value optimized out>) at
Comment 1 Michel Dänzer 2011-02-04 03:30:54 UTC
Can you test if cherry-picking commit 63b9790a55038c262b57c846a5f7067ea33fc60f ('r600g: move user fence into base radeon structure') from Git master fixes this?
Comment 2 Shawn Starr 2011-02-04 10:22:08 UTC
Can certainly do so, I will grab Fedora's SRPM and replace tarball with git-master with that commit removed.
Comment 3 Michel Dänzer 2011-02-04 14:20:11 UTC
(In reply to comment #2)
> Can certainly do so, I will grab Fedora's SRPM and replace tarball with
> git-master with that commit removed.

I asked for testing with that commit *applied*, not with it removed...
Comment 4 Shawn Starr 2011-02-04 16:49:21 UTC
oh then just git master and roll it up into an RPM to confirm, will do this.
Comment 5 Shawn Starr 2011-02-04 16:51:08 UTC
correction cherry-pick != remove but add, I will test git master and report back soon.
Comment 6 Michel Dänzer 2011-02-07 07:52:45 UTC
(In reply to comment #4)
> oh then just git master and roll it up into an RPM to confirm, will do this.

That's still not what I asked... while it'll be good to know if the bug is fixed with master, that won't tell us if applying just that change to the 7.10 branch fixes the problem.
Comment 7 Shawn Starr 2011-07-11 20:51:56 UTC
This isn't happening anymore, thus close it.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.