From: Noah Misch <noah@leadboat.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Postmaster self-deadlock due to PLT linkage resolution
Date: Mon, 29 Aug 2022 19:42:01 -0700
Message-ID: <20220830024201.GA932727@rfd.leadboat.com> (raw)
In-Reply-To: <3384826.1661802235@sss.pgh.pa.us>
References: <3384826.1661802235@sss.pgh.pa.us>
On Mon, Aug 29, 2022 at 03:43:55PM -0400, Tom Lane wrote:
> I'd originally intended to make this code "#ifdef __NetBSD__",
> but on looking into the FreeBSD sources I find much the same locking
> logic in their dynamic loader, and now I'm wondering if such behavior
> isn't pretty standard.
I doubt it's standard. POSIX specifies select() to be async-signal-safe.
This NetBSD bug makes select() not be async-signal-safe.
> The added calls should have negligible cost,
> so it doesn't seem unreasonable to do them everywhere.
Agreed. I would make the comment mention the NetBSD version that prompted
this, so we have a better chance of removing the workaround in a few decades.
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-hackers@postgresql.org
Cc: noah@leadboat.com, tgl@sss.pgh.pa.us
Subject: Re: Postmaster self-deadlock due to PLT linkage resolution
In-Reply-To: <20220830024201.GA932727@rfd.leadboat.com>
References: <3384826.1661802235@sss.pgh.pa.us> <20220830024201.GA932727@rfd.leadboat.com>
* 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