A problem of application based on X lib
DonDaniel
kavaii_dj at hotmail.com
Fri Apr 24 02:56:04 PDT 2009
Hello:
I'm a student in Fudan University, China.
Recently I met a problem about the program written with X lib:
In my program, I design two threads, one is to receive native event(Event Receiver), while the other
one is to do proper operations according to the events(Event handler).
However once the event handler calls the function XAllocColor() and the other functions like "get",
this thread will may be hung. Then once I trigger some events, this thread will be waken up, but reading
several wrong data. The event receiver thread is always runnable and correct.
I don't know whether this problem has relationship with the version of libX11, and don't know whether
it's proper to ask this question here, to this mail. Just have a try, with the wish that some one may help me.
Thank you very much!
The stack trace here, of the blocked thread(additional: the XAllocColor() is not always be blocked):
#0 0xff0c12c0 in __pollsys () from /lib/libc.so.1
#1 0xff0b4514 in _pollsys () from /lib/libc.so.1
#2 0xff06204c in pselect () from /lib/libc.so.1
#3 0xff0623c4 in select () from /lib/libc.so.1
#4 0xdcf1d1f4 in _XWaitForReadable () from /usr/lib/libX11.so.4
#5 0xdcf1d024 in _XRead () from /usr/lib/libX11.so.4
#6 0xdcf1df34 in _XReply () from /usr/lib/libX11.so.4
#7 0xdcf30c58 in XAllocColor () from /usr/lib/libX11.so.4
My application is developed on Solaris 10/sparc v9.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――
董剑
复旦大学并行处理研究所319室
上海市浦东新区张衡路825号 201203
Daniel Dong
Parallel Processing Institute
Fudan University
825 Zhangheng Road, Shanghai
P.R. China, 201203
_________________________________________________________________
上Windows Live 中国首页,下载最新版Messenger!
http://im.live.cn/
More information about the xorg-devel
mailing list