Couldn’t reserve space for cygwin’s heap, Win32 error 0

Cygwin and Windows git stopped playing nicely together after a recent Windows update. There’s a variety of recommendations for how to fix this this on StackOverflow and elsewhere, but this post actually makes the most sense. In a nutshell, msys-1.0.dll (installed into your Program Files\Git\bin directory) is not built to be position independent. Use the dll rebaser to get it to load at a new address, like so:

$ rebase.exe -b 0x50000000 msys-1.0.dll

And voila, git goodness restored.

Tags: ,

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)

4 Responses to “Couldn’t reserve space for cygwin’s heap, Win32 error 0”

  1. Dani Ramírez Says:

    I saw this solution in SO but it failed. Well… *I* failed. I tried several different solutions and this seemed to be the most reliable.

    Just for those who see how rebase keeps failing: admin console, n00bs :P I totally forgot this and lost a couple of hours trying other solutions.

    Thanks for the confirmation for the method!

  2. naveen Says:

    Thanks. This worked for me! Cheers.

  3. Amadren Says:

    Thanks :)

  4. stxh Says:

    You save me

Leave a Reply