Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCt3i-0000Z1-JG for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jul 2014 16:18:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCt3h-0006pK-7W for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Jul 2014 16:18:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCt3f-0006of-3s for pgsql-bugs@postgresql.org; Thu, 31 Jul 2014 16:18:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCt3c-00012s-AN for pgsql-bugs@postgresql.org; Thu, 31 Jul 2014 16:18:21 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s6VGIIAi005538; Thu, 31 Jul 2014 12:18:19 -0400 From: Tom Lane To: craig@tintri.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock In-reply-to: <20140730233328.2696.87275@wrigleys.postgresql.org> References: <20140730233328.2696.87275@wrigleys.postgresql.org> Comments: In-reply-to craig@tintri.com message dated "Wed, 30 Jul 2014 23:33:28 -0000" Date: Thu, 31 Jul 2014 12:18:18 -0400 Message-ID: <15956.1406823498@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 craig@tintri.com writes: > We found one of our Postgresql processes deadlocked with this backtrace. It > is not safe to call syslog() in a signal handler on Linux. We are using > version 8.4.20. I looked at newer versions sourcecode and I believe they > have the same problem. Well, the alternatives are to do this or not leave any trace of why the process exited. Newer versions than 8.4 (which is EOL btw) have an amelioration mechanism for this and related risks, which is that the postmaster SIGKILLs any child that doesn't exit within a few seconds. 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