From: Tom Lane <tgl@sss.pgh.pa.us>
To: petela@gocougs.wsu.edu
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9464: PANIC with 'failed to re-find shared lock object'
Date: Thu, 06 Mar 2014 22:32:28 -0500
Message-ID: <31620.1394163148@sss.pgh.pa.us> (raw)
In-Reply-To: <20140307005623.1918.22473@wrigleys.postgresql.org>
References: <20140307005623.1918.22473@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
petela@gocougs.wsu.edu writes:
> We are upgrading from Postgresql 8.3.7 to 9.3.3, and we are getting a
> database crash due to a failure in a C extension. In this extension we are
> trying to spawn an external program to run in the background. We do this
> with double fork(), with the first child exiting cleanly, and the second
> child execing the program.
on_exit_reset() in the first-level child would likely be a good idea.
See atexit_callback in src/backend/storage/ipc/ipc.c: your first-level
child is killing all the parent backend's shared-memory state when it
does exit(). This is a safety feature we added at some point in the
past few years, but in your usage I guess its an anti-safety feature...
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, petela@gocougs.wsu.edu
Subject: Re: BUG #9464: PANIC with 'failed to re-find shared lock object'
In-Reply-To: <31620.1394163148@sss.pgh.pa.us>
References: <20140307005623.1918.22473@wrigleys.postgresql.org> <31620.1394163148@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