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

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

cuReinhard


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

Предыдущее
От: Kurt Roeckx
Дата:
Сообщение: Re: segfault caused by heimdal (was: SUSE port)
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: Much Ado About COUNT(*)