Has anyone used pth with Motif?
I have started to thread my Motif program and I have been getting
arithmetic exceptions.
This is being run on Aix 4.33, but I have had troubles on other
platforms as well.
Here is a backtrace when it dumps core in gdb:
----------------------------------------
Program received signal SIGFPE, Arithmetic exception.
0xd0262884 in getcontext ()
(gdb) bt
#0 0xd0262884 in getcontext ()
#1 0x100735b4 in __pth_mctx_set ()
#2 0x1006ebc8 in pth_spawn ()
----------------------------------------
I have even had this arithmetic exception when the program calls
pth_init() at the very beginning of the program. The exception in
pth_init() actually occurs on other peoples accounts every time but
never on my own account, so I don't know if it has to do with some
environment settings or what.
I realize that older versions of Motif are not considered thread safe
but I only switch threads when the main event loop is idle or when I
wait for a forked process inside of a thread. Basically the main
thread runs the event handler loop and every cmd is a thread that
forks an external program and waits for it to finish. I am hoping
that because pth is non-preemptive, I will be able to thread a motif
program.
Any help or suggestions would be appreciated.
thanks,
Kashama.
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager (Majordomo) [EMAIL PROTECTED]