5 ms·
Ouch. > The issue seems to be caused by some new security APIs in Big Sur. Apple has apparently started returning with errno=EINTR from some system calls that
by threatofrain 6y ago
Ouch.
> The issue seems to be caused by some new security APIs in Big Sur. Apple has apparently started returning with errno=EINTR from some system calls that previously never returned this error. Fixing this problem on the PostgreSQL side is not trivial, since it seems to require changes in both PostgreSQL itself and possibly in extensions as well, so it's unlikely to be fixed quickly.
> These are the possiblities:
> Try to disable security software (eg. Antivirus products) that might trigger the problem
Downgrade to macOS 10.15
Send feedback to Apple that they should fix the issue. PostgreSQL is unlikely to be the only affected software.
Hope that someone fixes the error in PostgreSQL
https://github.com/PostgresApp/PostgresApp/issues/610#issuecomment-770178375 https://github.com/PostgresApp/PostgresApp/issues/610#issuec...
- wheresmycraisin 6y ago.
- deleted 6y ago[deleted]
- 1_player 6y agos/Postgres/macOS/
- jb1991 6y agoThose proposed fixes don't make any sense for macOS. Nearly no one runs antivirus software on a Mac, and downgrading to prior OS version is basically impossible for most people.
- wilsonrocks 6y agoWe've been made to use Macs at work now and they have McAfee on that we can't disable, causes no end of performance issues
- KingOfCoders 6y agoWe also had anti-virus software on every Mac in large enterprise. Took a lot of effort to at least except source directories.
- wilsonrocks 6y agoOooh I wonder if I could get that here - things like npm install(presume any package manager, certainly homebrew) or git commands take obscenely long times.
- joosters 6y agoCommands that download random 3rd party code and dependencies from the internet are precisely the kind of thing that should be included in a virus scan, surely?
- foepys 6y agoEspecially since any npm package can execute any code at install time in npm's default configuration. On Linux this is extra juicy since you cannot globally install any package without root unless you explicitly changed the directory's permissions and/or location.
- jessaustin 6y agoBy default, npm installs into the local project directory, as it should. Only the OS package manager should touch system directories. Before using the "--global" flag, think about what you're actually trying to do, and what the better way to do that would be. One conventional workaround is to install commonly used tools to "~/bin". Root is not required for that. Of course, it's a good idea to keep the username used for development separate from the one used for browsing the web. It wouldn't be surprising for rogue npm packages to search for e.g. credit card details. I'm sure the browsers try to obfuscate that somehow, but how much can they really defend against code that is allowed to read the disk?
- masklinn 6y ago> Nearly no one runs antivirus software on a Mac There are companies which put antivirus software (e.g. mcaffee) on the macs they provide do employees. From what I've heard, they're even more detrimental there than on windows.
- jskrablin 6y agoI got to use this combination a few months ago when I changed jobs. It was just incredibly unstable, MacOS would just crash all over the place, requiring reboots every other day or so. Macbook used to overheat too, spining up ventilator while just sitting idle. Windows ME level of instability while overheating lead to battery failures on some Macbooks. While McAfee somewhat improved I now consider Windows 10 with WSL2 a better solution for people who don't want a desktop Linux but need/want Linux compatible development environment.
- masklinn 6y agoI mean, the fix is really to stop running McAfee on macs, but that aside > Linux compatible development environment. macOS is not, has never been, and will never be linux compatible. It's a unix, linux is a unix, if you're looking for a unix it will work just fine. It will not work if you're looking for a linux, you'll have to go through a VM with all that entails.
- joseph_grobbles 6y ago"Those proposed fixes don't make any sense for macOS." You only get this "error" (e.g. absolute correct function of the API) if you are running antivirus, so... "and downgrading to prior OS version is basically impossible for most people" It's RIDICULOUSLY simple for most people, and is always the primary recommendation before doing an OS upgrade. Apple has probably the simplest backup/restore system of any OS. You're batting 0.000. Keep going. Never let ignorance stop you from adding your wisdom, to surely be upvoted by "Apple is bad, m'kay!" fanatics who brigade these types of posts to tell us that "tHiS Is tHe lAsT StRaW"
- gowld 6y agoThis behavior is not acceptable here.
- joseph_grobbles 6y ago*FUCK* *YOU*
- dang 6y agoWe've banned this account. Please stop creating accounts to break HN's guidelines with. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- tpetry 6y agoRunning docker with homebrew and on docker, no problems. I am not using antivirus as they produce many problems on mac (and are hellish slow), i guess the problem is really on triggered by antivirus software.