-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MinTTY crashes frequently with a Git Bash using Windows-native pseudo consoles #2687
Comments
Could you test with the latest snapshot? There have been a couple bug fixes in the Cygwin runtime v3.1.5, and the snapshot should come with an MSYS2 runtime based on that Cygwin version (you can always verify by looking at |
The Portable Git 64bit from commit 4df0b59, which is still using msys2-runtime v3.1.4-2, still has such an issue. |
Well, I downloaded git-for-windows/MSYS2-packages@f4d50b1 , went to Update: I'd like to keep this issue open until a new stable version of Git for Windows gets released and this crash disappears in it, or if you managers like you may close it at once. |
Indeed, there has not been any snapshot since I had upgraded both MinTTY and MSYS2 runtime. However, a build is running right now, and once it succeeds (hopefully...) the snapshot should then be uploaded for you to test. |
Oh it seems that this issue disappears in commit 3c88881 . |
Great! FWIW it was probably not that commit, but the update to MinTTY and/or MSYS2 runtime that happened in the meantime. |
Under certain circumstances, the Git Bash window (MinTTY) [would crash frequently](git-for-windows/git#2687), which has been addressed. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Had the same Issue on Windows 7 32 bit. |
Setup
defaults?
No, I unzipped the portable version:
PortableGit-2.26.2-64-bit.7z.exe
andPortableGit-2.27.0-64-bit.7z.exe
/etc/bash.bashrc
: replace its content with "source /etc/profile
" using Notepad / Notepad++ / Beyond Compare.stackdump
file on crashto the issue you're seeing?
No
Details
CMD (enter CMD and call
usr\bin\bash.exe directly
)Minimal, Complete, and Verifiable example
this will help us understand the issue.
MinTTY should start successfully - create a window and show a bash prompt. If I don't rewrite
/etc/bash.bashrc
, then it can enter bash prompt; if/etc/bash.bashrc
is replaced as mentioned above, the bash will be stuck into /etc/profile, and then Ctrl-C can interrupt it and make it show bash prompt and accept user input as expected.On v2.27.0, MinTTY crashes very very often, though sometimes it will succeed in opening a new window in several times.
/usr/bin/mintty.exe
and/usr/bin/mintty.exe -
will crashWhile on v2.26.0 MinTTY always succeeds.
What I've found
I downloaded Git SDK as said in #949 (comment) , compiled
mintty
usingmakepkg -s
, and modified\usr\src\MSYS2-packages\mintty\src\mintty-3.1.8\src\winmain.c
to do tests. Then I find:mintty
checks whether it starts from a consolefork
and the forked child process will callsetsid
setsid();
crashes frequentlyStack Dump
The
mintty.exe.stackdump
frommintty
inGit for Windows v2.27.0.windows.1
is:And the
Function
column is stable, only a few args changes during different tries (the first argument of function00180070B8B
).The text was updated successfully, but these errors were encountered: