pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter LaDow <petela@gocougs.wsu.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9464: PANIC with 'failed to re-find shared lock object'
Date: Thu, 6 Mar 2014 20:37:43 -0800
Message-ID: <CAN8Q1EcvWGUTGe2DFGnDvWhgQmF63Vwib-RUHjUBXTEH61FMyA@mail.gmail.com> (raw)
In-Reply-To: <339.1394165896@sss.pgh.pa.us>
References: <20140307005623.1918.22473@wrigleys.postgresql.org>
	<31620.1394163148@sss.pgh.pa.us>
	<CAN8Q1EcLbgeCNNXav49nOrA9uR-LYjRmonTtPrm90f6zrdn=+g@mail.gmail.com>
	<339.1394165896@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Thu, Mar 6, 2014 at 8:18 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I don't think _exit() is a terribly good idea.  Consider the possibility
> that some third-party library loaded into the backend has also established
> an atexit callback, and unlike what we did, that code does need to get
> control in a subprocess exit.

Good point.

> Could you try patching atexit_callback as above, and verify that
> it does what you want (with or without the on_exit_reset() in your
> extension)?

That did it as well.  Things are peachy (at least for this scenario).

Would you like me to submit a patch (with you as the author of course)?

Thanks,
Pete


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)  latest in thread

Message-ID: <CAN8Q1EcvWGUTGe2DFGnDvWhgQmF63Vwib-RUHjUBXTEH61FMyA@mail.gmail.com>
Permalink:  ../CAN8Q1EcvWGUTGe2DFGnDvWhgQmF63Vwib-RUHjUBXTEH61FMyA@mail.gmail.com/
Also on:    postgresql.org/message-id/CAN8Q1EcvWGUTGe2DFGnDvWhgQmF63Vwib-RUHjUBXTEH61FMyA@mail.gmail.com

 · 

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: petela@gocougs.wsu.edu, tgl@sss.pgh.pa.us
  Subject: Re: BUG #9464: PANIC with 'failed to re-find shared lock object'
  In-Reply-To: <CAN8Q1EcvWGUTGe2DFGnDvWhgQmF63Vwib-RUHjUBXTEH61FMyA@mail.gmail.com>
  References: <20140307005623.1918.22473@wrigleys.postgresql.org> <31620.1394163148@sss.pgh.pa.us> <CAN8Q1EcLbgeCNNXav49nOrA9uR-LYjRmonTtPrm90f6zrdn=+g@mail.gmail.com> <339.1394165896@sss.pgh.pa.us> <CAN8Q1EcvWGUTGe2DFGnDvWhgQmF63Vwib-RUHjUBXTEH61FMyA@mail.gmail.com>

* 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