[fpc-devel] Bus error in fpc_PopAddrStack
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu May 13 18:19:20 CEST 2010
On 13 May 2010, at 18:13, Bernd Mueller wrote:
> 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?
Yes: "The most likely reason is that you are at some point executing Pascal code inside threads that haven't been started via the RTL".
Jonas
More information about the fpc-devel
mailing list