Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock
Date
Msg-id 15956.1406823498@sss.pgh.pa.us
Whole thread Raw
In response to BUG #11095: quickdie() calls syslog() in a signal handler leading to deadlock  (craig@tintri.com)
List pgsql-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

pgsql-bugs by date:

Previous
From: desmodemone
Date:
Subject: Re: Is this a bug?
Next
From: Tom Lane
Date:
Subject: Re: Is this a bug?