Closed johncaliskan closed 1 year ago
Hi,
same issue here and everything that I have found on the internet didn't help.
BR, George
what is curious, it started with new version of git and then I have tested with msys2 and cygwin, all of them, same issue, I also suspect my machine
Hi,
it looks like this settings (Windows Security -> App & browser control -> Exploit protection -> System settings) must be off.
At least for me, this is the way that I fix the problem.
Now my question is: How and why this settings are blocking the apps? :)
BR, George
Anybody an idea to handle this crap on a current Windows 11 ([Version 10.0.25267.1000)? The SEHOP stuff applied to Vista like aeons ago.
Just create folders: \windows\system32\drivers\etc \windows\system32\drivers\etc\hosts (or host - I am not sure) \windows\system32\drivers\etc\services \windows\system32\drivers\etc\networks \windows\system32\drivers\etc\protokol
So what is solution in windows 11?
i.e. getting
Error during installation process (com.msys2.root):
Execution failed (Unexpected exit code: 1): "C:/app/msys64\usr\bin\bash.exe --login -c exit"
Does anyone know how to fix "unexpected exit code 254: c:\msys64\usr\bin\bash.exe --login -c exit" issue when installing msys2?
Hello all, I do know of a solution that may help most of you.
The problem stems from the ASLR features in windows. So instead of disabling ASLR system wide, we can work around this by disabling the "Mandatory ASLR" and the "BottumUp ASLR" security features located in:
Windows Security > App & Browse control> Program Settings > + Add program to customize
From here add all of the binaries in C:\msys64\usr\bin and disable those two features
Now this takes a lot of time so here is a script you can run that will do all of the work for you (depending on your installation path, you may need to update the location of your msys2): https://github.com/TinkerRnD/Helpful-Scripts/blob/main/Remove_ASLR.ps1
I have been able to fix all my windows shells this way (Cygwin, Git Bash and mys2). Hopefully not a permanent solution but will get you up and running until the next patch @msys2 ;)
Does anyone know how to fix "unexpected exit code 254: c:\msys64\usr\bin\bash.exe --login -c exit" issue when installing msys2?