X (with composite extension enabled in xorg.conf) crashes when e.g. glxgears terminates, because __glXMesaScreenDestroy tries (at xf86glx.c:284) to access mesaScreen->xm_vis[i] for the last visual too, which isn't a mesa visual though, but has been created by the composite extension.
*** Bug 9220 has been marked as a duplicate of this bug. ***
A workaround has been committed by anholt (7d2ec92170ebbdfa10a05734cb7cfaac97d19d65)
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.