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

Latest git on Windows 10 causes a segmentation fault trying to checkout a branch #1208

Closed
1 task done
jjohnstn opened this issue Jun 15, 2017 · 4 comments
Closed
1 task done

Comments

@jjohnstn
Copy link

jjohnstn commented Jun 15, 2017

  • 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.13.1.windows.1
built from commit: 13f583bedb59f9a11b3f2e91673c10c250f84576
sizeof-long: 4
machine: x86_64

  • 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.14393]
  • 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

$ cat /etc/install-options.txt
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

  • 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

Git shell (mingw64)

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

I expected the upstream containerBuild branch to be checked out to replace the master branch
that was originally cloned from my GitHub repo

  • What actually happened instead?

I get a segmentation fault. Then the .git/index.lock file must be removed.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

git clone https://github.com/jjohnstn/cdt.git
cd cdt
git checkout containerBuild

@YueLinHo
Copy link

Maybe duplicate to issue #1202?
And try https://github.com/git-for-windows/git/releases/tag/v2.13.1.windows.2?

@damon-atkins
Copy link

damon-atkins commented Jun 16, 2017

$ git --version --build-options
git version 2.13.1.windows.1
built from commit: 13f583b
sizeof-long: 4
machine: x86_64
$ cmd.exe /ver
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

Fresh Start

  1. "git clone ...." works
  2. "git log" works
  3. "git branch" indicates on develop branch ( note this is used instead of master)
  4. "git diff" segmentation fault

@damon-atkins
Copy link

damon-atkins commented Jun 16, 2017

$ git --version --build-options
git version 2.13.1.windows.2
built from commit: a36e14b
sizeof-long: 4
machine: x86_64 version 2.13.1.windows.2

Looks like it is fixed in https://github.com/git-for-windows/git/releases/tag/v2.13.1.windows.2

@dscho dscho closed this as completed Jun 16, 2017
@jjohnstn
Copy link
Author

Thanks. It works with the .2 release.

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

No branches or pull requests

4 participants