Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated by signal 11)
От
Alvaro Herrera
Тема
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum
daemon terminated by signal 11)
Дата
Msg-id
20090117171546.GJ12449@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated
by signal 11) Simon Riggs <simon@2ndQuadrant.com>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated by signal 11) Tom Lane <tgl@sss.pgh.pa.us>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum
daemon terminated by signal 11) Simon Riggs <simon@2ndQuadrant.com>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated by signal 11) Tom Lane <tgl@sss.pgh.pa.us>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum
daemon terminated by signal 11) Alvaro Herrera <alvherre@commandprompt.com>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated by signal 11) Tom Lane <tgl@sss.pgh.pa.us>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum
daemon terminated by signal 11) Alvaro Herrera <alvherre@commandprompt.com>
Re: MemoryContextSwitchTo (Re: [GENERAL] Autovacuum daemon terminated by signal 11) Gregory Stark <stark@enterprisedb.com>
Tom Lane wrote: > Simon Riggs writes: > > Can we add something to memory contexts to make this fail every time? > > No, not really. AFAICS the reason for Alvaro not seeing it must be that > on his machine the new transaction happens to allocate its > TopTransactionContext control block right in the same place where the > old one was. But freed memory is clobbered, so if we were to have an assert that checks the node tag, it should show up. In fact, we do have such an assert, but only for compilers other than GCC, because the inline version of palloc() cannot have it for lack of infrastructure. Maybe we should patch palloc.h so that it only uses the inline version when not in assert mode. Something like the attached, except that for some reason the test case still fails to report any error for me :-( Maybe the cpp boolean logic is fooling me. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
От: Gregory Stark
Дата: