Re: PG signal handler and non-reentrant malloc/free calls

Поиск
Список
Период
Сортировка
От Nikhil Sontakke
Тема Re: PG signal handler and non-reentrant malloc/free calls
Дата
Msg-id AANLkTimMRj0DsQzWZGUm97XjHn-y19C+0GsCy_qLGH6E@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PG signal handler and non-reentrant malloc/free calls  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: PG signal handler and non-reentrant malloc/free calls
Re: PG signal handler and non-reentrant malloc/free calls
Список pgsql-hackers
On Tue, Mar 1, 2011 at 10:17 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> On 01.03.2011 12:50, Nikhil Sontakke wrote:
>>>
>>>> Will try to get the call stack if needed.
>>>
>>> Yes, please.
>>
>> Here is the stack trace:
>
> Hmm, it looks like ImmediateInterruptOK is set, while we're busy running a
> query. How come? Can you debug that? Where does it get set?
>

Ah, this is not exactly an easily reproducible problem :( You gotta be
lucky enough to be able to interrupt inside a malloc call.

But adding hold/resume interrrupts in mcxt.c (not aset.c, since we
want to be agnostic to the underlying layer) should be good enough to
handle this non-re-entrant issue, no?

Regards,
Nikhils


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: PG signal handler and non-reentrant malloc/free calls
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Sync Rep v17