ConEmu icon indicating copy to clipboard operation
ConEmu copied to clipboard

Crash in conemu-msys2-64.exe

Open sryze opened this issue 2 years ago • 6 comments

Versions

ConEmu build: 210912 x64 OS version: Windows 7 x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): Git Bash

Problem description

Different processes keep crashing randomly when running Git Bash inside ConEmu. For example, vim.exe, bash.exe, conemu-msys-64.exe. Mostly it happens when I do something with Git, such as git fetch or git push or git status.

It began happening to me recently, but I haven't modified my settings in a few weeks. I've updated Git for Windows to 2.36.1 recently, maybe it's related to that? Although, after I downgraded to 2.35, it still keeps happening.

I attached a stack dump below.

Steps to reproduce

  1. Open a Git Bash tab
  2. Execute some Git commands in a repo (commit, status, push, etc)

Actual results

Active ConEmu tab freezes, Ctrl-C is not working. Sometimes it creates a .stackdump file, sometimes not.

Expected results

Expected ConEmu / Git Bash to not freeze/crash

Additional files

Settings, screenshots, logs, etc.

conemu-msys2-64.exe.stackdump.zip

Update:

bash.exe crash:

$ cat bash.exe.stackdump                                                               
Stack trace:                                                                           
Frame        Function    Args                                                          
000FFFF0BD0  00180062F57 (00000000000, 00000011370, 00000000000, 000FFFFDE50)          
00000000000  00180065045 (00077845BFD, 00000000000, 00000000234, 00000000000)          
000FFFF12E0  001801369F8 (00000000000, 00000000000, 00000000030, 00000000000)          
000FFFF1450  00180063243 (000FFFF15E8, 000FFFF1570, 000FFFF1B10, 000FFFF15F0)          
000FFFFCDD0  00077ACBE9D (001802CE5C4, 00000011370, 000002CFF30, 00000000000)          
000FFFFCDD0  00077AA040A (000FFFF1C40, 70006700000000, 34002E00000000, 39003400390032) 
000FFFFC790  00077ACB53E (00000000000, 00000000000, 00000000000, 00000000000)          
000FFFFC790  001800C5709 (001005D1980, 00600000000, 00000000200, 00000000000)          
000FFFFC790  001800C72EC (00000000000, 00180131C78, 000FFFFC6C0, 0018026E880)          
000FFFFC790  001800C7691 (001005DB190, 00000000000, 00800194460, 0000000000A)          
000FFFFC790  001801568C2 (00000080000, 00000000000, 001004278C0, 001005D6560)          
00000000000  0018019598B (00000080000, 00000000000, 001004278C0, 001005D6560)          
00000000000  0010042558B (00000000000, 00000000000, 008002205D0, 00000080000)          
00000000000  001004275DA (000FFFFFFFF, 00000000000, 00000000000, 008001F86E0)          
00000000000  00100417589 (0000000000C, 0010043E860, 00000000002, 008001F86E0)          
00000000000  001004178E4 (00000000003, 00000000000, 0018019598B, 001005DAEA8)          
00000000000  00100401E1F (00000000002, 00000000001, 00000000001, 00000000008)          
00000000000  001004BFB92 (000FFFFCC70, 00800000160, 00180049B25, 00000290000)          
000FFFFCD30  00180049B91 (00000000000, 00000000000, 00000000000, 00000000000)          
000FFFFFFF0  00180047716 (00000000000, 00000000000, 00000000000, 00000000000)          
000FFFFFFF0  001800477C4 (00000000000, 00000000000, 00000000000, 00000000000)          
End of stack trace                                                                     

My Git Bash task is started using this command:

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

sryze avatar May 27 '22 19:05 sryze

This started happening to me tonight while I was doing heavy compiling (100% CPU usage across 8 cores) and various pip installs. Specifically, ConEmu will stop handling input and output completely in a single tab //while the foreground task I started from the shell continues to run//, according to Task Manager. Downgrading msys2-runtime from 3.3.5-1 to 3.3.4-2 temporarily seems to have solved the ConEmu freezing.

I do not have a stackdump or other files to share right now; mostly commenting while the changes I made to my environment are still fresh in my mind. conemu-msys2-64.exe does not appear to be crashing, just refusing to send/receive output/input at all.

cr1901 avatar May 28 '22 08:05 cr1901

@cr1901 Were you able to solve this? I've reinstalled both ConEmu and Git Bash (tried earlier versions as well) and still experiencing the crashes... Not sure what else can be done. Regular Git Bash console (MinTTY) is working fine for me.

sryze avatar Jun 06 '22 15:06 sryze

After I re-installed both Git and ConEmu, the crashing occurs much less often. Although it does happen from time to time. But at least I can use ConEmu now.

sryze avatar Jun 24 '22 05:06 sryze

@sryze Yea, sorry, I have not had time to solve this or try to duplicate. I have my own detailed notes on when things stopped working though, so I can attempt a bisect to find out when things started failing when I'm up for it.

cr1901 avatar Jun 24 '22 11:06 cr1901

Looks like some change in Git for Windows / Git Bash is causing this. After I upgraded to 2.37 ConEmu began crashing again.

sryze avatar Sep 08 '22 10:09 sryze

I just started encountering this after updating git for windows. Git version 2.43.0.windows.1 and conEmu version 230724

Unfortunately I didn't think to note what version of git I came from, but I hadn't updated git in probably two or three years.

I haven't done any additional investigation yet, but will if I can find the time.

delroyhiebert avatar Feb 14 '24 15:02 delroyhiebert