Skip to content

Git 2.19.1 crashes while git gc in Windows #1866

@guoxiao

Description

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

I found previous issues like this which was fixed in 2.19.1, but git still crashes on my machine after I upgraded to the latest version.

Setup

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

git version 2.19.1.windows.1
cpu: x86_64
built from commit: 11a3092e18f2201acd53e45aaa006f1601b6c02a
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.17134.320]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: WinSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Rebase: Enabled
Enable Builtin Stash: Enabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

I use powershell with poshgit plugin.

Details

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

Powershell

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

It works without error.

  • What actually happened instead?

It crashed with message:

Enumerating objects: 952556, done.
error: failed to run repack03/952556)
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

It occurs on a internal repo that I cannot share here. The crash dump file is here:
git.exe.14828.zip

I tried the latest snapshot at https://wingit.blob.core.windows.net/files/index.html but the error still exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions