GitHub git pull 致命错误 cygwin DLL

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34120950/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 11:36:31  来源:igfitidea点击:

GitHub git pull fatal error cygwin DLL

gitgithubgit-pull

提问by Borovez

I am trying to perform a git pull command from my github cmd using the GitHub desktop client.

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

For some reason my git pull no longer works, and it spits out the following errors:

出于某种原因,我的 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

My cygwin1.dll is located in: C:\cygwin64\bin\

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

I use github often and I have never experienced this problem before... Can anyone please help me with this...

我经常使用github,我以前从未遇到过这个问题......任何人都可以帮我解决这个问题......

Thanks!

谢谢!

回答by CodeWizard

The problem is in your cygwin as you can see. in compatible dll version.

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

Can you try and install the git form git-scm and see if the problem still happens?

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

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

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

回答by Alex Kartishev

Had the same error stack with git for windows on Windows 10, with no cygwin1.dll on PC. The solution was to install 32-bit version. Sorry, if doesn't answer you question, but this is the first question Google shows when looking for this error. So might be helpful for others, who will meet the same problem with git 2.10.

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

回答by Raphael

It happens when you have in your PATH binaries conflicting. This is typically when you installed Cygwin and Git for windows. The binaries in common are built with different version of Cygwin, and the problem occurs.

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

Git for Windows comes with mostCygwin utilities, so you can uninstall Cygwin.

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

If you want to use Cygwin, I recommend you to install pure Git binaries and put them in your PATH.

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

回答by OldCoder

Changes to Windows 10 enabled Force randomization for images (Mandatory ASLR) on by default. I had to go to Exploit protection, and configure exceptions for each of the Cygwin programs that GitHub Desktop uses.

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

On my PC, the Cygwin programs are currently located in C:\Users\cjshaker\AppData\Local\GitHubDesktop\app-2.1.3\resources\app\git\usr\bin

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

You can learn more about the problem at: Desktop barfs with cygheap base mismatch detected https://github.com/desktop/desktop/issues/3096

您可以在以下位置了解有关该问题的更多信息:Desktop barfs with cygheap base mismatch detection https://github.com/desktop/desktop/issues/3096

Chris Shaker

克里斯·沙克

回答by Bond_009

I had the same issue, the problem was Android SDK Tools. When I uninstalled Android SDK Tools Github Desktop worked again.

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