"Sami Aario" sami.aario@surfeu.fi writes:
See how after four calls to RtlEnterCriticalSection, LockCount starts to be 0? So a pretty good theory is that the critical section is acquired, and then not released, during the loading and initialization of /usr/X11R6/lib/libXrender.so.1.
Most likely this is the missing UnlockDisplay() call in XRenderQueryFormat(). This was fixed in XFree 4.2.0.