Re: Autovacuum daemon terminated by signal 11

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Justin Pasher <justinp(at)newmediagateway(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: Autovacuum daemon terminated by signal 11
Date: 2009-01-15 22:55:26
Message-ID: 13734.1232060126@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Justin Pasher <justinp(at)newmediagateway(dot)com> writes:
> Program terminated with signal 11, Segmentation fault.
> #0 0x0827441d in MemoryContextAlloc ()
> (gdb) bt
> #0 0x0827441d in MemoryContextAlloc ()
> #1 0x08274467 in MemoryContextStrdup ()
> #2 0x0826501c in database_getflatfilename ()
> #3 0x0826504e in database_getflatfilename ()
> #4 0x08265ec1 in AtEOXact_UpdateFlatFiles ()
> #5 0x080a9111 in RecordTransactionCommit ()
> #6 0x080a93a7 in CommitTransactionCommand ()
> #7 0x081a6c3b in autovac_stopped ()
> #8 0x081a75cd in autovac_start ()
> #9 0x081ae33c in ClosePostmasterPorts ()
> #10 0x081af058 in PostmasterMain ()
> #11 0x0816b3e2 in main ()

Hmm. This isn't very trustworthy for lack of debug symbols (what we're
probably looking at are the nearest global function names before the
actual locations). However, it strongly suggests that something is
broken in the active memory context, and the most likely explanations
for that are either a memory clobber (eg overrunning the requested size
of a chunk) or CurrentMemoryContext pointing at a context that was
already freed. The latter theory ties into the fact that it seems to be
happening during transaction end. But any such bug of either type
should have been found years ago given that development is invariably
done with CLOBBER_FREED_MEMORY enabled.

Alvaro, any thoughts? Remember this is 8.1.15.

Justin, if you do feel like recompiling, please do so with original
configure options (run pg_config to verify) and add --enable-cassert
as well as --enable-debug. That might give us more to work with.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message pepone.onrez 2009-01-15 23:11:24 Re: Initial ugly reverse-translator
Previous Message Bjørn T Johansen 2009-01-15 22:49:05 How good is the default values for autovacuum?

Browse pgsql-hackers by date

  From Date Subject
Next Message Brendan Jurd 2009-01-15 22:57:59 Re: pg_dump versus views and opclasses
Previous Message Joshua D. Drake 2009-01-15 22:51:18 Re: FWD: Re: Updated backslash consistency patch