pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: craig@tintri.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock
Date: Thu, 31 Jul 2014 12:18:18 -0400
Message-ID: <15956.1406823498@sss.pgh.pa.us> (raw)
In-Reply-To: <20140730233328.2696.87275@wrigleys.postgresql.org>
References: <20140730233328.2696.87275@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <15956.1406823498@sss.pgh.pa.us>
Permalink:  ../15956.1406823498@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15956.1406823498@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, craig@tintri.com
  Subject: Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock
  In-Reply-To: <15956.1406823498@sss.pgh.pa.us>
  References: <20140730233328.2696.87275@wrigleys.postgresql.org> <15956.1406823498@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