Skip to content
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

Git crashes with application error 0xc0000017 #2020

Closed
1 task done
Tragen opened this issue Jan 10, 2019 · 12 comments
Closed
1 task done

Git crashes with application error 0xc0000017 #2020

Tragen opened this issue Jan 10, 2019 · 12 comments
Labels

Comments

@Tragen
Copy link

Tragen commented Jan 10, 2019

  • 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.20.1.windows.1
cpu: x86_64
built from commit: 7c9fbc07db0e2939b36095df45864b8cda19b64f
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.17763.253]
64-bit
  • What options did you set as part of the installation? Or did you choose the
    defaults?
I have the portable version

Details

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

CMD

any command.
eg:
git
or
git --version --build-options
  • What did you expect to occur after running these commands?

git works

  • What actually happened instead?

git crashes
image

This happens if the path is longer then 45 characters.
On other computers, when I use the same path, it's working.

As I have no problems with other software on my development computer.
The git version shipping with smartgit is also working.
Also the portable version 2.19.2 ist working without problems.

How can I help to narrow down the problem?

@Tragen
Copy link
Author

Tragen commented Jan 10, 2019

I've made more tests.
This happens when I start git.exe directly in the bin folder or when I use git-cmd.exe.
When I use git-bash.exe, git is working.

@dscho
Copy link
Member

dscho commented Jan 11, 2019

This happens when I start git.exe directly in the bin folder or when I use git-cmd.exe.

Does it work when you use git.exe from the cmd folder (which is the supported way, not the bin folder)?

@dscho dscho added the unclear label Jan 11, 2019
@Tragen
Copy link
Author

Tragen commented Jan 11, 2019

No, I get the same crash.

@dscho
Copy link
Member

dscho commented Jan 18, 2019

The strangest thing about this is that the error corresponds to STATUS_NO_MEMORY... Do you have an overzealous anti-malware running, maybe?

@Tragen
Copy link
Author

Tragen commented Jan 18, 2019

I have enough memory and free memory and no virus scanner installed. I have even Defender disabled.

@luan-u
Copy link

luan-u commented Jan 21, 2019

I am having an issue similar to this one.

It works if I run it from Git Bash. It worked until release 2.19.2 2.20.0-rc2.windows.1
Below is info I was preparing for a new ticket.
Git version is same as Tragen's. Missing info fields are also similar to Tragen's.

Setup

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

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

$ cmd.exe /c ver

Microsoft Windows [Version 10.0.17134.472]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt

Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: WinSSL
CRLF Option: CRLFAlways
Bash Terminal Option: ConHost
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?

Corporate machine with DRM/encryption programs, in-house solution.
Kaspersky Endpoint Security installed. It is not an option to disable it (controlled by corporate policy).

Details

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

CMD/PowerShell. Git Bash works.

@joel0
Copy link

joel0 commented Feb 1, 2019

I have the same problem. I'm using Windows 10 Enterprise 1809 as Windows To Go (on a flash drive). I'm using BitLocker and Windows Defender. The x64 portable and installed version throw the mentioned error. The x86 portable version seems to work. The 2.19.2 x64 portable and installed version both work.

@stahta01
Copy link

stahta01 commented Feb 16, 2019

The strangest thing about this is that the error corresponds to STATUS_NO_MEMORY... Do you have an overzealous anti-malware running, maybe?

I am having problem with git using 1.5 gigs of memory.
It happens after I do an "git am" command on a repo where a prior git am failed.
I then do a "git am --abort" and redo the "git am" commands and this is when the git locks up and task manger says it is using 1.4 to 1.5 gigs of memory. I plan to try to find a simple test case to duplicate the issue; I will create a separate ticket/issue report when I can.
I posted in this thread to see if the others were doing "git am" commands to trigger the issue.

Tim S.

@dscho
Copy link
Member

dscho commented Feb 27, 2019

Can you re-try with v2.21.0? There have been a couple of changes in that area that might work around (or fix) the reported issues.

@luan-u
Copy link

luan-u commented Feb 27, 2019

For me, it is working again. Basic git commands are working across CMD/Powershell/Git Bash.

EDIT: while reading the changelog for v2.21.0, I noticed that my case may be related to issue 1855 because my corporate machine is a laptop with a Nvidia GPU (and the effect caused by Nvidia DLL may be happening also).

Anyway, it is working now.

@dscho dscho closed this as completed Feb 27, 2019
@Tragen
Copy link
Author

Tragen commented Feb 27, 2019

I have also an Nvidia GPU.
2.21 is working also for me.
Would be interesting to know what the real problem was.
I'm happy now that it's working again.
Thanks

@dscho
Copy link
Member

dscho commented Feb 28, 2019

Would be interesting to know what the real problem was.

@Tragen if this is indeed the same issue as #1855, then git-for-windows/MINGW-packages#32 fixes it. And I guess the Nvidia driver just made it less likely that there would be a stray NUL by random chance to terminate that command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants