pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joachim Gehweiler <joachim.gehweiler@icloud.com>
To: tgl@sss.pgh.pa.us
To: andres@anarazel.de
To: ricardoungureanu@gmail.com
To: kimon.krenz@part9.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16827: macOS interrupted syscall leads to a crash
Date: Mon, 22 Feb 2021 14:07:07 +0100
Message-ID: <6FB1D6CA-4102-4077-ABFD-C88EAC47BC88@icloud.com> (raw)

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> Andres Freund <andres(at)anarazel(dot)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…)

I would strongly vote to go for the loop-on-EINTR wrapper for open that you’re
suggesting, maybe also add a switch for it to the configuration with default ON
for macOS and OFF for all other platforms, for the following reasons:
- the change that Apple made is not a "bug by accident“ but a design decision,
  and Apple is known for not reverting design decisions, no matter what chaos
  they imply (just recall the disaster that rewriting the USB stack caused 5 years
  back, rendering thousands of USB devices useless; especially in the music
  production business it’s the same procedure every year that several
  companies are forced to provide hot fixes to make their software usable again)
- though I agree that it’s a no-go to introduce such a breaking change, to some
  extent there seems to be a reasoning behind it: some antivirus products are
  really slow on certain files (big zip files containing thousands of html files, e.g.
  browsable html-ified documentation, easily can take dozens of minutes to
  scan). So Apple might argue that their change ensures the systems to stay
  responsive when antivirus is failing. This makes it less likely that Apple will
  revert their change

Regards,
   Joachim Gehweiler






view thread (11+ messages)  latest in thread

Message-ID: <6FB1D6CA-4102-4077-ABFD-C88EAC47BC88@icloud.com>
Permalink:  ../6FB1D6CA-4102-4077-ABFD-C88EAC47BC88@icloud.com/
Also on:    postgresql.org/message-id/6FB1D6CA-4102-4077-ABFD-C88EAC47BC88@icloud.com

 · 

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: joachim.gehweiler@icloud.com, tgl@sss.pgh.pa.us, andres@anarazel.de, ricardoungureanu@gmail.com, kimon.krenz@part9.com
  Subject: Re: BUG #16827: macOS interrupted syscall leads to a crash
  In-Reply-To: <6FB1D6CA-4102-4077-ABFD-C88EAC47BC88@icloud.com>
  References: <6FB1D6CA-4102-4077-ABFD-C88EAC47BC88@icloud.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