-
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
shared memory deadlock between git commands launched in same shell #5237
Comments
Hmm. I cannot reproduce. In a freshly-initialized worktree: $ git gui &
[3] 2215
$ git log
fatal: your current branch 'main' does not have any commits yet |
@dscho try with a non-empty repo - I saw the same result with an empty one while experimenting, suppose I should've specified that "the usual output" meant at least one commit, i.e. a non-empty repo. |
I'm running into issue this after upgrading from 2.44.1 to 2.47.1.windows.2. I'm working in a cmd.exe and I usually open
(for
(for I then tried again with a fresh empty repo: Opening
Happy to provide more info about my setup if needed. |
Upgrading to 2.48.1 seems to have fixed this issue for me. I don't see anything related to it in the release notes specific to Git for Windows, but maybe something changed in upstream Git that fixed it. |
Could potentially be this: -msys2-runtime 3.5.4-2
+msys2-runtime 3.5.7-1 |
Setup
64-bit
$ git --version --build-options
git --version --build-options
git version 2.47.0.windows.2
cpu: x86_64
built from commit: 1f8a83c
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.10.1
OpenSSL: OpenSSL 3.2.3 3 Sep 2024
zlib: 1.3.1
10, 64-bit
$ cmd.exe /c ver
Microsoft Windows [Version 10.0.19045.5011]
defaults?
defaults, except default branch name
One of the following:
to the issue you're seeing?
None that I'm aware of.
Details
Git Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git gui &
git log
git log should've printed usual output
git log hangs with no output ... upon ctrl-c, something similar to follow is printed:
does not appear to be related to a specific repo ... although, perhaps significantly, 'git init ...' in the same shell does NOT hang, and 'git log' in the resulting empty workspace prints:
fatal: your current branch 'main' does not have any commits yet
as expected ... 'git status' and 'git add' also work, but 'git commit' hangs and ctrl-c elicits similar output (except the program reported is ...\usr\bin\sh.exe)
The text was updated successfully, but these errors were encountered: