Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br8zI-0004C4-B0 for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Oct 2016 19:33:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1br8zH-0002wQ-Od for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Oct 2016 19:33:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1br8zG-0002v3-10 for pgsql-hackers@postgresql.org; Mon, 03 Oct 2016 19:33:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1br8z9-00041i-EX for pgsql-hackers@postgresql.org; Mon, 03 Oct 2016 19:33:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u93JX9Jv010789; Mon, 3 Oct 2016 15:33:09 -0400 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: contrib/pg_visibility craps out in assert-enabled builds In-reply-to: References: <29043.1475288648@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 03 Oct 2016 15:19:08 -0400" Date: Mon, 03 Oct 2016 15:33:09 -0400 Message-ID: <10788.1475523189@sss.pgh.pa.us> X-Pg-Spam-Score: -4.5 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Fri, Sep 30, 2016 at 10:24 PM, Tom Lane 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