add assertion for palloc in signal handlers

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема add assertion for palloc in signal handlers
Дата
Msg-id aZTqurNQG-cDzJcL@nathan
обсуждение исходный текст
Ответы Re: add assertion for palloc in signal handlers
Re: add assertion for palloc in signal handlers
Список pgsql-hackers
(new thread)

On Tue, Feb 17, 2026 at 03:30:57PM -0600, Nathan Bossart wrote:
> On Tue, Feb 17, 2026 at 11:18:00PM +0200, Heikki Linnakangas wrote:
>> On 14/02/2026 23:56, Andres Freund wrote:
>>> We really need some instrumentation that fails if we do allocations in signal
>>> handlers etc.
>> 
>> Yeah, that would be nice..
> 
> In theory we could pretty easily add assertions for that, given the
> wrapper_handler business added a couple of years ago.  I'll put together a
> patch...

As promised...  Fortunately, check-world didn't uncover any existing
issues.  I was able to manually verify the assertion by switching a
background worker to use bgworker_die() and sending it SIGTERM.  Probably
could use some additional commentary, which I'll add if the idea seems
reasonable to you.

-- 
nathan

Вложения

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