LoginSignup
3
1

More than 3 years have passed since last update.

Git bash Error : Could not fork child process : Resource temporarily unavailable

Posted at

動作環境

Windows

Edition : Windows 10 Enterprise
Version : 1809
OS build : 17763.1217
System : 64bit Operating system, x64 base processor

Git for windows

Git-2.26.2-64-bit.exe

TortoiseGit

TortoiseGit-2.10.0.2-64bit.msi

不具合現象

Git Bash起動時

Git for windowsインストール後にGit Bashを起動すると
Error : Could not fork child process : Resource temporarily unavailable (-1).
DLL rebasing may be required; see rebaseall / rebase --help.
というエラーが発生し起動できず
Git GUIとGit CMDは正常に起動する。
git_bash_error.png

TortoiseGitでgit clone時

下記エラーが発生。レポジトリのクローンは一応できている様子。

0 [main] sh (12996) C:\Program Files\Git\usr\bin\sh.exe: *** fatal error - cygheap base mismatch detected - 0x12C7408/0x1317408.
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 130 dofork: child -1 - forked process 12996 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: fork: retry: Resource temporarily unavailable
.....
.....
C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: fork: Resource temporarily unavailable

git did not exit cleanly (exit code 254) (195687 ms @ 2020/05/22 10:15:15)

解決策

Windows10 Exploit protectionの「イメージのランダム化を強制する(必須ASLR)をオフに設定することで回避できる。私のPCはなぜかオンに設定されていた。なぜこの設定を切り替えればできるのかは今のところ不明。

コントロールパネルで「アプリとブラウザ-コントロール」と検索して開く
Exploit protectionの設定をクリック

exploit1.PNG

イメージのランダム化を強制する(必須ASLR)がオンになっている
exploit2.PNG

規定値を使用する(オフ)に設定して、再起動する
exploit3.PNG

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1