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: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6425: Bus error in slot_deform_tuple
Date: Wed, 01 Feb 2012 16:43:34 -0500
Message-ID: <24434.1328132614@sss.pgh.pa.us> (raw)
In-Reply-To: <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com>
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>

Duncan Rance <postgres@dunquino.com> 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



view thread (29+ messages)  latest in thread

Message-ID: <24434.1328132614@sss.pgh.pa.us>
Permalink:  ../24434.1328132614@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24434.1328132614@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: <24434.1328132614@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>

* 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