pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Duncan Rance <postgres@dunquino.com>
Cc: pgsql-bugs@postgresql.org
Cc: Robert Haas <robertmhaas@gmail.com>
Subject: Re: BUG #6425: Bus error in slot_deform_tuple
Date: Thu, 02 Feb 2012 16:56:30 -0500
Message-ID: <5101.1328219790@sss.pgh.pa.us> (raw)
In-Reply-To: <4909.1328219050@sss.pgh.pa.us>
References: <E1RsbAk-00007G-LC@wrigleys.postgresql.org>
	<15205.1328112255@sss.pgh.pa.us>
	<CA+TgmoYiaJY4yKydS09ymXJmGPAT-BUHq36SBVB-8iG7bcFUxw@mail.gmail.com>
	<846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com>
	<24434.1328132614@sss.pgh.pa.us>
	<A7CCB062-B7D1-4015-8B72-38BB3755477C@dunquino.com>
	<24D75B69-D387-4476-AC0D-5271FA56AB20@dunquino.com>
	<4909.1328219050@sss.pgh.pa.us>

I wrote:
> So far no luck reproducing any issue with this test case.

And I swear my finger had barely left the "send" key when:

TRAP: FailedAssertion("!(((lpp)->lp_flags == 1))", File: "heapam.c", Line: 735)
LOG:  server process (PID 24740) was terminated by signal 6: Aborted
DETAIL:  Failed process was running: SELECT * FROM repro_02_ref;
LOG:  terminating any other active server processes

So:

(1) no need to worry about GUC settings.  It's just a shade less
probable than I'd supposed from your message.

(2) I suspect you are not running with asserts enabled.  You might
have better luck isolating this if they were on.


I have not gotten very far with the coredump, except to observe that
gdb says the Assert ought to have passed:

(gdb) f 3
#3  0x0000000000475248 in heapgettup_pagemode (scan=0x1457b08, 
    dir=<optimized out>, nkeys=0, key=0x0) at heapam.c:735
735                             Assert(ItemIdIsNormal(lpp));
(gdb) p lpp
$1 = (ItemIdData *) 0x7fea59705d90
(gdb) p *lpp
$2 = {lp_off = 7936, lp_flags = 1, lp_len = 34}

This suggests very strongly that indeed the buffer was changing under
us.

			regards, tom lane



view thread (29+ messages)  latest in thread

Message-ID: <5101.1328219790@sss.pgh.pa.us>
Permalink:  ../5101.1328219790@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5101.1328219790@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, postgres@dunquino.com, robertmhaas@gmail.com
  Subject: Re: BUG #6425: Bus error in slot_deform_tuple
  In-Reply-To: <5101.1328219790@sss.pgh.pa.us>
  References: <E1RsbAk-00007G-LC@wrigleys.postgresql.org> <15205.1328112255@sss.pgh.pa.us> <CA+TgmoYiaJY4yKydS09ymXJmGPAT-BUHq36SBVB-8iG7bcFUxw@mail.gmail.com> <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> <24434.1328132614@sss.pgh.pa.us> <A7CCB062-B7D1-4015-8B72-38BB3755477C@dunquino.com> <24D75B69-D387-4476-AC0D-5271FA56AB20@dunquino.com> <4909.1328219050@sss.pgh.pa.us> <5101.1328219790@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