Skip to content

TortoiseGit crashes with "git.exe diff-index --raw HEAD --numstat..." #2487

@dezertdezine

Description

@dezertdezine
  • 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?
$ git --version --build-options
git version 2.25.0.windows.1
cpu: x86_64
built from commit: 7c71c859c97853ed057da5cbab12f3c13b5554df
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.18363.592]
  • 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: VisualStudioCode
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

I'm using Git with TortoiseGit: 2.9.0

Details

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

Bash in Vscode

  • What commands did you run to trigger this issue?
From TortoiseGit:
Right-click repository folder > Select Git Commit from context menu

* I initially posted this issue on TortoiseGit / Issues here:
https://gitlab.com/tortoisegit/tortoisegit/issues/3506#note_275197630
...but was told to ask here
  • What did you expect to occur after running these commands?

Normally the UI appears, I add a message and hit commit.

  • What actually happened instead?

TortoiseGit error window opens with:

"git.exe diff-index --raw HEAD --numstat -C50% -M50% -z --"
exited with an error code, but did not output any error message

If I close the error window, the Tortoise UI loads with updated file, I add a message and hit commit, I get:

git did not exit cleanly (exit code -1073741795)
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
    This is only happening with one repository, but it's private

If I run git from the command line with I get this:

$ git commit -a
*** stack smashing detected ***:  terminated
 *** stack smashing detected ***:  terminated
 Illegal instruction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions