Reputation: 4616
I recently started getting the following git error on git svn fetch
or git svn rebase
, but other local git commands are working fine:
Following is the detailed error message:
C:\Git\bin\perl.exe: ** unable to remap C:\Git\bin\msys-ssl-0.9.8.dll to same address as parent -- 0x678F0000
0 [main] perl 1300 sync_with_child: child 7092(0x324) died before initialization with status code 0x1
567 [main] perl 1300 sync_with_child: *** child state child loading dlls
Environment:
I have tried multiple solutions including upgrading mysysgit from 1.8.2 to latest 1.8.5.2 but no luck yet.
Upvotes: 23
Views: 9221
Reputation: 1302
I had a similar problem on a system with git 1.9.5.msysgit.0.
The dll reported in the error for me was libsvn_swig_perl-1-0
.
The exact error was:
C:\Git\bin\perl.exe: *** unable to remap C:\Git\bin\libsvn_swig_perl-1-0.dll to same address as parent -- 0x667B0000
On my system the original base address of Git\bin\libsvn_swig_perl-1-0.dll
was 0x666C0000
(666C0000 to 66790FFF
).
I managed to solve the problem with a rebase -b 0x667C0000 libsvn_swig_perl-1-0.dll from within the Git\bin directory (that 0x667C0000
is my original base plus a random 0x00100000
).
One way to see the current base address of a dll is with dumpbin /headers.
Upvotes: 0
Reputation: 710
Same issue, all rebasing of dll-addresses did not work for me. Now 'Git Svn' works for me again. Following steps solved the problem (Git 1.9):
1) Deinstall
2) Reboot
3) Install of most recent git version (2.7)
Upvotes: 0
Reputation: 7516
Just try to uninstall mysysgit and re-install it. For my case this resolved the issue.
Cheers
Upvotes: 1
Reputation: 714
I had the same issue. Restart didn't help, downgrade didn't help, but I made
git reset --hard
and it work now.
I know it was side-effect, but if someone is desperate like I was...
Upvotes: -1
Reputation: 1
I had the similar issue and i tried restarting my machine but it didn't work. It worked when I downgraded GIT to 1.8.5.2.
Upvotes: 0
Reputation: 1666
The root cause of this issue and any variants of it is two DLLs have been mapped to the same address, causing a conflict. Individual cases can be solved using rebase.
Msysgit 1.9.4-preview20140815 contains a case of this issue with the libsvn_repos-1-0.dll and libneon-25.dll libraries. Using the command git svn
gives a similar error message as described in the question.
The bug report contains this workaround:
Rebase to free regions via: (execute as Administrator)
rebase -b 0x64000000 bin/libsvn_repos-1-0.dll
rebase -b 0x64200000 bin/libneon-25.dll
After this git svn
works correctly.
Other cases should be solvable in a similar manner, choosing free addresses for the DLLs with which the issue occurs.
Upvotes: 44
Reputation: 78
I had a same problem with git 1.9.4-preview20140815 on Windows Server 2008 R2. Restarts didn't help.
I have downgraded git to version 1.8.1.2-preview20130201 and it solved a problem.
Upvotes: 2
Reputation: 1177
Not the best answer, but a reboot fixed it for me.
Seems related to this issue, so probably address-space related.
Upvotes: 4