Skip to content

Git Bash: Segmentation Fault for every command #1832

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
1 task done
jryd opened this issue Sep 14, 2018 · 5 comments
Closed
1 task done

Git Bash: Segmentation Fault for every command #1832

jryd opened this issue Sep 14, 2018 · 5 comments

Comments

@jryd
Copy link

jryd commented Sep 14, 2018

  • 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.19.0.windows.1
cpu: x86_64
built from commit: d96bb8bc6c636a8869140e860e72e7bdf64bd790
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.285]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt
Editor Option: VIM
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Rebase: Disabled
Enable Builtin Stash: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

The issue seems to only occur when I start Git Bash directly from C:/Program Files/Git/bin/bash.exe, which I use to be able to have Git Bash integrated with VSCode. If I run Git Bash through C:/Program Files/Git/git-bash.exe then it runs fine.

Details

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

I am running Git Bash within VSCode, as mentioned above.

Literally every command I run returns a segmentation fault, except pwd.

$ ls
Segmentation fault
$ git --version --build-options
Segmentation fault
$ git branch
Segmentation fault
$ git log
Segmentation fault
$ git add .
Segmentation fault
$ docker ps -a
Segmentation fault
  • What did you expect to occur after running these commands?

For the appropriate command to run

  • What actually happened instead?

Segmentation fault is returned and a file named bash.exe.stackdump appears. Below are the contents:

Stack trace:
Frame        Function    Args
000FFFF4FA0  0018005E579 (00000000000, 000FFFFCE00, 000FFFF51A8, 000FFFFDE50)
00000000002  0018006056A (00000000064, 00000000000, 00000000000, 00000000000)
000FFFF5280  00180125C3B (00000000004, 00600072D49, 000000052CC, 00000400000)
000FFFF5C00  0018005E9AD (00180040000, FB1C005E0000, 000FFFF5600, 000FFFF55B0)
000FFFF5600  7FFA72ECED2D (000FFFF5C00, 00180290564, 00000000000, 00000000000)
000FFFF5600  7FFA72E36C86 (00000003470, 00180320850, 00000000000, 00000000000)
00000003470  7FFA72ECDC5E (000FFFF62D0, 00000000002, 000FFFF6480, 000FFFF64A0)
00000003470  0018009DEE8 (006001DF580, 000FFFF65D0, 0018006422C, 00000000000)
0000000001F  00180144850 (001800E1FA5, 00100425B20, 00000000002, 000003A0000)
001005FA650  0018011DE4B (001800E1FA5, 00100425B20, 00000000002, 000003A0000)
001005FA650  00100428EFB (00000000003, 00180320AF8, 0018013835B, 0010000008B)
001005FA650  00100429B18 (000000007F0, 00000000000, 001005F57D8, 00000000000)
00000000001  00100432960 (00100000001, 006001DE590, 00100468FA0, 0010045B140)
006001DF0C0  00100437B9A (00000000076, 00000000077, 001800BBA9E, 000FFFF67FC)
006001DEA60  00100438BF4 (00000000001, 00100000000, 000FFFF691C, 00000000000)
006001DECA0  00100439A8C (00100000000, 00000000000, 00000000000, 00000000000)
End of stack trace (more stack frames may be present)

I have tried reinstalling Git, different versions of Git, running as administrator, updating Windows etc, all to no avail.
This is happening in all directories, regardless of whether it is a repository or not.

@PhilipOakley
Copy link

What anti-virus scanners are being run on your machine. They have given problems in the past.

If you don't integrate with VSCode, does it still seg fault?

@jryd
Copy link
Author

jryd commented Sep 14, 2018

@PhilipOakley I have Windows Defender and Trend Micro Security Agent.

No, if I run Git Bash in a standalone terminal from the start menu it works fine. (I believe it starts from C:/Program Files/Git/git-bash.exe when I do that?)

It's only when I run it from within VSCode that this is an issue.

image

@michaelblyons
Copy link

Sounds like #1291 (comment)

@elieux
Copy link

elieux commented Sep 14, 2018

@jryd, you did mention that Git Bash works fine in the original report. But does C:/Program Files/Git/bin/bash.exe work outside of VSCode?

@jryd
Copy link
Author

jryd commented Sep 14, 2018

@michaelblyons i had searched yesterday but hadn't come across that issue, it is the same error and same circumstances.

It looks to be an antivirus issue, I turn it off and it all works fine again. I will talk to my IT department about getting an exclusion policy on the Git folder.

@jryd jryd closed this as completed Sep 14, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants