[fpc-devel] porting fpc to Blue Gene/P: a cthreads bug
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Jul 29 21:53:42 CEST 2009
On 29 Jul 2009, at 15:50, Peter Popov wrote:
> I was able to trace it to the unwinding of the gcc exception handler
> for the terminating thread. An obvious assertation fails (in unwind-
> dw2.c), which means that some basic startup data of gcc is either 1)
> messed up 2) not initialized.
The problem is probably that FPC either does not generate DWARF CFI
info for Linux/PowerPC, or that the DWARF CFI info it generates is
wrong.
> So, I have two related questions:
> 1. Is the pthread_exit(...) call essential in ThreadMain?
No. If you don't call pthread_exit, then the function resiult of
ThreadMain will be reported as the thread exit value.
Jonas
PS: please do not create new mailing list threads by replying to older
messages, because then the mailing list archive and several mail
clients will group your message with that previous thread.
More information about the fpc-devel
mailing list