pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer
Date: Sat, 21 May 2016 17:18:14 -0400
Message-ID: <56703.1463865494@sss.pgh.pa.us> (raw)
In-Reply-To: <20160521203101.jp5yxquhhkabvo56@alap3.anarazel.de>
References: <20160521203101.jp5yxquhhkabvo56@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> writes:
> The valgrind animal just reported a large object related failure on 9.4:

The proximate cause seems to be that _bt_newroot isn't bothering to
fill the buffer_std field here:

		/* Make a full-page image of the left child if needed */
		rdata[2].data = NULL;
		rdata[2].len = 0;
		rdata[2].buffer = lbuf;
		rdata[2].next = NULL;

which is indeed an actual bug, but the only consequence would be poor
compression of the full-page image (if the value chanced to be zero),
so it's not much of a problem.

What remains unclear is how come this only fails once in a blue moon.
Seems like any valgrind run of the regression tests should have caught it.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (4+ messages)  latest in thread

Message-ID: <56703.1463865494@sss.pgh.pa.us>
Permalink:  ../56703.1463865494@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/56703.1463865494@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
  Subject: Re: 9.4 failure on skink in _bt_newroot/XLogCheckBuffer
  In-Reply-To: <56703.1463865494@sss.pgh.pa.us>
  References: <20160521203101.jp5yxquhhkabvo56@alap3.anarazel.de> <56703.1463865494@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox