Cygwin Errors with Git SVN

When venturing out into Windows Land, I mostly use Cygwin as command line interface. Unfortunately the Win7 64 bit version has the habit of throwing rather cryptic errors from time to time:

[code lang=”bash”]
$ git svn rebase
0 [main] perl 5248 C:\cygwin\bin\perl.exe: *** fatal error
– cygheap base mismatch detected – 0x61242860/0xD72860.
[/code]

This, and what appears to be its slight variations, can usually be resolved by:

  1. Closing all Cygwin windows
  2. Running C:\cygwin\bin\ash.exe as Administrator
  3. Executing
    [code lang=”bash”]
    PATH=.
    rebaseall -v
    exit
    [/code]

Not overly pretty, but fixes the problem for a while.