Xorg segfaults on XOpenDisplay multi thread

Matan Drori matan at graphtech.co.il
Mon Dec 29 01:06:27 PST 2008

I'm Using XInitThreads(), and have no use for the other thread functions
since im not sharing a display(XLockDisplay and XUnlockDisplay that
recive a display object).

I'm calling multiple XOpenDisplay calls from different threads.
It looks like a deeper issue since I'm not sharing the display object
if needed i can post my test program here(very small) even tough  i
couldn't re produce it on my openSuse 11.1 machine, only on the IA64
sles 10 sp 2 machine.

Eirik Byrkjeflot Anonsen wrote:
> Matan Drori <matan at graphtech.co.il> writes:
>> Machine spec:
>> IA64
>> /SUSE Linux Enterprise Server/ 10 sp 2
>> xorg x11 6.9.0-50.58
>> I have a very simple test program that opens 4 threads and does
>> XOpenDisplay(opening 4 separate display objects).
>> i keep getting segfaults on different places in the function
>> seems like some kind timing problem that causes memory corruption.
> You have called XInitThreads?  (See "man XInitThreads")
> (I don't know how thread-safe xorg is.  I have the impression that
> there are some issues.  But without XInitThreads(), it isn't supposed
> to be thread-safe).
> eirik
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg

More information about the xorg mailing list