gtk application hangs



Hi All,

I am currently running a gtk application that takes up 100% CPU time.
I'm not sure if it is caused by the gtk code but I'll run it by you and
see what you think. The gdb backtrace of the suspended program commonly
gives the following:

(gdb) bt
#0  0x407a71e2 in select () from /lib/libc.so.6
#1  0x408ee084 in __JCR_LIST__ () from /usr/X11R6/lib/libX11.so.6
#2  0x4083f3f7 in _XRead () from /usr/X11R6/lib/libX11.so.6
#3  0x4083fd0d in _XReply () from /usr/X11R6/lib/libX11.so.6
#4  0x4083b775 in XSync () from /usr/X11R6/lib/libX11.so.6

Also, when I run strace to view the system calls, the following
functions are called repeatedly:

write(3, "\230\4\2\0\0\1\340\1", 8)     = 8
read(3, 0xbfffefe0, 32)                 = -1 EAGAIN (Resource
temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])

I'm not sure how to use gdb to find out which part of my code calls
these functions.

Help is appreciated.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]