[fpc-devel] Bus error in fpc_PopAddrStack

Jonas Maebe jonas.maebe at elis.ugent.be
Thu May 13 17:57:38 CEST 2010


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).

> The role of fpc_PopAddrStack is not clear to me. Does it mean, that an exception occurred somewhere and the application would crash later anyway?

No.


Jonas


More information about the fpc-devel mailing list