[Xcb] XCB on *BSD: many pthread-related problems

Diego 'Flameeyes' Pettenò flameeyes at gentoo.org
Sat Nov 4 04:58:19 PST 2006


On Saturday 04 November 2006 07:24, Jamey Sharp wrote:
> First off, thanks for testing XCB on non-Linux. :-)
I like testing :)

> I'm very surprised that you're having trouble on FreeBSD, because I
> believe Eric Anholt has been testing this code on that OS, and I'm sure
> he'd have complained at me if he'd seen this problem.
With all due respect, I'm not sure of it. Last time I had an answer similar to 
this (Eric didn't find any problem) was when the Gentoo snapshot of modular 
Xorg before release failed to build for me.. I tried to find a solution to 
that but my patched got overlooked or turned down as Gentoo/FreeBSD 
specific[1], the problems then afterward encountered and fixed by him.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=4429

> I'm also not convinced I understand the symptom you're seeing. Your X
> server surely starts just fine, right?
Yep. I haven't tried yet but I assume that also twn will start just fine.. 
xterm no unfortunately..

> I assume the problem is 
> that your applications fail to load and startx or xdm or whatever you're
> using kills the X server as a result.
It was being killed by a few utilities that failed to start, after rebuilding 
those against the new libX11 it's no more killed. The rest of the programs 
does not start anyway, but that's not much of a problem now.

> Actually, libX11 and XCB still aren't (exclusively) threaded libraries.
> They're meant to work with both multi-threaded and single-threaded
> programs. So I suspect you have the wrong fix.
Might be. I tried to look around in the sources and I actually thought it was 
supposed to be threaded, as it currently fails at not being that way :)

> libX11 has code for this. See where configure.ac defines thrstubs, and
> see src/UIThrStubs.c. (And why isn't this code enough for your system?
> Pure XCB apps would fail, but Xlib apps ought to still work.)
Looking at it right now, it might just be that xcb-xlib uses some functions 
that are not stubbed already.

> If you wanted to try your hand at such a patch for XCB, it'd be a big
> help. Josh is quite busy...
Will give a try to this later on today then.

-- 
Diego "Flameeyes" Pettenò - http://farragut.flameeyes.is-a-geek.org/
Gentoo/Alt lead, Gentoo/FreeBSD, Video, Sound, ALSA, PAM, KDE, CJK, Ruby ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20061104/321d20f8/attachment.pgp


More information about the Xcb mailing list