-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
PortableGit 2.10.2.1 crashes with 0xc0000005 #1038
Comments
Sadly, this is not verifiable, as it does not trigger the crash here. Do you have any stack trace or something? Does v2.11.0(3) crash also?
Which Git? |
Yes, v2.11.0(3) crashes as well. I've got a crash dump:
I tried getting a trace with gdb, but it couldn't catch the crash. Git obtained via |
One more update. I used my existing MSYS2 installation to build Git from |
That is not surprising, as it is a completely different beast: it uses the MSYS2 runtime, i.e. the POSIX emulation layer based on Cygwin.
I am not sure that this results in correct binaries. I always build with the Git for Windows SDK, which is a fork of MSYS2 with subtle, but important changes relative to MSYS2. Another thing to try: does it work when you call |
Nope, I get a segmentation fault. |
One more tidbit. I've been trying to check what post-install does, and running it step by step, and this caught my attention:
I copied the DLLs from mingw32\bin to mingw32\libexec\git-core, but this simply means that I have obtained a fresh standard VM and will see if installing git using the installer works. |
It looks like rebasing is to blame for that crash (or rather, security software). I started the installer and everything worked fine during installation until it ran autorebase and couldn't clone the repo because git crashed. DeviceLock software doesn't like rebased DLLs for some reason. UPD: Actually, not really. It's UPD: I found the files in UPD: the current stumbling block is
UPD: I have a log of the linker with -t and --verbose, but I am not sure if it can help in any way. Looks like I'll see what I can do with the support service of the security s/w. UPD: I couldn't get the debug symbols for the
|
According to https://cygwin.com/faq/faq.html#faq.using.bloda that may be the problem. The symptom that it only starts seg-faulting as soon as the shell is involved is a strong hint: that is exactly when Git enters the MSYS2 runtime (which is a close derivative of the Cygwin runtime, hence the Cygwin FAQ). |
I assume v2.12.2 is also crashing? |
Yes, it's crashing as well. I think I'll close this issue, since it's a defect in DL, not Git for Windows. |
I checked, and git version 2.6.0.windows.1 is not crashing. I guess I'll see what changes were done between it and 2.10 to the git-wrapper |
I've checked the diffs, and it looks like this commit is the problem: f8e286e Only it and 29df4bb and 514335e introduced any changes between 2.10.2 and 2.6.0 and it's the one that is doing something suspicious from security PoV. UPD: or maybe not. A program that only consists of |
That only sets/removes the console Ctrl+C handler. That cannot really cause a segfault, or raise any suspicions. This one does not change any functionality, it simply stores the length in a separate variable instead of passing the number of bytes directly. This one only increments Except. Except it also changes the guard of the I'll try some things (as time allows). |
Oh, wait... Your report stated that the crash happened in So I fear we chased the wrong unicorn here. One thing we did change at some stage the may possibly be a little problem is that we turned on the stack smasher to detect when other code plays games with our stack. That was in Git v2.6.3... |
I've copied |
Setup
32-bit portable Git, tried both PortableGit-2.10.2-32-bit.7z.exe and PortableGit-2.11.0-32-bit.7z.exe
defaults?
I'm using PortableGit
to the issue you're seeing?
I've tried with both the default and the minified PATH:
Symantec Endpoint Protection was active, but didn't report anything.
Group policies prevent execution of programs located outside whitelisted directories (
C:\Software
is whilelisted).Details
git-cmd.exe
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Git reporting its command line options.
Git for Windows has stopped working
From the event log:
From Report.wer:
Git obtained via msys2 pacman on the same machine works without errors:
URL to that repository to help us with testing?
No repository necessary.
The text was updated successfully, but these errors were encountered: