pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Grigory Smolkin <g.smolkin@postgrespro.ru>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: amcheck assert failure
Date: Mon, 22 Apr 2019 16:35:56 -0400
Message-ID: <25618.1555965356@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-WzmkurhCqnyLHxk0VkOZqd49+ZZsp1xAJOg7j2x7dmp_XQ@mail.gmail.com>
References: <906cac0a-1201-e981-5043-7ca0d97d2a17@postgrespro.ru>
	<CAH2-WzncLb59xy4=2gkQnUxHnenCqW1hCTGTX1FwbeH2S5SesQ@mail.gmail.com>
	<e8c4c837-06f8-2246-f6eb-f390cbf80629@postgrespro.ru>
	<CAH2-Wzk4-MPMesjcRhEeH8FcBeBmMY0mP8aKhaP2=OdLaMwjbQ@mail.gmail.com>
	<CAH2-Wz=r2g0pet4hVPi88Yh+uqRmMphEON0U9Yd28HSW+ac7vQ@mail.gmail.com>
	<CAH2-WzkmvoOzP6pVTjdE=yJwTg49+L7ZegkPvbqk+3A0ahJ5LQ@mail.gmail.com>
	<61090467-0a38-d58b-dfcc-81463e66708c@postgrespro.ru>
	<CAH2-Wz=ck0m4gZYp9JNX0zXiqiHcJWAPS9B_+Rmqs1WWtGkezg@mail.gmail.com>
	<d0473f0e-46bc-839f-1992-ff3564bf16ea@postgrespro.ru>
	<23979.1555962717@sss.pgh.pa.us>
	<CAH2-WzmkurhCqnyLHxk0VkOZqd49+ZZsp1xAJOg7j2x7dmp_XQ@mail.gmail.com>

Peter Geoghegan <pg@bowt.ie> writes:
> On Mon, Apr 22, 2019 at 12:51 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Nonetheless ... do we really want an assertion failure rather than
>> some more-mundane error report?  Seems like the point of amcheck
>> is to detect data corruption, so I'd rather get an ERROR than an
>> assertion (which would not fire in production builds anyway).

> The only explanation I can think of is that the assertion failure was
> from the core code

That's what I guessed.  It might be impractical for amcheck to prevent it,
but we should try to find out.

> We could:
> * Throw an error when any line item reports lp_len == 0.
> * Throw an error when there is a line item that's either LP_UNUSED, or
> LP_REDIRECT. The corrupt page sent by Grigory had both.
> What do you think of the idea of committing some simple checks to do
> this with contrib/amcheck on v12?

No objection here, as long as it doesn't add an unreasonable amount
of complexity.  (If it does, we might have to think harder about
what to do.)

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <25618.1555965356@sss.pgh.pa.us>
Permalink:  ../25618.1555965356@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25618.1555965356@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pg@bowt.ie, g.smolkin@postgrespro.ru
  Subject: Re: amcheck assert failure
  In-Reply-To: <25618.1555965356@sss.pgh.pa.us>
  References: <906cac0a-1201-e981-5043-7ca0d97d2a17@postgrespro.ru> <CAH2-WzncLb59xy4=2gkQnUxHnenCqW1hCTGTX1FwbeH2S5SesQ@mail.gmail.com> <e8c4c837-06f8-2246-f6eb-f390cbf80629@postgrespro.ru> <CAH2-Wzk4-MPMesjcRhEeH8FcBeBmMY0mP8aKhaP2=OdLaMwjbQ@mail.gmail.com> <CAH2-Wz=r2g0pet4hVPi88Yh+uqRmMphEON0U9Yd28HSW+ac7vQ@mail.gmail.com> <CAH2-WzkmvoOzP6pVTjdE=yJwTg49+L7ZegkPvbqk+3A0ahJ5LQ@mail.gmail.com> <61090467-0a38-d58b-dfcc-81463e66708c@postgrespro.ru> <CAH2-Wz=ck0m4gZYp9JNX0zXiqiHcJWAPS9B_+Rmqs1WWtGkezg@mail.gmail.com> <d0473f0e-46bc-839f-1992-ff3564bf16ea@postgrespro.ru> <23979.1555962717@sss.pgh.pa.us> <CAH2-WzmkurhCqnyLHxk0VkOZqd49+ZZsp1xAJOg7j2x7dmp_XQ@mail.gmail.com> <25618.1555965356@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