Conemu: Git Bash Not Working After Update

Created on 12 Feb 2018  路  17Comments  路  Source: Maximus5/ConEmu

Versions

ConEmu build: 180206 [64] {Alpha}
OS version: Windows Windows 10 x64
Used shell version (git-bash, cmd, powershell)

Problem description

After ConEmu update over the weekend, I can no longer launch Git Bash.

I can run Git Bash, without ConEmu, just fine.

Steps to reproduce

  1. Launch ConEmu
  2. Git Bash

Actual results

ConEmuC: Root process was alive less than 10 sec, ExitCode=0.
Press Enter or Esc to close console...

Expected results

Git Bash

Additional files

Setup: https://conemu.github.io/en/SshAgent.html#step-by-step

git-bash-1

git-bash-2

other-git

Most helpful comment

Definitely. It's a Git-for-Windows problem. For example, if you change your Task by adding -t xterm bash stops exiting on start.

set "PATH=%ProgramFiles%\Git\usr\bin;%PATH%" & "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe -t xterm /usr/bin/bash.exe -l -i -new_console:p

All 17 comments

Same here. Running the latest version of git for windows, (Git-2.16.1.4-64-bit).

ConEmu64.exe -basic -run {git bash} 

ConEmu64.exe -basic -run {git bash}

More context please? If i run this command from either a ConEmu CMD prompt, or just a regular CMD after doing a cd into the ConEmu dir, I get a popup terminal with Git Bash starting then it exits with the same error message.

ConEmuC: Root process was alive less than 10 sec, ExitCode=0.
Press Enter or Esc to close console...

I uninstalled 180206 (alpha) and installed 161206 (downgrade to stable) and Git Bash is now working again for me. Did not touch the Git install.

161206 worked without connector, which was implement to fix bunch of msys/cygwin issues.

The version 2.16.0.windows.2 of Git is working properly. I consider there was some braking changes in recent updates of Git for Windows.

May be it because you have two different versions of msys-2.0.dll?
For example now I have two different versions:
C:\Program Files\Git\usr\bin\msys-2.0.dll 2.9.0 2017-10-05 15:05
and
C:\Program Files\ConEmu\ConEmu\msys-2.0.dll 2.8.2 2017-07-12 15:35
conemu-msys2-64.exe uses the patched version of msys-2.0.dll from ConEmu folder and then exit with segmentation fault.
My system is:
Windows 7 x64
ConEmu 170807 [64]
Git for Windows v2.15.0 x64

Now I try to understand why this task not work:
set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & "%ConEmuDir%..\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe /usr/bin/bash.exe -l -i -new_console:p
I found:

1)
set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & "%ConEmuDir%..\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe
result:
error launching git: .

2)
set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & "%ConEmuDir%..\Git\git-cmd.exe" --no-cd --command=/usr/bin/bash.exe -l -i
$ ./wsl/256colors2.pl
result:
bash is working, but 256 colors are not displayed

3)
set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & "%ConEmuDir%..\Git\git-cmd.exe" --no-cd --command=/usr/bin/bash.exe -l -i
$ ./conemu-msys2-64.exe /bin/bash.exe
result:
1 [main] conemu-msys2-64 (520) C:\Program Files\ConEmu\ConEmu\conemu-msys2-64.exe: * fatal error - cygheap base mismatch detected - 0x1802F7408/0x1802F4408.
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.
Segmentation fault

4)
copy C:\Program Files\ConEmu\ConEmu\msys-2.0.dll C:\Program Files\Git\usr\bin\msys-2.0.dll
set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & "%ConEmuDir%..\Git\git-cmd.exe" --no-cd --command=/usr/bin/bash.exe -l -i
$ ./conemu-msys2-64.exe /bin/bash.exe
$ ./wsl/256colors2.pl
$ ssh --help
result:
bash is working, 256 colors are displayed perfectly, but ssh from mingw64 utils not working, because try to use msys-2.0.dll with different version.

5)
copy C:\Program Files\ConEmu\ConEmu\msys-2.0.dll C:\Program Files\Git\usr\bin\msys-2.0.dll
set "PATH=%ConEmuDir%..\Git\usr\bin;%PATH%" & "%ConEmuDir%..\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%/conemu-msys2-64.exe /bin/bash.exe -l -i
result:
error launching git: .
I still can't understand why this option does not work.

ConEmu distro doesn't provide any msys2 dlls. If was your decision to place it there. Remove it.

Also, conemu-msys2-64 doesn't use cygwin1.dll! It's msys2 binary and the name depicts that.

It's the question for @git-for-windows what happened in latest msys updates which leads to impossibility to run bash in the interactive mode.

Definitely. It's a Git-for-Windows problem. For example, if you change your Task by adding -t xterm bash stops exiting on start.

set "PATH=%ProgramFiles%\Git\usr\bin;%PATH%" & "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe -t xterm /usr/bin/bash.exe -l -i -new_console:p

It's not a git-for-windows problem, it's a problem with MSYS bash.
When I upgrade from latest stable, it stops working in ConEmu.

Git-for-windows is a bundle of MSYS, git and things.
It's definitely a problem of git-for-windows, especially because it doesn't work even without ConEmu (git-bash.exe fails too).
JFI, the bug is already fixed in latest git-for-windows.

Fixed by downgrading ConEmu to previous version 190217. Not sure I have the same problem though (Nothing happens when I start a Git Bash console in ConEmu, stopped working after latest update of ConEmu).

Issue is still here with the latest Git for Windows (2.22.0) and latest ConEmu (190623).

Git bash works by itself perfectly. Adding -t xterm does not help

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Chirishman picture Chirishman  路  3Comments

Daniel15 picture Daniel15  路  3Comments

phazei picture phazei  路  6Comments

marfillaster picture marfillaster  路  6Comments

altbdoor picture altbdoor  路  4Comments