Home > development, software > git-svn fails with fatal error: unable to remap

git-svn fails with fatal error: unable to remap

October 29th, 2007 Leave a comment Go to comments

Git‘s nice Subversion (SVN) integration is one of the reasons I switched to using it within our company for my own revision control besides our official repository. Unfortunately, upgrading cygwin broke my system once again:

$ git svn dcommit
6 [main] perl 4760 C:\cygwin\bin\perl.exe: *** fatal error - unable to remap C:\cygwin\lib\perl5\site_perl\5.8\cygwin\auto\SVN\_Core\_ Core.dll to same address as parent(0x260000) != 0x990000 84 [main] perl 3224 fork: child 4760 - died waiting for dll loading, errno 11 panic: MUTEX_LOCK (45) [util.c:2331] at /usr/bin/git-svn line 787. panic: MUTEX_LOCK (45) [op.c:352].

The reason behind this behavior is a huge difference in the way processes and threads and libraries are created/handled on Windows and Linux. git-svn relies on perl within cygwin and several perl libraries that use the same base-address for libraries internally. Of course, no two libraries can be loaded to the same base-address at the same time.

Long explanation, short way to fix the problem:

  1. Quit all cygwin processes
  2. Start ash (<cygroot>\bin\ash.exe) (<edit>Use “Run as Administrator…”</edit>)
  3. Execute /usr/bin/rebaseall

Voilla, that’s all. git-svn should work again.

  1. Drew
    October 22nd, 2008 at 18:12 | #1

    Thank you very much for this! I tried googling for my errors and I couldn’t find anything but after just searching for git svn windows I happened upon this post. My exact issue, solved!

  2. October 22nd, 2008 at 18:44 | #2

    Glad it helped you!

  3. October 24th, 2008 at 14:43 | #3

    Thanks! That helped me getting git-svn working.

  4. May 20th, 2010 at 08:43 | #4

    Great, thanks for documenting this.

  5. Sathya
    April 26th, 2011 at 10:31 | #5

    Thank you so much. It did worked for me :)

  6. Jabe
    June 10th, 2011 at 07:37 | #6

    FYI: ash needs to run as Administrator when UAC is on.

  7. Oxi
    October 24th, 2011 at 10:10 | #7

    This only works for me in 1 of 10 tries.

  8. David
    November 1st, 2011 at 20:19 | #8

    +1 on running as an Administrator. It didn’t complain about running without admin rights, but git didn’t continue working until I did so.

  9. December 15th, 2011 at 16:44 | #9

    Thanks for this tip. It worked great for me.

  1. February 27th, 2009 at 23:05 | #1
  2. December 16th, 2011 at 00:52 | #2