Re: segfault at aset.c:539

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: segfault at aset.c:539
Дата
Msg-id 9971.1058203828@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: segfault at aset.c:539  (Tomas Szepe <szepe@pinerecords.com>)
Список pgsql-bugs
Tomas Szepe <szepe@pinerecords.com> writes:
> (BTW, it seems the bug can't be triggered on Linux/sparc32).

You'd be less likely to see it on a machine where MAXALIGN is 8,
since there would be more pad bytes on the average ... but depending
on the string length fed to to_ascii(), I think it could be made
to happen on any platform.  Strings whose length is an odd multiple
of four (4, 12, etc) would have no pad bytes on any platform.

I'm surprised we did not notice this case when we were testing the fix
for the other bug.  That bug was only an off-by-one, this was an
off-by-four :-(

            regards, tom lane

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

Предыдущее
От: Tomas Szepe
Дата:
Сообщение: Re: segfault at aset.c:539
Следующее
От: "Jefferies, Rupert"
Дата:
Сообщение: createdb failure on version 7.3.3 with Solaris 9