Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 6678C420B3A for ; Wed, 1 Feb 2012 17:43:53 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rshy3-0002Kt-3s for pgsql-bugs@postgresql.org; Wed, 01 Feb 2012 21:43:52 +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 q11LhYPY024435; Wed, 1 Feb 2012 16:43:34 -0500 (EST) To: Duncan Rance cc: Robert Haas , pgsql-bugs@postgresql.org Subject: Re: BUG #6425: Bus error in slot_deform_tuple In-reply-to: <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> References: <15205.1328112255@sss.pgh.pa.us> <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> Comments: In-reply-to Duncan Rance message dated "Wed, 01 Feb 2012 20:43:48 +0000" Date: Wed, 01 Feb 2012 16:43:34 -0500 Message-ID: <24434.1328132614@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/21 X-Sequence-Number: 32364 Duncan Rance writes: > I mentioned in the bug report that I has asserts in places were t_hoff is set. I've been doing it like so: > if (hoff % 4 != 0) { > elog(ERROR, "wrong hoff: %d",hoff); > abort(); > } > I've been sitting here waiting for the server to abort and only just realised there are some interesting entries in my pgbench logs. I'm using pgbench to hammer the server with queries, and I have a handful of these: > Client 87 aborted in state 8: ERROR: wrong hoff: 134 Yowza. Is this just the standard pgbench test, or something else? If you could post complete instructions for duplicating this, we could probably find the cause fairly quickly. > What I don't get is why this is causing the client to abort, and not the backend. As Alvaro said, it's not reaching the abort(). You should use PANIC instead. regards, tom lane