Re: BUG #16827: macOS interrupted syscall leads to a crash - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16827: macOS interrupted syscall leads to a crash
Date
Msg-id 1168201.1611337651@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #16827: macOS interrupted syscall leads to a crash  (Andres Freund <andres@anarazel.de>)
Responses Re: BUG #16827: macOS interrupted syscall leads to a crash
List pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> Tom, all, this seems like a serious problem likely to become more
> widespread. I don't really know how we can reasonably address this
> short-term, adding EINTR handling to all the places that don't yet have
> it (and ensuring that it stays that way) seems like it's a lot to backport.

The only idea that comes to mind is to invent a wrapper for open
(and other affected syscalls) that adds a loop-on-EINTR.  Ugly,
and it would not fix third-party extensions until they're recompiled.

My inclination is to regard this as something that's Apple's problem,
at least for now.  Perhaps they'll realize what a disaster it is.
(OTOH, they've proven pretty mulish on making SIP usable...)

            regards, tom lane



pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: BUG #16827: macOS interrupted syscall leads to a crash
Next
From: Andres Freund
Date:
Subject: Re: BUG #16833: postgresql 13.1 process crash every hour