[fpc-pascal] Database problem on Solaris SPARC

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jul 12 14:44:16 CEST 2012

Thomas Schatzl wrote on Thu, 12 Jul 2012:

> On Thu, 2012-07-12 at 09:47 +0000, Mark Morgan Lloyd wrote:
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to LWP 4]
>> 0x004b08b8 in TPQCONNECTION__LOADFIELD (CURSOR=0xfad601a0,
>> FIELDDEF=0xfad30f20, BUFFER=0xfa5f00bc, CREATEBLOB=fa
>> 803               if FIntegerDatetimes then dbl^ := pint64(buffer)^/1000000;
> Not sure if it applies to your case, but afaik SPARC requires natural
> alignment for memory accesses. "buffer" is not aligned to 8 bytes
> here... (0xfa5f00bc <---)

We only support 32 bit SPARC, and there we split a 64 bit load into  
two 32 bit loads. dbl, assuming it points to a double, should point to  
a 64 bit-aligned memory location though (depending on the cpu, 32 bit  
alignment may be sufficient, but better be safe than sorry).


More information about the fpc-pascal mailing list