Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zrmlp-00052q-Ga for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Oct 2015 12:57:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zrmlo-0007yx-R0 for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Oct 2015 12:57:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zrmln-0007yJ-QW for pgsql-bugs@postgresql.org; Thu, 29 Oct 2015 12:57:31 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zrmli-00076e-UP for pgsql-bugs@postgresql.org; Thu, 29 Oct 2015 12:57:31 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.96.80]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 053194007AB; Thu, 29 Oct 2015 05:57:18 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A23181A56; Thu, 29 Oct 2015 09:57:14 -0300 (CLT) Date: Thu, 29 Oct 2015 09:57:14 -0300 From: Alvaro Herrera To: Michael Robinson Cc: pgsql-bugs@postgresql.org Subject: Re: Re: BUG #13739: Recurring corrupted page pointer panics on hot-standby replica Message-ID: <20151029125714.GB5726@alvherre.pgsql> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.4 (--) 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 Michael Robinson wrote: > I am somewhat surprised that BUG #13668 merits a response, and this one > does not. Clearly, that one was much easier to answer than yours. > Not a bug? > Won't fix? > Insufficient information? > Go away stop bothering us? > Something else? > Anything? Most likely, it's either a bug in a WAL record or its replay code, or the platform has failed to keep its promises (flipped bits, etc) > On Tue, Oct 27, 2015 at 09:22:08AM +0000, michael(at)snupps(dot)com wrote: > > 2015-10-24 14:16:46.489 UTC PANIC: corrupted page pointers: lower = 17, > > upper = 0, special = 8176 > > 2015-10-24 14:16:46.490 UTC CONTEXT: xlog redo unlink_page: rel > > 1663/16416/254063; dead 11796080; left 1365037; right 3024097; btpo_xact > > 64542957; leaf 2456241; leafleft 11130443; leafright 1350594; topparent > > 4294967295 The code expects "upper" to be higher than "lower", per this check in PageAddItem: /* * Be wary about corrupted page pointers */ if (phdr->pd_lower < SizeOfPageHeaderData || phdr->pd_lower > phdr->pd_upper || phdr->pd_upper > phdr->pd_special || phdr->pd_special > BLCKSZ) ereport(PANIC, (errcode(ERRCODE_DATA_CORRUPTED), errmsg("corrupted page pointers: lower = %u, upper = %u, special = %u", phdr->pd_lower, phdr->pd_upper, phdr->pd_special))); It's likely that some previous operation set the pd_upper value to 0 -- maybe replay of an earlier WAL record. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, 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