Bad Address error

1,606 views
Skip to first unread message

Jonathan Katon

unread,
Dec 19, 2016, 12:37:17 PM12/19/16
to git-for-windows
Hello,

I have had a working version of git windows installed on my desktop for at least the past six months. Yesterday I decided to update and installed the 2.11.0 version. Ever since this installation I get "bash: /mingw64/bin/git: Bad address" error whenever I try running a git command in git-bash. I have no idea what the problem could be. I have tried restarting my computer and completely uninstalling/reinstalling git windows but to no avail. Any help would be appreciated.

Thank You
Jonathan

$ git status
bash: /mingw64/bin/git: Bad address

$ which git
/mingw64/bin/git

$ ldd $(which git)
        ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffa5a050000)
        KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ffa57be0000)
        KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ffa56540000)
        SYSFER.DLL => /c/WINDOWS/System32/SYSFER.DLL (0x66a90000)
        ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ffa57b30000)
        msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ffa576c0000)
        libintl-8.dll => /mingw64/bin/libintl-8.dll (0x61cc0000)
        LIBEAY32.dll => /mingw64/bin/LIBEAY32.dll (0x63080000)
        sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ffa59fe0000)
        libiconv-2.dll => /mingw64/bin/libiconv-2.dll (0x66000000)
        GDI32.dll => /c/WINDOWS/System32/GDI32.dll (0x7ffa57680000)
        RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ffa57a00000)
        libpcre-1.dll => /mingw64/bin/libpcre-1.dll (0x69140000)
        zlib1.dll => /mingw64/bin/zlib1.dll (0x62e80000)
        USER32.dll => /c/WINDOWS/System32/USER32.dll (0x7ffa57860000)
        gdi32full.dll => /c/WINDOWS/System32/gdi32full.dll (0x7ffa56760000)
        win32u.dll => /c/WINDOWS/System32/win32u.dll (0x7ffa568f0000)
        WS2_32.dll => /c/WINDOWS/System32/WS2_32.dll (0x7ffa59380000)
        libssp-0.dll => /mingw64/bin/libssp-0.dll (0x68ac0000)




Nick Roth

unread,
Dec 22, 2016, 5:08:33 AM12/22/16
to git-for-windows
I've ran into a similar error today. I updated my git/git-bash install to 2.11 and got the same error message. I tried multiple uninstall/reinstall attempts of both 32-bit and 64-bit and couldn't get it to work. At best I got git to run on an initial git-base terminal for a few attempts but then opening any new terminal would run into the problem but even that has stopped working.

Johannes Schindelin

unread,
Jan 20, 2017, 11:31:57 AM1/20/17
to Nick Roth, Jonathan Katon, git-for-windows
Hi Nick & Jonathan,

Nick, please reply-to-all, it is quite common for people to post without
being subscribed to this list.

On Tue, 20 Dec 2016, Nick Roth wrote:

> I've ran into a similar error today. I updated my git/git-bash install
> to 2.11 and got the same error message. I tried multiple
> uninstall/reinstall attempts of both 32-bit and 64-bit and couldn't get
> it to work. At best I got git to run on an initial git-base terminal for
> a few attempts but then opening any new terminal would run into the
> problem but even that has stopped working.

I just fixed a bug with the same symptom:
https://github.com/git-for-windows/git/issues/1033

For testing, I published this prerelease:

https://github.com/git-for-windows/git/releases/tag/v2.11.1.windows-prerelease.2

Would you care to test?

Ciao,
Johannes

Nick Roth

unread,
Jan 23, 2017, 8:47:28 AM1/23/17
to Johannes Schindelin, Jonathan Katon, git-for-windows
Hi Johannes,

I tried out the prerelease build on my Windows 7 machine and it seems to run fine. I was able to run through a few git commands and didn't observe any noticeable errors. 

If I understood the bug report correctly then I think I was part of the affected users with \\ in their PATH.

Thanks for the fix and thanks to whoever tracked down the root cause.

--
Nick

--
You received this message because you are subscribed to a topic in the Google Groups "git-for-windows" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/git-for-windows/2dLkWgaYeBI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to git-for-windo...@googlegroups.com.
To post to this group, send email to git-for...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/alpine.DEB.2.20.1701201649590.3469%40virtualbox.
For more options, visit https://groups.google.com/d/optout.

Johannes Schindelin

unread,
Jan 23, 2017, 12:02:29 PM1/23/17
to Nick Roth, Jonathan Katon, git-for-windows
Hi Nick,

On Mon, 23 Jan 2017, Nick Roth wrote:

> I tried out the prerelease build on my Windows 7 machine and it seems to
> run fine. I was able to run through a few git commands and didn't
> observe any noticeable errors.

Good.

> If I understood the bug report correctly then I think I was part of the
> affected users with \\ in their PATH.

That makes sense.

> Thanks for the fix and thanks to whoever tracked down the root cause.

All kudos for figuring out what triggered the bug go to GitHub user
@Vermora: https://github.com/git-for-windows/git/issues/1033

From there, it only took a couple of hours to identify the flaw in the
MSYS2 runtime and to come up with a fix.

Ciao,
Johannes
Reply all
Reply to author
Forward
0 new messages