Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLlWV-0003vR-GU for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 03:32:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLlWU-0007BP-NA for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Mar 2014 03:32:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLlWT-0007BI-Q4 for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 03:32:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLlWR-0008MD-9J for pgsql-bugs@postgresql.org; Fri, 07 Mar 2014 03:32:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s273WSrH031621; Thu, 6 Mar 2014 22:32:28 -0500 From: Tom Lane To: petela@gocougs.wsu.edu cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9464: PANIC with 'failed to re-find shared lock object' In-reply-to: <20140307005623.1918.22473@wrigleys.postgresql.org> References: <20140307005623.1918.22473@wrigleys.postgresql.org> Comments: In-reply-to petela@gocougs.wsu.edu message dated "Fri, 07 Mar 2014 00:56:23 +0000" Date: Thu, 06 Mar 2014 22:32:28 -0500 Message-ID: <31620.1394163148@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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