-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Windows 10 - bash.exe: fatal error in forked process - MapViewOfFileEx, Win32 error 5. #1244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm getting a similar error on Windows 7 when I run command
|
I reproduced this problem. In my case I had a process blocking application called Cylance running; it blocked a lot of Git. This was installed by our IT group on all machines, and it completely blocks Git from running (among other things). I removed it with permission and then these problems went completely away. |
I can confirm that Cylance is running on the machine that I'm having the error |
...and not everything is blocked but |
Cylance is not (yet?) in https://cygwin.com/faq/faq.html#faq.using.bloda. Maybe it should be.
|
@dscho
|
Aliases are executed via MSYS2's Bash. Probably that is the reason for the problem, as every MSYS2 program uses the MSYS2 runtime, which has to make rather strong assumptions about the DLL loading process in order to emulate POSIX semantics. |
I experienced a similar issue with the Ruby 2.4 installer for Windows. The details are at oneclick/rubyinstaller2#72. After talking to our Cylance admin it turns out we had to add exclusions for pacman.exe and git.exe. They both can generate stack pivot violations. Cylance detects them and intervenes so they can't be exploited by malware. When this happened to me, GPGme was called out as failing. Hope this helps! |
@cyclump thank you for this information! Sounds as if Cylance needs to be added to Cygwin's BLODA... |
FYI from my support ticket with Cylance; I asked if they would unblock it globally or if it is an issue git needs to fix (ok not git.exe, but the whole forking process)
Looks like it won't change and we have to whitelist forever. |
@worthy7 that's a bummer. Especially since Cylance seems to be unable to understand the technical details: it is not Git that does this, it is Cygwin/MSYS2, and there are very, very good reasons that Cygwin/MSYS2 does this. Reasons that Cylance would understand, I am sure, if they bothered to inform themselves. This is such a pity! At least we now know where we stand, and can maybe recommend other security products. |
This issue is similar... #832, but it did not contain any resolution.
Setup
defaults?
to the issue you're seeing?
I ran the installer with the "Run as administrator" option, but that did not fix the issue.
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
URL to that repository to help us with testing?
The text was updated successfully, but these errors were encountered: