pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: contrib/pg_visibility craps out in assert-enabled builds
Date: Mon, 03 Oct 2016 15:33:09 -0400
Message-ID: <10788.1475523189@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoaEtVPSZDGP3n_uL6mxK+WNKFb_TbKJ+8LKJAzTWW0UvA@mail.gmail.com>
References: <29043.1475288648@sss.pgh.pa.us>
	<CA+TgmoaEtVPSZDGP3n_uL6mxK+WNKFb_TbKJ+8LKJAzTWW0UvA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Sep 30, 2016 at 10:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The problem seems to be that HeapTupleSatisfiesVacuum asserts
>> Assert(ItemPointerIsValid(&htup->t_self));
>> while collect_corrupt_items hasn't bothered to set up the t_self
>> field of the HeapTupleData it's passing in.  This would imply that
>> you never tested this code in an assert-enabled build, which I find
>> surprising.  Am I missing something?

> My standard build script uses --enable-cassert, so I doubt that's the
> case.  It's more likely that on my system it just happened to find
> some non-zero garbage at that point on the stack that made it not fail
> the assertion.

Yeah, after I looked closer at what the Assert is actually testing,
I realized it was just blind luck that I'd managed to see it fail.
It's a pretty weak test :-(.  Anyway, fixed now.

			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 (3+ messages)

Message-ID: <10788.1475523189@sss.pgh.pa.us>
Permalink:  ../10788.1475523189@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10788.1475523189@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, robertmhaas@gmail.com
  Subject: Re: contrib/pg_visibility craps out in assert-enabled builds
  In-Reply-To: <10788.1475523189@sss.pgh.pa.us>
  References: <29043.1475288648@sss.pgh.pa.us> <CA+TgmoaEtVPSZDGP3n_uL6mxK+WNKFb_TbKJ+8LKJAzTWW0UvA@mail.gmail.com> <10788.1475523189@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