crash with assertions and WAL_DEBUG

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: crash with assertions and WAL_DEBUG
Date: 2014-06-14 20:51:06
Message-ID: 20140614205106.GV18688@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I noticed that HEAD crashes at startup with assertions disabled and
WAL_DEBUG turned on:

#2 0x00000000007af987 in ExceptionalCondition (
conditionName=conditionName(at)entry=0x974448 "!(CritSectionCount == 0 || (CurrentMemoryContext) == ErrorContext || (MyAuxProcType == CheckpointerProcess))",
errorType=errorType(at)entry=0x7e9bec "FailedAssertion",
fileName=fileName(at)entry=0x974150 "/pgsql/source/minmax/src/backend/utils/mmgr/mcxt.c",
lineNumber=lineNumber(at)entry=670) at /pgsql/source/minmax/src/backend/utils/error/assert.c:54
#3 0x00000000007d2080 in palloc (size=1024) at /pgsql/source/minmax/src/backend/utils/mmgr/mcxt.c:670
#4 0x00000000005f3abe in initStringInfo (str=str(at)entry=0x7fff11f68a80)
at /pgsql/source/minmax/src/backend/lib/stringinfo.c:50
#5 0x00000000004f42ca in XLogInsert (rmid=48 '0', rmid(at)entry=0 '\000', info=<optimized out>,
info(at)entry=0 '\000', rdata=rdata(at)entry=0x7fff11f68d30)
at /pgsql/source/minmax/src/backend/access/transam/xlog.c:1262
#6 0x00000000004f4f17 in CreateCheckPoint (flags=flags(at)entry=6)
at /pgsql/source/minmax/src/backend/access/transam/xlog.c:8197
#7 0x00000000004f8079 in StartupXLOG () at /pgsql/source/minmax/src/backend/access/transam/xlog.c:7097

I'm using an interim fix by excepting the startup process (see attached
patch), like the current code does for checkpointer, but I guess a more
robust solution should be sought.

I find it strange that nobody has seen this before.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachment Content-Type Size
no-startup-assert.patch text/x-diff 592 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-06-14 20:51:58 Re: UPDATE SET (a,b,c) = (SELECT ...) versus rules
Previous Message Tom Lane 2014-06-14 20:44:10 Re: UPDATE SET (a,b,c) = (SELECT ...) versus rules