A patch was posted by Chris Wilson today on the dri-devel mailing list that fixes this crash for me:
glx: Refcnt the GLXDrawable to avoid use after free with multiple FreeResource Although there may be more than one resource handles pointing to the Drawable, we only want to destroy it once and only reference the resource which may have just been deleted on the first instance. v2: Apply fixes and combine with another bug fix from Michel Dänzer, https://bugs.freedesktop.org/show_bug.cgi?id=28181 see http://lists.freedesktop.org/archives/dri- devel/2010-December/006137.html ** Bug watch added: freedesktop.org Bugzilla #28181 http://bugs.freedesktop.org/show_bug.cgi?id=28181 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/651294 Title: X crash on KDM logout (still - yes, really) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs