Cygwin: Fatal error - unable to remap
Posted December 19, 2010. Tagged windows.
I love using Cygwin to get access to a Unix shell on Windows, but often you’ll run into this fatal error on Vista and Windows 7:
*** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent
This failure can happen with just about any DLL, and from running just about any command (SSH, source control, etc). However, the failure message will be the same. Here’s some information and how to fix it.
Doing a Google or Bing search will turn up many results for this error, but I wanted to also put this information here for my own benefit (plus, many of the top results point to mailing list discussions telling people to search for the fix!).
This problem is the result of an unfortunate interaction with a DLL security feature added in Windows Vista. A good discussion can be found at the following Super User question: http://superuser.com/questions/194529/cygwin-fatal-error-unable-to-remap-what-does-it-mean
Finally, the fix:
- Close all open Cygwin windows
- Open a Windows command prompt
- Navigate to the Cygwin bin directory (i.e. C:\cygwin\bin)
Run the following commands:
$ c:\cygwin\bin>ash $ ./rebaseall
Wait for the rebase to finish, then restart your Cygwin session