[Xcb] [Bug 27595] xcb_io.c: synchronization problem

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 13 03:27:13 PDT 2010


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

Rami Ylimaki <rami.ylimaki at vincit.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #3 from Rami Ylimaki <rami.ylimaki at vincit.fi> 2010-04-13 03:27:13 PDT ---
(In reply to comment #2)
> Thanks for the test case! It made the bug pretty easy to track down. I've
> pushed a fix to libX11 git. It looks like this has indeed been broken in every
> XCB-enabled release of libX11 ever. Oops. ...I blame keithp. ;-)
> 
> After applying the fix, I found that the test program hangs in XCloseDisplay on
> the data_disp connection, waiting for the server to respond to an XSync. I had
> to insert "XRecordDisableContext (ctrl_disp, rc);" before that to get it to
> exit successfully. Is that expected? I'm not sure how Record is supposed to
> work.

Thanks for fixing it so quickly.

You are right, the test case had a bug and XRecordDisableContext call should be
there. The original test case had that call but I removed it when trying to
minimize it.

It's also possible to make the test case work without XRecordDisableContext by
executing
    XCloseDisplay (ctrl_disp);
    XCloseDisplay (data_disp);
instead of
    XCloseDisplay (data_disp);
    XCloseDisplay (ctrl_disp);
at the end of the case.

-- 
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