2016-07-21 62 views
0

enter image description here的Git的Bash不能初始化

「無法fork子過程:資源暫時可能需要unavailable.DLL墊底參見‘rebaseall --help’。」 我該如何解決這個問題?

當我使用tortoiseGit藏匿我喜歡這個

> git.exe stash save -- "12" 

0 [main] sh (7224) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x12F0400. 
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 13140 fork: child -1 - forked process 7224 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
0 [main] sh (8240) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x1200400. 
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. 
1036670 [main] sh 13140 fork: child -1 - forked process 8240 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (10380) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x12B0400. 
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. 
3174011 [main] sh 10992 fork: child -1 - forked process 10380 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (9232) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x1330400. 
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. 
4240906 [main] sh 10992 fork: child -1 - forked process 9232 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
0 [main] sh (4164) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x13C0400. 
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. 
6274008 [main] sh 10992 fork: child -1 - forked process 4164 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (6172) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x1410400. 
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. 
10341657 [main] sh 10992 fork: child -1 - forked process 6172 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (4008) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x13B0400. 
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. 
18409517 [main] sh 10992 fork: child -1 - forked process 4008 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: Resource temporarily unavailable 
0 [main] sh (11752) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x1350400. 
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. 
18455570 [main] sh 13140 fork: child -1 - forked process 11752 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (7824) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x1350400. 
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. 
19501977 [main] sh 13140 fork: child -1 - forked process 7824 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (3708) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x13D0400. 
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. 
21578926 [main] sh 13140 fork: child -1 - forked process 3708 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (3908) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x11F0400. 
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. 
25643366 [main] sh 13140 fork: child -1 - forked process 3908 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: retry: No child processes 
2 [main] sh (8904) D:\Program Files (x86)\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x1360400/0x13F0400. 
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. 
33708123 [main] sh 13140 fork: child -1 - forked process 8904 died unexpectedly, retry 0, exit code 0xC0000142, errno 11 
D:\Program Files (x86)\Git\mingw32/libexec/git-core\git-stash: fork: Resource temporarily unavailable 
+0

什麼版本的Git是你使用?在哪個操作系統? (Windows 32或64位?) – VonC

+0

OS Win10 X64 Git版本v2.7.2 – StarSky

回答

1

一些消息嘗試,而不是Git for Windows 2.9.2便攜版:

  • 解壓PortableGit-2.9.2-64-bit.7z.exe任何你想要的(如D:\git\git2.9.2),
  • 從您的路徑中刪除D:\Program Files (x86)\Git相關路徑
  • 添加到您的路徑D:\git\git2.9.2;D:\git\git2.9.2\bin;D:\git\git2.9.2\cmd;D:\git\git2.9.2\usr\bin

然後,從CMD會話:

  • cd到一個git回購
  • bash -i --login從檢查bash的正常工作
+0

對我很有幫助,謝謝:) – StarSky

12

我曾面臨同樣的問題,一個早上。我試圖卸載Git來查看它是否損壞,並指示我關閉了幾個進程,如sh.exe在任務管理器中。在我殺死他們後,我能夠成功打開Git bash。

乾杯!

+3

OP可能意味着'ssh.exe'而不是'sh.exe',是的 - 殺死這些也爲我工作。感謝您爲我節省了完全重新啓動的麻煩。 –

+0

我有'sh.exe'而不是'ssh.exe'! –

+0

我殺了'bash.exe',它爲我工作。 – Saravana

0

這是修復程序。

  1. 轉到您的Windows Defender安全中心設置
  2. 點擊應用&瀏覽器控件
  3. 點擊底部的「攻擊保護設置」鏈接
  4. 去到「程序設置」,然後點擊「添加程序定製」 - > 「選擇確切的文件路徑」
  5. 導航到 「C:\ Program Files文件\的Git的\ usr \ BIN \ sh.exe」,並將其添加
  6. 覆蓋和關閉FOL降低:強制ASLR,隨機內存分配(自下而上的ASLR)
  7. 單擊「應用」,現在一切都應該正常工作。

而且來自同一個文件夾中添加這些二進制文件:expr.exe,uname.exe,grep.exe,rm.exe

祝你好運,
加布裏埃爾