You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider using installed Git binaries instead of bundled git/msys-2.0.dll #4039
Currently GitHub desktop uses bundled git mingw binaries (especially msys-2.0.dll). It causes some issues if there is a different version of msys-2.0.dll on the system already installed (likely the case if user has installed Git for Windows). This causes issues like #3096 . Since multiple versions of the said dll causes cygheap problems, Avoid using bundled git/mingw when a Git installation is found on the system.
Version
GitHub Desktop version: 1.0.13
OS version: Microsoft Windows [Version 10.0.16299.248]
Steps to Reproduce
Install 32 bit Git
Install 64 Bit GitHub Desktop app
Clone a repository /commit to a repository & you will get cygheap errors.
The issue is not specific to the 32 bit / 64 bit Github desktop setup case, it happens whenever there are multiple versions of msys-2.0.dll.
Expected behavior: Use installed git binaries /dlls instead of bundled git whenever possible.
Actual behavior: the app currently used bundled binaries
Reproduces how often: Always with different version of msys-2.0.dll. If all the dlls are of same version and arch, then everything works fine.
We don’t use the installed Git version since we can’t guarantee that it’ll work with our calls. For example, if you have an older version of Git installed, it might not support a newer flag that we pass.
Just to be clear, the issue occurs only if ASLR is on.
This is still the issue, as discussed in #3096, and this isn't something we can address in Desktop or Git for Windows (see this comment). I'll add this to our "known issues" document in #3943.
After changing to 64 bit all of them use same base so it works fine i guess??
I'm not aware of any changes to MSYS2 that would make the underlying issue go away, but if you are able to use Git for Windows 64-bit with Mandatory ASLR enabled, then maybe Desktop will get this same benefit when we update our embedded Git? 🤷♂️
I spoke too soon I guess. Even on 64 Bit with same base clone fails with same error. I have no idea why it worked few times. I toggled ASLR few times and might not have applied or rebooted I guess.
Yes, everything works fine with Git for Windows. So I guess it might. Just curious,
Is there any difference between embedded Git and Git for windows?
Activity
j-f1 commentedon Feb 18, 2018
We don’t use the installed Git version since we can’t guarantee that it’ll work with our calls. For example, if you have an older version of Git installed, it might not support a newer flag that we pass.
shiftkey commentedon Feb 18, 2018
@tprasadtp it's not clear to me which version of 32-bit Git for Windows you've installed to trigger this issue - could you be more specific?
tprasadtp commentedon Feb 18, 2018
I have tried with the latest version 2.16.1.4. With 64 Bit, commit seems to work, clone fails on 32 bit as well as 64 bit.
tprasadtp commentedon Feb 18, 2018
Just to be clear, the issue occurs only if ASLR is on.
shiftkey commentedon Feb 18, 2018
This is still the issue, as discussed in #3096, and this isn't something we can address in Desktop or Git for Windows (see this comment). I'll add this to our "known issues" document in #3943.
shiftkey commentedon Feb 18, 2018
From the old issue:
I'm not aware of any changes to MSYS2 that would make the underlying issue go away, but if you are able to use Git for Windows 64-bit with Mandatory ASLR enabled, then maybe Desktop will get this same benefit when we update our embedded Git? 🤷♂️
tprasadtp commentedon Feb 19, 2018
I spoke too soon I guess. Even on 64 Bit with same base clone fails with same error. I have no idea why it worked few times. I toggled ASLR few times and might not have applied or rebooted I guess.
Yes, everything works fine with Git for Windows. So I guess it might. Just curious,
Is there any difference between embedded Git and Git for windows?
shiftkey commentedon Feb 19, 2018
No, these all come from the same source, and would likely have the same issue with Mandatory ASLR enabled.