Re: Spawning new session leads to crash
Please check the value of the serial number in pDrawable and pGC in damagePolyFillRect. If they don't match, then the X server incorrectly failed to revalidate the drawables Please also check pDrawable->type and pGC->pCompositeClip. If type is 0 (i.e. DRAWABLE_WINDOW), then the clip region should have been set to NULL during the switch.