Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start Git Bash

Tags:

Having trouble starting Git Bash, not sure where in the stack my errors are occuring. Running Windows 10, Git Bash, ConEmu and Vagrant.

When I start Git Bash, either through ConEmu or the application directly, I receive the following message:

0 [main] bash 4696 fork: child 528 - died waiting for dll loading, errno 11 bash: fork: retry: No child processes 1263234 [main] bash 4696 fork: child 684 - died waiting for dll loading, errno 11 bash: fork: retry: No child processes 3519490 [main] bash 4696 fork: child 2020 - died waiting for dll loading, errno 11 bash: fork: retry: No child processes 7764494 [main] bash 4696 fork: child 7064 - died waiting for dll loading, errno 11 bash: fork: retry: No child processes 

I don't know enough about Git Bash (or bash, for that matter) to figure out what's going on and all the answers I can find are about Cygwin.

like image 490
Nate Anderson Avatar asked May 16 '16 21:05

Nate Anderson


People also ask

Why Git bash is not opening?

Open CMD as Admin. CD to the installation path of GitHub (e.g. CMDPRMPT> CD "C:\Program Files\Git") Run "git-bash.exe" from command prompt. Right-click the GIT BASH icon on the taskbar and pin it so you can avoid steps 1-3 in the future.

How do I start Gitbash?

Git Bash comes included as part of the Git For Windows package. Download and install Git For Windows like other Windows applications. Once downloaded find the included .exe file and open to execute Git Bash.

How do I start bash from command line?

Press Windows key + X then click Command prompt, at the command prompt, type: bash then hit Enter. If you want to be able to access the local file system, press Windows key + X, Command Prompt (Admin) then type bash at the prompt.


2 Answers

Same issue happened with COMODO Firewall since last update.

  1. Adding Git folder to File Rating > File List as trusted file

  2. Adding Git folder to Advanced protection > Milanescious > Shell code exclusion

  3. Setting git-bash.exe as allowed application in Firewall > Application Rules (this one may be optional, but it won't hurt anyway)

Solved the issue on Windows 10.

Side note : Turning COMODO firewall off does not solve the issue, this is quite misleading... But adding exclusions rules does fix the problem.

Other side note: if you use Comodo Firewall, you should consider uninstalling it... It has bugged and ruined my windows install, i've got a lot of BSOD as soon as i removed it... When i think of it in hindsight, he was the root cause of a lot of problem. I mean, how in the world a Firewall could silently block an application or infinite sandboxing it without even a notification. Plus the removall is a pain in the ass, uninstaller crash one time out of two...

like image 189
Anthony Raymond Avatar answered Oct 21 '22 02:10

Anthony Raymond


Turns out Comodo Antivirus was auto-sandboxing Git Bash. Adding Git Bash as an exception to the sandboxing rules solved my problem.

Hope this saves someone else an hour.

like image 37
Nate Anderson Avatar answered Oct 21 '22 01:10

Nate Anderson