[fpc-pascal] Database problem on Solaris SPARC

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Jul 12 14:20:19 CEST 2012

Thomas Schatzl wrote:
> Hi,
> On Thu, 2012-07-12 at 09:47 +0000, Mark Morgan Lloyd wrote:
>> Ludo Brands wrote:
>> Builds OK on SPARC Solaris 10 using 2.6.0, but on running get a 
>> consistent error
>> 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 <---)

Although it's OK on Linux. However that pint64() could be relevant.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list