Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WyIk7-0006s7-GI for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Jun 2014 10:41:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WyIk6-0000LA-7J for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Jun 2014 10:41:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WyIk4-0000L1-5C for pgsql-bugs@postgresql.org; Sat, 21 Jun 2014 10:41:52 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WyIjw-00053p-Lm for pgsql-bugs@postgresql.org; Sat, 21 Jun 2014 10:41:50 +0000 Received: from intern.anarazel.de (p549F0519.dip0.t-ipconnect.de [84.159.5.25]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id D004C500001; Sat, 21 Jun 2014 12:41:42 +0200 (CEST) Date: Sat, 21 Jun 2014 12:41:42 +0200 From: Andres Freund To: Pavan Deolasee Cc: Pg Bugs Subject: Re: Assertion failure in HEAD when compiled with -DWAL_DEBUG and wal_debug = true Message-ID: <20140621104142.GI30721@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-06-21 15:53:32 +0530, Pavan Deolasee wrote: > 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) There's already a thread about it: http://archives.postgresql.org/message-id/20140614205106.GV18688%40eldon.alvh.no-ip.org Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs