Bug in WaitForBackgroundWorkerShutdown() [REL9_5_STABLE]

Поиск
Список
Период
Сортировка
От Dmitry Ivanov
Тема Bug in WaitForBackgroundWorkerShutdown() [REL9_5_STABLE]
Дата
Msg-id 1637882.WfYN5gPf1A@abook
обсуждение исходный текст
Ответы Re: Bug in WaitForBackgroundWorkerShutdown() [REL9_5_STABLE]  (Dmitry Ivanov <d.ivanov@postgrespro.ru>)
Список pgsql-hackers
Recently I've encountered a strange crash while calling elog(ERROR, "...")
after the WaitForBackgroundWorkerShutdown() function. It turns out that
_returns_ inside the PG_TRY()..PG_CATCH() block are *highly* undesirable,
since they leave PG_exception_stack pointing to a local struct in a dead
frame, which is an obvious UB. I've attached a patch which fixes this behavior
in the aforementioned function, but there might be more errors like that
elsewhere.

--
Dmitry Ivanov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
Вложения

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

Предыдущее
От: Ildar Musin
Дата:
Сообщение: Unused argument in PinBuffer function
Следующее
От: Dmitry Ivanov
Дата:
Сообщение: Re: Bug in WaitForBackgroundWorkerShutdown() [REL9_5_STABLE]