Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9BEC31EC5BE8 for ; Thu, 2 Feb 2012 17:56:48 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rt4e6-0002jo-Og for pgsql-bugs@postgresql.org; Thu, 02 Feb 2012 21:56:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q12LuUtD005102; Thu, 2 Feb 2012 16:56:30 -0500 (EST) To: Duncan Rance cc: pgsql-bugs@postgresql.org, Robert Haas Subject: Re: BUG #6425: Bus error in slot_deform_tuple In-reply-to: <4909.1328219050@sss.pgh.pa.us> References: <15205.1328112255@sss.pgh.pa.us> <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> <24434.1328132614@sss.pgh.pa.us> <24D75B69-D387-4476-AC0D-5271FA56AB20@dunquino.com> <4909.1328219050@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 02 Feb 2012 16:44:10 -0500" Date: Thu, 02 Feb 2012 16:56:30 -0500 Message-ID: <5101.1328219790@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/43 X-Sequence-Number: 32386 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=, 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