Why can't I fix the cygwin1.dll mismatch issue?

ぐ巨炮叔叔 提交于 2020-07-10 07:47:06

问题


I'm trying to execute a .sh script (that wasn't written by me) and I get the following error:

0 [main] echo (5320) C:\Program Files\Git\usr\bin\echo.exe: *** fatal error - cygheap base mismatch detected - 0x180343408/0x180317408. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version should reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL.

I tried to follow the instructions in the error but I only have one cygwin1.dll file.

So I tried to execute the following command in a git bash shell:

/c/cygwin/bin/man

and I get:

0 [main] man (11952) C:\cygwin\bin\man.exe: *** fatal error - cygheap base mismatch detected - 0x180317408/0x180343408. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version should reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution. Rebooting is also suggested

I already tried to disable ASRL options in the exploit protection panel (as suggested by somebody) and reboot but that didn't fix the problem.

If I write

which -a cygwin1.dll

I get:

/c/cygwin/bin/cygwin1.dll

/c/cygwin/bin/cygwin1.dll

It looks like I have two cygwin1.dll but actually I only have one.. I have been searching for a possible solution since days but nothing seems to work for me. Any suggestion?


回答1:


While the error message is mentioning cygwin1.dll, it is misleading as the Git for Windows is using MSYS and the file was renamed msys-2.0.dll

Unfortunately the MSYS team forgot to change the error messages when they imported and modified the Cygwin source:



来源:https://stackoverflow.com/questions/60507083/why-cant-i-fix-the-cygwin1-dll-mismatch-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!