A user's multi-threaded applications can hang when such the application causes an _XRead to be issued from Xlib.
Workaround: You can either:
Not use multiple threads
or
Restrict all access to Xlib routines to only one of the multiple threads.