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

gftp, X & cthread problems



I've been adding lots of #ifdef's to gftp to get it to work with
cthreads (it's pthread normally) but I've got a couple of problems.
Firstly, I can't find a cthread equivalent for pthread_kill() (used to
kill a thread). The closest appears to be cthread_mach_msg() but that
function is excessively scarey and I've not been able to dechipher its
use from the docs; the say refer to the documentation for mach_msg()
which doesn't appear to exist.

Secondly, I have got it compiled and running up to a point.
Specifically, this point:

Program received signal SIGBUS, Bus error.
0x122999d in _XimParseStringFile () from /X11R6/lib/libX11.so.6
(gdb) bt
#0  0x122999d in _XimParseStringFile () from /X11R6/lib/libX11.so.6
#1  0x122847d in _XimLocalSetIMValues () from /X11R6/lib/libX11.so.6
#2  0x1228550 in _XimLocalOpenIM () from /X11R6/lib/libX11.so.6
#3  0x1227823 in _XimServerDestroy () from /X11R6/lib/libX11.so.6
#4  0x11ffe15 in XOpenIM () from /X11R6/lib/libX11.so.6
#5  0x116764f in gdk_im_set_best_style () from /lib/libgdk-1.2.so.0
#6  0x116775b in gdk_im_open () from /lib/libgdk-1.2.so.0
#7  0x1157c93 in gdk_init_check () from /lib/libgdk-1.2.so.0
#8  0x10b4376 in gtk_init_check () from /lib/libgtk-1.2.so.0
#9  0x10b47f1 in gtk_init () from /lib/libgtk-1.2.so.0
[ ... ]

Anyone have any ideas as to whether this is a gtk or X bug or if it's my
meddling with threads?

Bob

--
Bob Ham:  bob@ham.org  http://pkl.net/~node/
IRC: 'node' on irc.openprojects.net: #slashdot  ICQ: 4396425 'node'

"The GNU philosophy is about freedom. To be free one must have
personal power. Personal power is an individual thing, difficult to
obtain and quick to perish." --Krisno Pryosusilo



Reply to: