pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Duncan Rance <postgres@dunquino.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6425: Bus error in slot_deform_tuple
Date: Wed, 01 Feb 2012 18:05:29 -0300
Message-ID: <1328130247-sup-7672@alvh.no-ip.org> (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>


Excerpts from Duncan Rance's message of mié feb 01 17:43:48 -0300 2012:

> 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:

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.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (29+ messages)  latest in thread

Message-ID: <1328130247-sup-7672@alvh.no-ip.org>
Permalink:  ../1328130247-sup-7672@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1328130247-sup-7672@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, postgres@dunquino.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #6425: Bus error in slot_deform_tuple
  In-Reply-To: <1328130247-sup-7672@alvh.no-ip.org>
  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> <1328130247-sup-7672@alvh.no-ip.org>

* 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