Assertion failure in HEAD when compiled with -DWAL_DEBUG and wal_debug = true

From: Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>
To: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Assertion failure in HEAD when compiled with -DWAL_DEBUG and wal_debug = true
Date: 2014-06-21 10:23:32
Message-ID: CABOikdPNEEdm=hzr_7EiJMXvj2dKFTS5rs8L22Am8PQB6bg2Jg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi All,

As I noted in another thread, if built with WAL_DEBUG and GUC wal_debug set
to true, HEAD hits an assertion failure. This is probably not a critical
issue given that hardly anyone would run a server with WAL_DEBUG turned on,
its still worth fixing.

The offending code is in XLogInsert() which called initStringInfo() which
in turn calls palloc(). I am not sure what's the best way to move that
allocation outside of critical section.

LOG: INSERT @ 0/16CD2E8: prev 0/16CD258; xid 0; len 4: XLOG - checkpoint:
redo 0/6000; tli 0; prev tli 0; fpw false; xid 0/0; oid 0; multi 0; offset
0; oldest xid 0 in DB 0; oldest multi 0 in DB 0; oldest running xid 0;
shutdown
STATEMENT: CREATE TABLE test(a int);
LOG: INSERT @ 0/16CD318: prev 0/16CD2C0; xid 0; len 16: Storage - UNKNOWN
STATEMENT: CREATE TABLE test(a int);
TRAP: FailedAssertion("!(CritSectionCount == 0 || (CurrentMemoryContext) ==
ErrorContext || (MyAuxProcType == CheckpointerProcess))", File:
"/Users/pavan/work/SOURCES/postgresql/src/backend/utils/mmgr/mcxt.c", Line:
670)

Thanks,
Pavan

--
Pavan Deolasee
http://www.linkedin.com/in/pavandeolasee

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2014-06-21 10:41:42 Re: Assertion failure in HEAD when compiled with -DWAL_DEBUG and wal_debug = true
Previous Message David Leverton 2014-06-21 10:03:44 Re: BUG #10533: 9.4 beta1 assertion failure in autovacuum process