Re: segfault caused by heimdal (was: SUSE port)

From: Reinhard Max <max(at)suse(dot)de>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: segfault caused by heimdal (was: SUSE port)
Date: 2005-01-12 19:34:40
Message-ID: Pine.LNX.4.61.0501122029450.28995@wotan.suse.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-hackers pgsql-patches

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.

cu
Reinhard

In response to

Browse pgsql-announce by date

  From Date Subject
Next Message Jonah H. Harris 2005-01-12 19:36:15 Re: Much Ado About COUNT(*)
Previous Message Kurt Roeckx 2005-01-12 19:28:39 Re: segfault caused by heimdal (was: SUSE port)

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2005-01-12 19:36:15 Re: Much Ado About COUNT(*)
Previous Message Kurt Roeckx 2005-01-12 19:28:39 Re: segfault caused by heimdal (was: SUSE port)

Browse pgsql-patches by date

  From Date Subject
Next Message Jonah H. Harris 2005-01-12 19:36:15 Re: Much Ado About COUNT(*)
Previous Message Kurt Roeckx 2005-01-12 19:28:39 Re: segfault caused by heimdal (was: SUSE port)