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

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

From: Kurt Roeckx <Q(at)ping(dot)be>
To: Reinhard Max <max(at)suse(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: segfault caused by heimdal (was: SUSE port)
Date: 2005-01-12 19:28:39
Message-ID: 20050112192839.GA12848@ping.be (view raw or flat)
Thread:
Lists: pgsql-announcepgsql-hackerspgsql-patches
On Wed, Jan 12, 2005 at 07:36:52PM +0100, Reinhard Max wrote:
> 
> The problem is, that the heimdal implementation of kerberos5 used on 
> sles8 needs an extra include statement for com_err.h in 
> src/interfaces/libpq/fe-auth.c to get the prototype for 
> error_message(), while on newer SUSE-releases using the MIT Kerberos5 
> implementation this prototype is provided by krb5.h itself.
[...]
> I am still not sure why the crash only happened on x86_64.

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.


Kurt


In response to

Responses

pgsql-announce by date

Next:From: Reinhard MaxDate: 2005-01-12 19:34:40
Subject: Re: segfault caused by heimdal (was: SUSE port)
Previous:From: Greg StarkDate: 2005-01-12 19:23:44
Subject: Re: Much Ado About COUNT(*)

pgsql-hackers by date

Next:From: Reinhard MaxDate: 2005-01-12 19:34:40
Subject: Re: segfault caused by heimdal (was: SUSE port)
Previous:From: Greg StarkDate: 2005-01-12 19:23:44
Subject: Re: Much Ado About COUNT(*)

pgsql-patches by date

Next:From: Reinhard MaxDate: 2005-01-12 19:34:40
Subject: Re: segfault caused by heimdal (was: SUSE port)
Previous:From: Greg StarkDate: 2005-01-12 19:23:44
Subject: Re: Much Ado About COUNT(*)

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