XTS test Xlib17/XRebindKeysym hangs
With recent (and current Xlib) which as thread support enabled from the constructor, XTS Xlib17/XRebindKeysym hangs.
$ TET_RESFILE=/tmp/XCopyColormapAndFree.log /usr/libexec/xts5/Xlib17/XRebindKeysym
Build libX11 (and all other dependent libraries) with XTHREADS_WARN=1
gives the root cause of the problem:
Xlib ERROR: XKBGetMap.c line 575 thread 1fc6e580: locking display already locked at KeyBind.c line 937
Basically, we have a deadlock because XRebindKeysym()
calls XkbGetUpdatedMap()
(indirectly) from within the display lock, the latter also acquiring the display lock.