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

segfault caused by heimdal (was: SUSE port)

From: Reinhard Max <max(at)suse(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: segfault caused by heimdal (was: SUSE port)
Date: 2005-01-12 18:36:52
Message-ID: Pine.LNX.4.61.0501121915001.23538@wotan.suse.de (view raw or flat)
Thread:
Lists: pgsql-announcepgsql-hackerspgsql-patches
On Wed, 12 Jan 2005 at 18:20, Reinhard Max wrote:

> I am still not sure whether the kerberos library, glibc, or 
> PostgreSQL is to blame, or if it's a combination of bugs in these 
> components that triggers the segfault.

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.

So I suspect this bug might hit everyone using heimdal, but it only 
gets triggered when one of the calls to kerberos in 
src/interfaces/libpq/fe-auth.c returns with an error.

I am still not sure why the crash only happened on x86_64.

cu
	Reinhard

In response to

Responses

pgsql-announce by date

Next:From: Jonah H. HarrisDate: 2005-01-12 18:55:29
Subject: Re: Much Ado About COUNT(*)
Previous:From: Tom LaneDate: 2005-01-12 18:24:26
Subject: Re: Much Ado About COUNT(*)

pgsql-hackers by date

Next:From: Merlin MoncureDate: 2005-01-12 18:53:51
Subject: Re: Much Ado About COUNT(*)
Previous:From: Tom LaneDate: 2005-01-12 18:24:26
Subject: Re: Much Ado About COUNT(*)

pgsql-patches by date

Next:From: Jonah H. HarrisDate: 2005-01-12 18:55:29
Subject: Re: Much Ado About COUNT(*)
Previous:From: Tom LaneDate: 2005-01-12 18:24:26
Subject: Re: Much Ado About COUNT(*)

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