Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcetree, cannot clone/pull anymore. sh.exe.stackdump

Well since yesterday I haven't been able to Clone any new Repos and I haven't been able to pull from any of the once I have been using. Everything worked fine before but it seems (to me) that it randomly stopped working.

I also noticed a file named "sh.exe.stackdump" is being created in every repo I have cloned, no idea where it came from

Here is an example of an error I get when I'm Cloning, I have no idea what they mean so I was hoping to get some help here :)

git -c diff.mnemonicprefix=false -c core.quotepath=false clone --recursive e:\Users\Saftsnubben\Desktop\Buckets\Test
Cloning into 'e:\Users\Saftsnubben\Desktop\Buckets\Test'...

m.AllocationBase 0x9F0000, m.BaseAddress 0x9F0000, m.RegionSize 0x4000, m.State 0x1000

C:\Users\Saftsnubben\AppData\Local\Atlassian\SourceTree\git_local\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x9F0000 <0xA00000>) in child, Win32 error 0

      0 [main] sh 11288 sync_with_child: child 11836(0x100) died before initialization with status code 0x1
     11 [main] sh 11288 sync_with_child: *** child state waiting for longjmp
C:\Users\Saftsnubben\AppData\Local\Atlassian\SourceTree\git_local/libexec/git-core\git-submodule: fork: Resource temporarily unavailable

Completed with errors, see above.



4 answers

1 accepted

0 votes
Answer accepted

Nevermind, somehow solved it by reinstalling sourcetree.

Even if the Question is old.
Update the embedded Git-Version via

Tools => Options => Git => Update embedded Git


This saved my bacon! Everyone of the other solutions I found did nothing.

Yeah, I started see this sh.exe.stackdump in every folder, updating embedded Git solved this.


Tried re-booting, re-installing source tree did not help.  But updating the embedded Git did it. You saved my day 

I recently ran into this, and I was able to determine that Removing or Deleting the sh.exe.stackdump file causes this error. 

So far, the only solution I can find is  

1) Uninstalling SourceTree and anything to do with Git.

2) Restarting the computer

3) Re-installing everything you unistalled

This is the only solution that worked for me; thanks.

Adding another solution:  I downloaded Git directly (2.19.1) and then in SourceTree switched from [Embedded] to [System].  This worked for me.

Why? Because I tried the [Update Embedded] option (twice) and it wouldn't finish.  Or, rather, it finished (no errors) but did not change the version of the embedded Git despite restarting SourceTree.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,318 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you