Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-announcepgsql-hackerspgsql-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

pgsql-announce by date

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

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group