[Xcb] Adding pthread stubs into libxcb

Jamey Sharp jamey at minilop.net
Tue Nov 7 16:05:57 PST 2006


On Tue, Nov 07, 2006 at 03:43:18PM -0800, Eric Anholt wrote:
> I'm still getting a bunch of:
> 
> Assertion failed: (!c->xlib.lock), function xcb_xlib_lock, file xcb_xlib.c, line 41.
> Fatal error (6).zsh: abort (core dumped)  emacs
> 
> #7  0x080d5f28 in abort ()
> #8  0x285458db in __assert () from /lib/libc.so.7
> #9  0x285938c4 in xcb_xlib_lock (c=0x84f2000) at xcb_xlib.c:41
> #10 0x28399ea5 in _XCBLockDisplay (dpy=0x84f1000) at xcb_lock.c:20
> #11 0x28380a49 in XInternAtom (dpy=0x84f1000, name=0x28435d7d "XIM_SERVERS", 
>     onlyIfExists=1) at IntAtom.c:178
> #12 0x283b95cd in _XimFilterPropertyNotify (display=0x84f1000, window=82, 
>     event=0xbfbd0960, client_data=0x0) at imInsClbk.c:97
> #13 0x28377e2e in XFilterEvent (ev=0xbfbd0960, window=0) at FilterEv.c:99

Oh, that's bug #8582. Sorry, I lost track of it. Apparently, things that
register event filters expect to be able to acquire the display lock in
the callback, so Xlib needs to drop the lock before the call, instead of
after. An obvious patch is included in that bug report.

The fix is a matter of moving one line, but I didn't do it yet because I
couldn't find any documentation about the preconditions on filter
callbacks, so I couldn't decide if the fix was actually correct.

Comments welcome, or feel free to commit the fix.

--Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20061107/da5fe42e/attachment.pgp


More information about the Xcb mailing list