Re: segmentation fault when cassert enabled

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: segmentation fault when cassert enabled
Дата
Msg-id 18714.1572020918@sss.pgh.pa.us
обсуждение исходный текст
Ответ на segmentation fault when cassert enabled  (Jehan-Guillaume de Rorthais <jgdr@dalibo.com>)
Ответы Re: segmentation fault when cassert enabled
Re: segmentation fault when cassert enabled
Список pgsql-hackers
Jehan-Guillaume de Rorthais <jgdr@dalibo.com> writes:
> When investigating for the bug reported in thread "logical replication -
> negative bitmapset member not allowed", I found a way to seg fault postgresql
> only when cassert is enabled.
> ...
> I hadn't time to digg further yet. However, I don't understand why this crash
> is triggered when cassert is enabled.

Most likely, it's not so much assertions that provoke the crash as
CLOBBER_FREED_MEMORY, ie the actual problem here is use of already-freed
memory.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: define bool in pgtypeslib_extern.h
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [Proposal] Arbitrary queries in postgres_fdw