Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 368DA420B3A for ; Wed, 1 Feb 2012 17:05:50 -0400 (AST) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RshNF-0003Zg-FD for pgsql-bugs@postgresql.org; Wed, 01 Feb 2012 21:05:50 +0000 Received: from perhan.alvh.no-ip.org (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 372F0108; Wed, 1 Feb 2012 13:06:02 -0800 (PST) Received: from perhan.alvh.no-ip.org ([190.95.26.35] helo=perhan.alvh.no-ip.org) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 1 Feb 2012 13:06:00 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 151A16E508; Wed, 1 Feb 2012 18:05:30 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Robert Haas , Tom Lane , Pg Bugs Subject: Re: BUG #6425: Bus error in slot_deform_tuple From: Alvaro Herrera To: Duncan Rance In-reply-to: <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> References: <15205.1328112255@sss.pgh.pa.us> <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> Date: Wed, 01 Feb 2012 18:05:29 -0300 Message-Id: <1328130247-sup-7672@alvh.no-ip.org> User-Agent: Sup/git X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-TLS: yes X-Assp-ID: assp.commandprompt.com m1-30362-00794 X-Assp-Envelope-From: alvherre@alvh.no-ip.org X-Assp-Intended-For: postgres@dunquino.com X-Assp-Original-Subject: Re: [BUGS] BUG #6425: Bus error in slot_deform_tuple Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/20 X-Sequence-Number: 32363 Excerpts from Duncan Rance's message of mi=C3=A9 feb 01 17:43:48 -0300 20= 12: > I mentioned in the bug report that I has asserts in places were t_hoff = is set. I've been doing it like so: >=20 > if (hoff % 4 !=3D 0) { > elog(ERROR, "wrong hoff: %d",hoff); > abort(); > } >=20 > I've been sitting here waiting for the server to abort and only just re= alised there are some interesting entries in my pgbench logs. I'm using p= gbench to hammer the server with queries, and I have a handful of these: elog(ERROR) longjmps to the error handling code and never returns to your abort() call. If you want it to abort at that point, use elog(PANIC= ). Or you could do elog(WARNING) and then abort(), which is pretty much the same thing. --=20 =C3=81lvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support