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

Поиск
Список
Период
Сортировка
От Kurt Roeckx
Тема Re: segfault caused by heimdal (was: SUSE port)
Дата
Msg-id 20050112192839.GA12848@ping.be
обсуждение исходный текст
Ответ на segfault caused by heimdal (was: SUSE port)  (Reinhard Max <max@suse.de>)
Ответы Re: segfault caused by heimdal (was: SUSE port)  (Reinhard Max <max@suse.de>)
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Much Ado About COUNT(*)
Следующее
От: Reinhard Max
Дата:
Сообщение: Re: segfault caused by heimdal (was: SUSE port)