When resizing a java application which uses Java's OpenGL backend, I get the attached crash.
How to reproduce:
1. Install OpenJDK-6-jre + openjdk-6-jdk
2. run jconsole -J-Dsun.java2d.opengl=True
3. resize the window
I used mesa shipped with fedora-15 + updates.
dri2InvalidateBuffers (dpy=<optimized out>, drawable=<optimized out>) at dri2_glx.c:682
682 if (pdraw && psc->f && psc->f->base.version >= 3 && psc->f->invalidate)
#0 dri2InvalidateBuffers (dpy=<optimized out>, drawable=<optimized out>) at dri2_glx.c:682
#1 0x00007f7415a1b541 in DRI2WireToEvent (dpy=0x7f74341d13a0, event=0x7f73ec011358, wire=0x7f73ec00eac0) at dri2.c:136
#2 0x00000038d4248231 in _XEnq () from /usr/lib64/libX11.so.6
#3 0x00000038d4245003 in ?? () from /usr/lib64/libX11.so.6
#4 0x00000038d4245a35 in _XEventsQueued () from /usr/lib64/libX11.so.6
#5 0x00000038d42364ff in XEventsQueued () from /usr/lib64/libX11.so.6
#6 0x00007f74310117b1 in ?? ()
#7 0x0000000000000190 in ?? ()
#8 0x0000000000000000 in ?? ()
Thanks for the detailed steps to reproduce!
Author: Eric Anholt <firstname.lastname@example.org>
Date: Wed Jun 1 13:39:39 2011 -0700
glx: Fix use-before-null-check in dri2InvalidateBuffers().
The compiler used our dereference here to skip the NULL check below.
Fixes window resize in "jconsole -J-Dsun.java2d.opengl=True" under
Reviewed-by: Matt Turner <email@example.com>
Reviewed-by: Ian Romanick <firstname.lastname@example.org