Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: craig(at)tintri(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock
Date: 2014-07-31 16:18:18
Message-ID: 15956.1406823498@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

craig(at)tintri(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-07-31 16:19:28 Re: Is this a bug?
Previous Message desmodemone 2014-07-31 15:57:38 Re: Is this a bug?