Re: segfault caused by heimdal (was: SUSE port) - Mailing list pgsql-hackers

From Reinhard Max
Subject Re: segfault caused by heimdal (was: SUSE port)
Date
Msg-id Pine.LNX.4.61.0501122029450.28995@wotan.suse.de
Whole thread Raw
In response to Re: segfault caused by heimdal (was: SUSE port)  (Kurt Roeckx <Q@ping.be>)
List pgsql-hackers
On Wed, 12 Jan 2005 at 20:28, Kurt Roeckx wrote:

> This is because the proper prototype is:
> extern char const *error_message (long);
> 
> And C automaticly generates a prototype with in int instead.
> 
> On 32 bit platforms this ussualy isn't a problem since both int and 
> long are ussualy both 32 bit, but on x86_64 a long is 64 bit while 
> an int is only 32.

It's actually not the long argument, but the returned pointer that 
caused the segfault.

But this only explains why it didn't crash on i386, but not why it 
also didn't crash on IA64, ppc64 and s390x which are also LP64 
platforms.

cuReinhard


pgsql-hackers by date:

Previous
From: Kurt Roeckx
Date:
Subject: Re: segfault caused by heimdal (was: SUSE port)
Next
From: "Jonah H. Harris"
Date:
Subject: Re: Much Ado About COUNT(*)