Git 一直给我这个错误
0 [main] sh (47116) C:\Users\Marcus\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x11C7400/0x1297400.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
0 [main] sh 42052 fork: child -1 - forked process 47116 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
0 [main] sh 42052 fork: child -1 - forked process 47116 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
我尝试过的事情包括:
- 从
C:\cygwin
和C:\cygwin64
中删除 cygwin 并重新安装 - 使用卸载程序和安装程序重新安装 github。
- 卸载 github 并手动删除其本地和漫游 appdata 文件夹,然后重新安装。
- 重启电脑
- rebase
C:\cygwin
,它成功了,但没有解决任何问题。 - rebase
%appdata%\Local\Github\PortableGit_c7e...\.
它再次返回原始错误。
作为引用,我运行的是 windows 10 64 位。我能找到的唯一另一个问题指出了我从未找到解决方案的错误:link here
除了完全重新安装 Windows 之外,我不确定还能去哪里,我们将不胜感激任何帮助。
最佳答案
禁用 Force randomization for images (mandatory ASLR)在您系统的 Windows Defender 安全中心。 或者 exclude ASLR for git executables :
Get-Item -Path "C:\Program Files\Git\usr\bin\*.exe" | %{ Set-ProcessMitigation -Name $_.Name -Disable ForceRelocateImages }
关于Github/Cygwin 错误 : cygheap base mismatch detected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34959583/