Github/Cygwin 错误 : cygheap base mismatch detected

标签 git github cygwin

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:\cygwinC:\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/

相关文章:

git - 如何将 "develop"分支推送到远程 "origin"?

git - merge 分支后推送时无法解析引用 refs/refs/remotes/origin/branch

python - Buildout 忽略 github `find-links` 引用

ruby - vagrant 从 github 安装插件

bash - 采购时,Cygwin bash 脚本在管道上出错

bash - 为什么 ". myscript"仅在 Windows sh.exe 的一个 Git 中返回文件未找到?

git - 如何让 bash 补全与别名一起使用?

git - Git 推送大文件时远端意外挂断

c++ - cygwin 上的 g++ 与我在 Linux 平台上获得的有什么不同吗?

linux - 如何将cygdrive更改为windows目录结构