Bug 16617 - libX11 with xcb hang problem
Summary: libX11 with xcb hang problem
Status: RESOLVED FIXED
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: 1.1
Hardware: x86 (IA32) other
: highest critical
Assignee: Jamey Sharp
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 07:32 UTC by Karol Szkudlarek
Modified: 2009-12-10 05:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
test case source C code (1.21 KB, text/x-csrc)
2008-07-04 07:32 UTC, Karol Szkudlarek
Details

Description Karol Szkudlarek 2008-07-04 07:32:31 UTC
Created attachment 17531 [details]
test case source C code

Hello!


This simple test case hangs on Linux (ubuntu 8.04) where libX11 uses xcb 1.1 library. On Linux where libX11 uses non-xcb libraries program run ok that means
it should print:

XInitThreads  1
>x=0,y=0
>x=0,y=0
>x=0,y=0
>x=0,y=0
>x=0,y=0
<x=0,y=0
<x=0,y=0
<x=0,y=0
<x=0,y=0
<x=0,y=0


It creates 5 threads and run fun() function for each thread. And never occurs
28 line of t.c test case:
  printf("<x=%d,y=%d\n",dest_x_return,dest_y_return);

where use xcb only prints:

XInitThreads  1
>x=0,y=0
>x=0,y=0
>x=0,y=0
>x=0,y=0
>x=0,y=0

and hang.

Problem consider Ubuntu 8.04 LTS (i386). Ubuntu 7.10 is not affected because libX11 not use XCB.


it was compiled via:
$  gcc -lX11 -lpthread t.c 

gcc 4.2.3
Comment 1 Karol Szkudlarek 2008-07-07 03:07:23 UTC
Hello!

Similar probleam seems unresolved:

https://bugs.launchpad.net/ubuntu/+source/libx11/+bug/232476

Comment 2 Karol Szkudlarek 2008-07-17 06:15:12 UTC
Hello!

Has anybody from the XCB developers reading this bug list? Has anybody from the XCB developers could dig into this problem or write something that I will see
that this project is still alive?
Comment 3 Jamey Sharp 2009-10-09 08:25:23 UTC
I'm a year late in replying, so "sorry" is inadequate, but it's what I've got.

I can't reproduce a hang in your test program with current libX11. Is your problem solved now? If so we'll close this bug.
Comment 4 Karol Szkudlarek 2009-12-10 05:26:42 UTC
Hi!

I did testcase again and on ubuntu 8.04 LTS still hang... But on ubuntu 9.10 (i386, and amd64) seems that is OK and testcase runs correctly.



Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.