[fpc-devel] Bus error in fpc_PopAddrStack

Bernd Mueller mueller.b at gmx.net
Thu May 13 18:13:23 CEST 2010

Jonas Maebe wrote:
> On 13 May 2010, at 17:55, Bernd Mueller wrote:
>> I get a bus error in fpc_PopAddrStack (on ARM-Linux) in a multithreaded
>> application. Maybe, that the local Pointer hp in fpc_PopAddrStack is loaded with an unaligned memory address.
> The most likely reason is that you are at some point executing Pascal code inside threads that haven't been started via the RTL. The exception handling code uses several threadvars, and these must be initialised for each thread (which doesn't happen if you start threads via some other means).

I am using pthreads. I fear, this could be the reason?

Regards, Bernd.

More information about the fpc-devel mailing list