On Mon, Jun 25, 2012 at 03:16:22PM +0200, Michal Srb wrote:
I can confirm this gets stuck as well on my OpenSuSE 12.1 machine.
The libX11 code contains following comment just above the pthread_cond_wait it is stuck on:
/* If some thread is already waiting for events, * it will get the first one. That thread must * process that event before we can continue. */ /* FIXME: That event might be after this reply, * and might never even come--or there might be * multiple threads trying to get events. */
Fedora 13 uses older libX11 that doesn't contain this bug yet.
In upstream, this was fixed by commit fd85aca7a616c595fc17b2520f84316a11e8906f. I can confirm your application doesn't get stuck on my machine with upstream Xorg build.
Thanks a lot, Michal! openSUSE 12.2 is going to ship with libX11 1.5.0, which already contains this fix. Stefan Public Key available ------------------------------------------------------ Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH Tel: 0911-740 53 0 Maxfeldstraße 5 FAX: 0911-740 53 479 D-90409 Nürnberg http://www.suse.de Germany -------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse-xorg+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xorg+owner@opensuse.org