[Xcb] Looking for ways to find a threading issue

Clemens Eisserer linuxhippy at gmail.com
Thu Nov 14 11:21:25 PST 2013


Hi,

I am trying to hunt down what seems to be a threading issue in OpenJDK's
codebase.
OpenJDK does not call XInitThreads, but instead uses its own locks to
protect xlib from beeing accessed concurrently, however it seems somewhere
a call to xlib slips through that lock.

I defined XTHREADS_WARN in xlib, but it didn't spot anything.
Is there any additional support  for finding this kind of issue in XCB and
/or Xlib?

Thank you in advance, Clemens

The error-message was:

[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not
been called
[xcb] Aborting, sorry about that.
java: xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_
>
> lost' failed.
> Aborted (core dumped)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20131114/78147eb2/attachment.html>


More information about the Xcb mailing list