Re: Trigger causes the server to crash with SEGV

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger causes the server to crash with SEGV
Дата
Msg-id 8203.991428980@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Trigger causes the server to crash with SEGV  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> I tried it here.  I don't get a crash; I get a rather long delay and
> then
> psql:vlad.sql:61: ERROR:  Memory exhausted in AllocSetContextCreate(8192)

Some experimentation with other infinitely-recursive plpgsql functions
soon turned up a crash, however: spi.c was being sloppy about not
checking for a failure return from malloc().  I have repaired that,
as well as some other similar omissions elsewhere in the backend.
I can't be sure if that's the case that was biting you, however.

Someday we ought to mount a concerted effort to get rid of all direct
uses of malloc() and friends in the backend; they're too easy to misuse,
and there's no good reason not to funnel everything through palloc.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Trigger causes the server to crash with SEGV
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: plpython: sys module doesn't know about _getframe