Skip to content

Git bash stopped working after a Windows 10 update (return of fork error). #2282

Description

@PauloCarvalhoRJ
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

** git version 2.19.1.windows.1
cpu: x86_64
built from commit: 11a3092e18f2201acd53e45aaa006f1601b6c02a
sizeof-long: 4
sizeof-size_t: 8 **
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

** Microsoft Windows [versão 10.0.17763.615] **
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

** Editor Option: VIM
Custom Editor Path: 
Path Option: BashOnly
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Rebase: Disabled
Enable Builtin Stash: Disabled **
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** An automatic Windows update took place yesterday. Before that, Git bash was working just fine. **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

** CMD **

** Right-click on a repository directory, then "Git bash here" (the command /usr/bin/bash --login -i appears as the window title) **
  • What did you expect to occur after running these commands?

** A working bash prompt. **

  • What actually happened instead?

** 11 [main] bash 1564 child_copy: stack write copy failed, 0xFFFFBEC0..0x100000000, done 0, windows pid 9020, Win32 error 5
1276 [main] bash 1564 fork: child 7644 - pid 7644, exitval 0x103, errno 11
bash: fork: retry: Resource temporarily unavailable
bash: fork: Resource temporarily unavailable
bash-4.4$ git --version --build-options
106456609 [main] bash 1564 child_copy: stack write copy failed, 0xFFFFC4C0..0x100000000, done 0, windows pid 9020, Win32 error 5
106457967 [main] bash 1564 fork: child 2064 - pid 2064, exitval 0x103, errno 11
bash: fork: retry: Resource temporarily unavailable
bash: fork: Resource temporarily unavailable
bash-4.4$
**

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

** It is not triggered by repositories. I can get the same error if I start git bash from any directory. **

  • Unworkable solutions tried based on previous research:

** Run the 64-bit version of CMD **
** Fix PATH env. variable **
** Replace msys-2.0.dll **

  • Solutions NOT tried due to corporate IT policy:

** Run as administrator **
** Disable anti-virus **
** Disable firewall **

  • Workaround that worked to some extent:

** Put every Git's binaries directories into PATH and run them in CMD directly instead of inside bash **

  • Other symptoms:

** After the same update, the programs (not only Git) are taking much longer to start. **

  • Speculation:

** Something is being attached to all Windows processes (Git included) that somehow is breaking/corrupting anything that relies on fork()-ing. **

  • Other related software that is installed:

** MSYS2: its bash prompt has the same error. pacman quits with GPG-related errors. pacman -S fails because it sees the repository as corrupted (can't check hashes).**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions