Skip to content

Git Bash enters a crash-loop hang on startup #4808

@kevinushey

Description

@kevinushey
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

Using the 64-bit build.

$ git --version --build-options
git version 2.43.0.windows.1
cpu: x86_64
built from commit: 4b968f3ea3b32a7bc50846bab49f3f381841d297
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

This is an aarch64 build of Windows, running in a Parallels VM on an M1 macOS machine.

Edition	Windows 11 Pro
Version	24H2
Installed on	‎2/‎10/‎2024
OS build	26052.1000
Experience	Windows Feature Experience Pack 1000.26052.1000.0
  • What options did you set as part of the installation? Or did you choose the
    defaults?
> type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Git for Windows was working without issue previously, so I suspect something may have changed in the latest Windows Insider builds that is causing trouble here.

When I attach to the process with gdb, I see the following:

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00000002101eeaf3 in memmem () from C:\Program Files\Git\usr\bin\msys-2.0.dll
(gdb) bt
#0  0x00000002101eeaf3 in memmem () from C:\Program Files\Git\usr\bin\msys-2.0.dll
#1  0x0000000210095d91 in cwdstuff::override_win32_cwd(bool, unsigned int) ()
   from C:\Program Files\Git\usr\bin\msys-2.0.dll
#2  0x000000021009642e in cwdstuff::set(path_conv*, char const*) () from C:\Program Files\Git\usr\bin\msys-2.0.dll
#3  0x0000000210047025 in dll_crt0_1(void*) () from C:\Program Files\Git\usr\bin\msys-2.0.dll
#4  0x0000000210045c86 in _cygtls::call2(unsigned int (*)(void*, void*), void*, void*) ()
   from C:\Program Files\Git\usr\bin\msys-2.0.dll
#5  0x0000000210045d34 in _cygtls::call(unsigned int (*)(void*, void*), void*) ()
   from C:\Program Files\Git\usr\bin\msys-2.0.dll
#6  0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Is there anything else that's useful that I could provide? Note that I can successfully invoke git.exe from cmd.exe shell, so I suspect the issue is unique to the Git Bash shell.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Using the default Git Bash shell.

This reproduces just when attempting to start Git Bash -- here, when clicking on the icon in my taskbar.

  • What did you expect to occur after running these commands?

No busy-hang.

  • What actually happened instead?

Busy-hang.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions