[Xcb] [Bug 23192] racy access to dpy->synchandler in libX11 >= 1.1.99.2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 15 10:47:29 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=23192

--- Comment #4 from Josh Triplett <josh at freedesktop.org> 2010-04-15 10:47:28 PDT ---
(In reply to comment #3)
> Jamey and I had a reason why we couldn't add the locks suggested in comment 1. 
> Currently trying to swap in enough Xlib/XCB state to remember that reason. :)

So, for one thing, _XSetPrivSyncFunction gets called with the Display lock
held, so it shouldn't call LockDisplay.

However, _XPrivSyncFunction gets called from SyncHandle, which always happens
*after* UnlockDisplay, because Xlib hates threads and wants them to suffer.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Xcb mailing list