Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() )

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() )
Дата
Msg-id CAMsr+YENpG2nU3aTxWX_T=+g-dsyZoR6bPqUxEro7YKuwYr9Tw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() )  (Craig Ringer <craig@2ndquadrant.com>)
Ответы Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() )
Список pgsql-hackers
On Fri, 4 Sep 2020 at 14:13, Craig Ringer <craig@2ndquadrant.com> wrote:

I actually had a pretty good look around for static analysis options to see if I could find anything that might help us out before I landed up with this approach.



Using a test program:

so ... that's interesting. I'll need to do some checking and verify that it's effective on the actual problem I originally had, but if so, I shall proceed with kicking myself now.

Handily, the same thing can be used to detect PG_TRY() escapes.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 2ndQuadrant - PostgreSQL Solutions for the Enterprise

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Compatible defaults for LEAD/LAG
Следующее
От: Jakub Wartak
Дата:
Сообщение: Division in dynahash.c due to HASH_FFACTOR