【问题标题】:GitHub git pull fatal error cygwin DLLGitHub git pull 致命错误 cygwin DLL
【发布时间】:2016-03-11 07:27:33
【问题描述】:

我正在尝试使用 GitHub 桌面客户端从我的 github cmd 执行 git pull 命令。

由于某种原因,我的 git pull 不再工作,它会吐出以下错误:

D:\AndroidStudioProjects\Tangle>git pull
      1 [main] sh (6932) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0xDD7400.
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.
      1 [main] sh 15144 fork: child -1 - forked process 6932 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
      4 [main] sh (16184) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0xEE7400.
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.
1067828 [main] sh 15144 fork: child -1 - forked process 16184 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
      3 [main] sh (6452) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0x1107400.
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.
3137324 [main] sh 15144 fork: child -1 - forked process 6452 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes
      3 [main] sh (10188) C:\Users\dbale\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0xC77400/0xED7400.
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.
7211236 [main] sh 15144 fork: child -1 - forked process 10188 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/mingw32/libexec/git-core/git-sh-setup: fork: retry: No child processes

我的cygwin1.dll位于:C:\cygwin64\bin\

我经常使用github,之前从未遇到过这个问题...谁能帮我解决这个问题...

谢谢!

【问题讨论】:

  • 我在为 Android Studio 配置 git 时发生了这种情况。不知道是不是你的情况。我从我的 android sdk 工具 path-to-android-sdk\tools\bin 中删除了 cygwin1.dll。然后我重新启动我的电脑并运行 GitHub 独立应用程序。拉取请求已成功执行。
  • 升级后重新启动似乎可以解决此问题 - 因此这不是永久性问题。见:stackoverflow.com/a/43082278/1880657

标签: git github git-pull


【解决方案1】:

如您所见,问题出在您的 cygwin 中。在兼容的 dll 版本中。

你可以尝试安装 git form git-scm 看看问题是否仍然存在?

https://git-scm.com/download/win

【讨论】:

    【解决方案2】:

    在 Windows 10 上与 git for windows 有相同的错误堆栈,在 PC 上没有 cygwin1.dll。解决方案是安装 32 位版本。 抱歉,如果没有回答您的问题,但这是 Google 在查找此错误时显示的第一个问题。所以可能对其他人会有所帮助,他们会在 git 2.10 中遇到同样的问题。

    【讨论】:

    • 这对我有用。如果您的机器上安装了 64 位 git,请安装 32 位版本的 cygwin,否则它们将无法一起工作
    • 我在 W7 上运行。 Cygwin 64 没问题,但是在安装完整版 Git 后,我​​在只有一个 DLL 时遇到了关于 DLL 的这些错误。我已经安装了 32 位版本的 Cygwin,它完全修复了它!
    【解决方案3】:

    当您的 PATH 二进制文件发生冲突时,就会发生这种情况。这通常是在您为 windows 安装 Cygwin 和 Git 时。共同的二进制文件是用不同版本的Cygwin构建的,就会出现问题。

    Windows 版 Git 带有 大多数 Cygwin 实用程序,因此您可以卸载 Cygwin。

    如果你想使用 Cygwin,我建议你安装纯 Git 二进制文件并将它们放在你的 PATH 中。

    【讨论】:

    • 删除cygwin文件夹,git-bash从错误中恢复
    【解决方案4】:

    我有同样的问题,问题是 Android SDK 工具。 当我卸载 Android SDK 工具时,Github 桌面再次工作。

    【讨论】:

    • 不知道为什么,但我刚刚卸载了 Android SDK 工具,重新启动了我的电脑,瞧!它工作正常。谢谢老兄。
    【解决方案5】:

    对 Windows 10 的更改默认启用强制图像随机化(强制 ASLR)。我必须转到漏洞利用保护,并为 GitHub Desktop 使用的每个 Cygwin 程序配置例外。

    在我的电脑上,Cygwin 程序当前位于 C:\Users\cjshaker\AppData\Local\GitHubDesktop\app-2.1.3\resources\app\git\usr\bin

    您可以在以下位置了解有关该问题的更多信息: 检测到 cygheap 碱基不匹配的桌面 barfs https://github.com/desktop/desktop/issues/3096

    克里斯·沙克尔

    【讨论】:

      猜你喜欢
      • 2012-06-17
      • 2019-02-02
      • 2012-03-18
      • 2023-03-08
      • 2014-12-01
      • 2015-01-25
      • 1970-01-01
      • 2017-05-26
      • 2019-07-07
      相关资源
      最近更新 更多