Skip to content

Unable to Use difftool on More than 8 Files #2007

Closed
@Jeff-G

Description

@Jeff-G

I have a branch with >8 modified files. When I run the command git difftool ., the command crashes when trying to diff the 9th file. I have tested this with both vimdiff and Beyond Compare configured on my system, and they both fail. The error message I receive is something like:

error: cannot spawn [two seemingly random ASCII symbols]: No such file or directory
fatal: external diff died, stopping at [relative path to 9th file]

Given the random ASCII symbols (e.g., running the same command twice generates different ASCII symbols), I'm guessing this is due to memory corruption or buffer overflow.

Setup

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

64-bit, tested in both 2.20.0 and 2.20.1. For 2.20.1, the version reported by Git is:

git version 2.20.1.windows.1
cpu: x86_64
built from commit 7c9fbc0...19b64f
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?

Windows 10 Pro 64-bit
Version 1703 (OS Build 15063.1029)

  • What options did you set as part of the installation? Or did you choose the
    defaults?

Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled

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

No

Details

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

I have tried in both Windows cmd.exe and Git Bash, with the same results.

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

Each of my files would open in my selected difference tool, in succession. This was working in Git 2.19.

  • What actually happened instead?

The first eight (8) files opened in my configured difference tool. The ninth (9) file crashed the git difftool command with the error:

error: cannot spawn [two seemingly random ASCII symbols]: No such file or directory
fatal: external diff died, stopping at [relative path to 9th file]
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

The affected Git repositories are offline, but it was tested in multiple repositories (all hosted in the same offline environment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions