Fails with Exception: STATUS_ACCESS_VIOLATION #25

Closed
vitkhudenko opened this Issue Jun 5, 2012 · 28 comments

Projects

None yet
@vitkhudenko

After upgrading from Git-1.6.5.1-preview20091022 to Git-1.7.10-preview20120409 my git has stoped working. For instance, when I try to open bash I get the following bash.exe.stackdump:

MSYS-1.0.12 Build:2011-07-20 17:52
Exception: STATUS_ACCESS_VIOLATION at eip=6801364A
eax=00005009 ebx=00005009 ecx=7C80EEF7 edx=00000000 esi=0022FE34 edi=0022FA34
ebp=0022F8A4 esp=0022F88C program=C:\Program Files\Git\bin\bash.exe
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022F8A4  6801364A  (00005009, 00000000, 00110000, 00000000)
  12193 [main] bash 4092 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
  12848 [main] bash 4092 handle_exceptions: Error while dumping state (probably corrupted stack)

Reverting back to Git-1.6.5.1-preview20091022 restores normal functioning.

I'm on Win XP Pro + SP3.

@hvoigt
Member
hvoigt commented Jun 9, 2012

Please have a look at these links:

msysgit/git#8
#12

@vitkhudenko

Well, I reviewed those links and I don't find them to be related to the issue I've encountered. I forgot to specify I'm on a 32-bit OS (while the links are about 64-bit OS issues). And even more - on my another machine which is a Win 7 64-bit the new version (Git-1.7.10-preview20120409) works fine. :)

@hvoigt
Member
hvoigt commented Jun 11, 2012

Then it might be the rebasing issue again. A quick search for an explanation returned this
http://groups.google.com/group/msysgit/browse_thread/thread/13fd7486bf4048c6
basically you can try to use rebase.exe (which has nothing to do with git rebase) to find a new base address for msys-1.0.dll once you have done that we would need to verify that it works on other machines as well and hope for the best.

@hvoigt
Member
hvoigt commented Jun 14, 2012

If we do not get more information on this issue I will close it in a couple of days.

@hvoigt
Member
hvoigt commented Jun 18, 2012

This issue is missing information to work on this. Therefore closing it. We can reopen it once more information arrive.

@hvoigt hvoigt closed this Jun 18, 2012
@rdp
rdp commented Sep 6, 2012

FWIW if I use sh.exe from mingw instead of from git, I avoid this...

@vitkhudenko

Just tried Git-1.7.11-preview20120710 - got the same STATUS_ACCESS_VIOLATION issue and reverted back to Git-1.6.5.1-preview20091022.

@kusma
Member
kusma commented Sep 19, 2012

The OP is aparently back. Please, PLEASE OP, try what hvoigt is suggesting.

@kusma kusma reopened this Sep 19, 2012
@vitkhudenko

kusma, I'd like to help. But I don't know what to do exactly. I have zero experience in Windows/C/C++ programming. If you (or someone else, maybe hvoigt) could give me detailed steps of what to do - I'll surely do it.

@jianwubayiba

i have this problem...not fixed it yet
someone tell me the answer

@deanzhang

I Got the same problem in win xp sp3.

MSYS-1.0.12 Build:2011-07-20 17:52
Exception: STATUS_ACCESS_VIOLATION at eip=68001FE4
eax=00000001 ebx=FFFFFFF7 ecx=00000001 edx=00000001 esi=0022FCC4 edi=0022F8C4
ebp=0022F6F4 esp=0022F6CC program=d:\Program Files\Git\bin\sh.exe
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022F6F4 68001FE4 (0022FBC0, 682BC000, 01CE5BBC, 5CD6D400)
0022F714 680022D9 (0022F8C4, 00000000, E8908FE6, 9CE6B18A)
0022F734 6801367D (0022FBC0, 00000000, 00110000, 00000000)
0022FC00 6805E455 (0000003C, 80000000, 000007AC, 1F2CAD67)
964559 [main] sh.exe" 6140 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1085357 [main] sh.exe" 6140 handle_exceptions: Error while dumping state (probably corrupted stack)

@jianwubayiba

replace msys-1.0.dll by a new one in "documents and settings\administrator\local setting\application data\github\portablegit_xxxx..."

@shaise
shaise commented Oct 30, 2013

this also happens in ver 1.8. To overcome it I used msys-1.0.dll from version 1.7.6

@dscho
Member
dscho commented Dec 30, 2013

Okay, so the resolution seems to be (from what little information is provided) solved by using rebase.exe as described here.

@dscho dscho closed this Dec 30, 2013
@Stupid-Git

I had problems on my Windows XP machine, and I finally got around it by upgrading to Windows 7.
However, it was working yesterday and then today I suddenly got the same error!?! WTF!?! I didn't even install any new software; I didn't even reboot! Anyway, I searched the web and found this
http://qiita.com/shiena/items/de89dad3bfca33ce776b and this
http://d.hatena.ne.jp/miau/20131229/1388301913
but it is only useful if you understand Japanese, but I guess you can use google translate or something.
What solved it for me was to DELETE FILES IN THE TMP/TEMP directory.
Here is a link or 2 on removing such files. (Or just Google "windows 7 clearing temp files")
http://metadataconsulting.blogspot.jp/2011/08/how-to-clear-windows-7-temporary-files.html
http://metadataconsulting.blogspot.ca/2014/04/spring-disk-cleaning-detailed-look-at.html
I hope this is useful to others as well.
Cheers, Stupid-Git

@a-iv
a-iv commented Oct 22, 2014

Please reopen this issue.
I can reproduce it:

C:\>ver
Microsoft Windows [Version 6.3.9600]

C:>"C:\Program Files (x86)\Git\bin\git.exe" --version
git version 1.9.4.msysgit.2

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>dir /b %TEMP%

C:\>echo > %TEMP%\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
      0 [main] sh.exe" 17588 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
    865 [main] sh.exe" 17588 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

C:\>type sh.exe.stackdump
MSYS-1.0.12 Build:2012-07-05 14:56
Exception: STATUS_ACCESS_VIOLATION at eip=68001FE4
eax=00000001 ebx=FFFFFFF7 ecx=00000001 edx=00000001 esi=0028FCC0 edi=0028F8C0
ebp=0028F6F0 esp=0028F6C8 program=C:\Program Files (x86)\Git\bin\sh.exe
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
0028F6F0  68001FE4  (0028FBC0, D4CAD000, 01CFED58, E3F71700)
0028F710  680022D9  (0028F8C0, 00000000, 9FD0A1D0, A1D098D0)
0028F730  6801366A  (0028FBC0, 00000000, 00110000, 00000000)
0028FC00  6805E475  (80000000, 0000002C, 056F03C7, 00110000)
 252232 [main] sh.exe" 17588 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
 256766 [main] sh.exe" 17588 handle_exceptions: Error while dumping state (probably corrupted stack)

C:\>del %TEMP%\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.
@t-b t-b reopened this Oct 22, 2014
@t-b
t-b commented Oct 22, 2014

@a-iv What language version of windows do you have?
Can I just copy&paste the cyrillic letters from your posting or do I have to enter it somehow fancy?

@a-iv
a-iv commented Oct 22, 2014

@t-b I have Russian version of Windows with cp866 cmd code page.
So you may have an issue to create such file using cmd.

Anyway you can copy text Список.foo and create file using explorer.

@t-b
t-b commented Oct 22, 2014

I can't reproduce that here with Win7x64

C:\Users\thomas\AppData\Local\Temp>dir *.foo
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 06AA-69B8

 Verzeichnis von C:\Users\thomas\AppData\Local\Temp

22.10.2014  17:12                30 Список.foo
               1 Datei(en),             30 Bytes
               0 Verzeichnis(se),  8.057.696.256 Bytes frei

C:\Users\thomas\AppData\Local\Temp>ver

Microsoft Windows [Version 6.1.7601]

C:\Users\thomas\AppData\Local\Temp>"C:\Program Files (x86)\Git\bin\git.exe" --version
git version 1.9.4.msysgit.2

C:\Users\thomas\AppData\Local\Temp>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\Users\thomas\AppData\Local\Temp>chcp 866
Aktive Codepage: 866.

C:\Users\thomas\AppData\Local\Temp>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.
@a-iv
a-iv commented Oct 22, 2014
C:\>echo %TEMP%
R:\TEMP

C:\>echo %TMP%
R:\TEMP

C:\>echo > R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
      0 [main] sh.exe" 13492 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   1652 [main] sh.exe" 13492 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

C:\>del R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>REM Change one symbol

C:\>echo > R:\TEMP\Списо-.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>del R:\TEMP\Списо-.foo

C:\>echo > R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
      0 [main] sh.exe" 7112 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   1024 [main] sh.exe" 7112 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

C:\>REM One more time

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
      0 [main] sh.exe" 16880 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
    623 [main] sh.exe" 16880 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

C:\>del R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>REM Try another temp folder

C:\>mkdir C:\TEMP

C:\>set TEMP=C:\TEMP

C:\>set TMP=C:\TEMP

C:\>echo %TEMP%
C:\TEMP

C:\>echo %TMP%
C:\TEMP

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>echo > C:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>REM What's going on?

C:\>echo > R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
      0 [main] sh.exe" 12944 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   1273 [main] sh.exe" 12944 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

C:\>del R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>REM Where is my TEMP in sh?

C:\>"C:\Program Files (x86)\Git\bin\sh.exe"
sh.exe"-3.1$ echo $TEMP
/tmp
sh.exe"-3.1$ echo $TMP
/tmp
sh.exe"-3.1$ echo > /tmp/bar.baz
sh.exe"-3.1$ exit

C:\>dir /b C:\TEMP\*.baz
bar.baz

C:\>dir /b R:\TEMP\*.baz
File not found.

C:\>REM Magic!

I've set C:\TEMP value for %TEMP% and %TMP% in Windows settings, restart cmd and reproduce the same results.

After Windows restart:

C:\>echo %TEMP%
C:\TEMP

C:\>echo %TMP%
C:\TEMP

C:\>echo > C:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

C:\>echo > R:\TEMP\Список.foo

C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
GNU bash, version 3.1.20(4)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

I've set R:\TEMP value for %TEMP% and %TMP% in Windows settings, restart Windows.
Now I can reproduce an issue.

Note: I am using SoftPerfect RAM Disk to store my temp on disk R:.

@a-iv
a-iv commented Oct 22, 2014

Steps to reproduce an issue:

  1. Format any disk as FAT32, e.g. flash card (FAT32 required).
  2. Change your TEMP to point any folder on this disk.
  3. Restart Windows (I don't understand why, but required).
  4. Create file started with Список (I don't understand why, but required):
    C:\>echo > %TEMP%\Список.foo
  5. Start sh.
C:\>"C:\Program Files (x86)\Git\bin\sh.exe" --version
      0 [main] sh.exe" 13492 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   1652 [main] sh.exe" 13492 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

Reproduced on Windows 8.1 and Windows Vista.

@heX16
heX16 commented Dec 26, 2014

I had this error.
Project contains file names with russian letters.
After renaming to english the error disappeared.

@linquize

What is your system locale?

@RouR
RouR commented May 10, 2015

I have the same issue - How to fix it?
(Russian windows, using R:\TEMP value for %TEMP% and %TMP% in Windows settings, using SoftPerfect RAM Disk to store my temp on disk R:.)

@a-iv
a-iv commented May 11, 2015

@RouR just use NTFS :)

@egocarib

I'm having this issue, and it's quite frustrating. After a lot of internet searching there really is almost no good info about a solution for this issue. I also can't figure out where to download an older version of GitHub for windows (this problem started for me recently after an upgrade)

here's the error I get:
MSYS-1.0.12 Build:2012-07-05 14:56
Exception: STATUS_ACCESS_VIOLATION at eip=006B7968
eax=00000001 ebx=0028F0AC ecx=00734C5C edx=00350000 esi=0028F0B0 edi=00000000
ebp=0028F084 esp=0028EF0C program=C:\Users\AppData\Local\GitHub\PortableGit_c2ba306e536fdf878271f7fe636a147ff37326ad\bin\sh.exe
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028F084 006B7968 (00000000, 000000B0, 0028F0C8, 0028F52C)
End of stack trace

dscho wrote:

Okay, so the resolution seems to be (from what little information is provided) solved by using rebase.exe as described here.

The link is broken, though, so this isn't a very helpful solution.

Also, jianwubayiba wrote:

replace msys-1.0.dll by a new one in "documents and settings\administrator\local setting\application data\github\portablegit_xxxx..."

But it's unclear where to get the "new one" from. Where can I download it and which version should I download?

I'd really appreciate some help with this issue. I'm on Windows 8.1. Please let me know if you need more information from me. This error is entirely preventing me from syncing my repository, so it's a real showstopper.

@dscho
Member
dscho commented Jun 14, 2015

dscho wrote:

Okay, so the resolution seems to be (from what little information is provided) solved by using rebase.exe as described here.

The link is broken, though, so this isn't a very helpful solution.

There is also a Dr Dobb's article about rebase.exe that you might find helpful. The idea being to call cmd.exe (i.e. not any MSys program such as bash.exe), switch working directory to the top-level directory of Git for Windows (which is not quite the same as Git_Hub_ for Windows, BTW 😀) and then execute something like

mingw\bin\rebase.exe -b 0x60000000 bin\*.dll

You might also find that using the upcoming Git for WIndows 2.x may address your woes.

@dscho
Member
dscho commented Aug 22, 2015

Git for Windows 1.x was retired, in favor of Git for Windows 2.x. Therefore I close this ticket, asking you to open another one if the bug persists. Thank you.

@dscho dscho closed this Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment