dingjinsheng / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
0 stars 0 forks source link

git-gui died of signal 11 #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Git version 1.8.0.2
2. Run "git gui" from the shell

What is the expected output? What do you see instead?

I'd expect the "git gui" UI to show up. Instead I get:

$ GIT_TRACE=1 git gui
trace: exec: 'git-gui'
trace: run_command: 'git-gui'
error: git-gui died of signal 11

What version of the product are you using? On what operating system?

This is on Mac OS X 10.7, standard terminal client:

$ which git
/usr/local/git/bin/git
$ git --version
git version 1.8.0.2

Please provide any additional information below.

At first I suspected a conflict with "Apple Git" as installed by XCode, but the 
issue persists even after renaming all "Apple Git" related directories. Also, I 
get the same error when running git-gui directly:

$ /usr/local/git/libexec/git-core/git-gui
Segmentation fault: 11

When I run Wish directly, I get

$ "/usr/local/git/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish" 
/usr/local/git/libexec/git-core/git-gui
Illegal instruction: 4

The funny thing is "gitk" works just fine. This seems to be because "gitk" uses 
the following header:

#!/bin/sh
# Tcl ignores the next line -*- tcl -*- \
exec wish "$0" -- "$@"

And "wish" here resolves to

$ which wish
/usr/bin/wish

in my system, i.e. not to "/usr/local/git/share/git-gui/lib/Git 
Gui.app/Contents/MacOS/Wish".

Original issue reported on code.google.com by sschuberth on 18 Dec 2012 at 10:26

GoogleCodeExporter commented 8 years ago
I was meaning to say

$ "/usr/local/git/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish" 
/usr/local/git/share/git-gui/lib/git-gui.tcl 
Illegal instruction: 4

above.

Original comment by sschuberth on 18 Dec 2012 at 10:31

GoogleCodeExporter commented 8 years ago
I have the same issue. ..and it still persists with git v 1.8.1 which I just 
installed a few mins ago.

Original comment by momobadilak on 6 Jan 2013 at 9:00

GoogleCodeExporter commented 8 years ago
Same for me: same issue and persists with git v1.8.1

Original comment by muecke1...@gmail.com on 12 Jan 2013 at 3:07

GoogleCodeExporter commented 8 years ago
Ok, found a workaround for me (for v1.8.1):

1) renamed the tcltk script
# mv /usr/local/git//share/git-gui/lib/git-gui.tcl 
/usr/local/git//share/git-gui/lib/git-gui 

2) and changed the wrapper script:
# diff /usr/local/git/libexec/git-core/git-gui 
/usr/local/git/libexec/git-core/git-gui.orig 
7c7
<       exec '/usr/local/git//share/git-gui/lib/git-gui' "$@"
---
>       exec '/usr/local/git/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish' 
"$0" "$@"

Greetings
Ralf

Original comment by muecke1...@gmail.com on 13 Jan 2013 at 1:47

GoogleCodeExporter commented 8 years ago
Ralf's work-around works for me, too. However, I believe it can be further 
simplified by just doing:

$ mv /usr/local/git/share/git-gui/lib/git-gui.tcl 
/usr/local/git/libexec/git-core/git-gui

This is because the "git-gui" wrapper script does nothing but handling the 
"--version" argument, but that is already handled by "git-gui.tcl". Also, I 
compared this to how git is installed on Ubuntu 12.04, and there is no 
"git-gui" file in "/usr/share/git-gui/lib/" (just a "git-gui.ico"), and the 
real "git-gui" script is in "/usr/lib/git-core/git-gui".

Original comment by sschuberth on 14 Jan 2013 at 10:12

GoogleCodeExporter commented 8 years ago
Also, the way the current wrapper script is written really does not make any 
sense at all as it just uses "wish" to recursively call itself infinitely, 
which probably is the root cause of the signal 11 error.

Original comment by sschuberth on 14 Jan 2013 at 10:31

GoogleCodeExporter commented 8 years ago
Just to confirm that @sschuberth's workaround worked for me. Thanks

Original comment by marc-an...@marc-andre.ca on 11 Feb 2013 at 2:05

GoogleCodeExporter commented 8 years ago
I'm running into this issue as well, but I've learned by downgrading repeatedly 
that this issue has been around since releases dating back to 2011. The latest 
stable version for me was 1.7.6.1.

Other git commands such as the osxkeychain can die too with signal 11 and that 
command was introduced in 1.7.10, so I'd say the problem could have been 
introduced in that release.

Can we please get a developer on this?
Having to downgrade back to 1.7.6.1 or having to overwrite parts of my git 
install myself seems 'icky'...

Original comment by magentix on 26 Jun 2013 at 9:05

GoogleCodeExporter commented 8 years ago
I can confirm that version 1.7.9.4 works just fine.

Original comment by magentix on 26 Jun 2013 at 9:29

GoogleCodeExporter commented 8 years ago
Yep, I can confirm magnetix. OS X 10.7.5 and Git v 1.7.9.4 works perfectly.
http://code.google.com/p/git-osx-installer/downloads/detail?name=git-1.7.9.4-int
el-universal-snow-leopard.dmg&can=2&q=

Original comment by lawrence...@gmail.com on 19 Jul 2013 at 1:50

GoogleCodeExporter commented 8 years ago
I installed latest and could not launch git gui, also getting error 11.

Uninstalling 1.8.3.2, and installing 1.7.9.4 fixed that issue.

I am running OS X 10.7.5.  Git Gui.app, also runs, which is nice.

Original comment by bell...@gmail.com on 25 Aug 2013 at 11:13

GoogleCodeExporter commented 8 years ago
Same issue here: OS X 10.6.8, git version 1.8.3, error 11. 

Ralf's workaround worked for me

Original comment by dparou...@gmail.com on 7 Oct 2013 at 4:54

GoogleCodeExporter commented 8 years ago
I came here because my 'git citool' mysteriously broke. 

It seems that XCode installs its own Git: 
http://stackoverflow.com/questions/10904774/install-git-separately-from-xcode

I have recently installed XCode *and* its command-line utilities because I 
wanted to compile some other OSS project.

I fixed this by following the directions at the link above and changing my 
$PATH to prefer the Git that *I* installed.

Also note, I'd recommend against sschuberth's suggestion.  'git citool' relies 
on the file location /usr/local/git/share/git-gui/lib/git-gui.tcl. 

Original comment by cody.cas...@gmail.com on 10 Oct 2013 at 7:53

GoogleCodeExporter commented 8 years ago
Ralf's work-around works for git version 1.8.4.2 on Mac OS X 10.7.5 (Lion).  
Note running 'Git Gui.app' from either Finder or Terminal seg faults:  
"KERN_PROTECTION_FAILURE at 0x00007fff5fc01028".

Original comment by gh.is...@gmail.com on 12 Dec 2013 at 6:54

GoogleCodeExporter commented 8 years ago
sschuberth's workaround confirmed working on 1.8.4.2 on os10.6
remember sudo

Original comment by wangtong...@gmail.com on 6 Mar 2014 at 3:28

GoogleCodeExporter commented 8 years ago
Uninstalling 1.8.3.2 and Installing 1.7.9.4 Worked for me!

Original comment by QuentinA...@gmail.com on 22 Jun 2014 at 4:40

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 29 Jun 2014 at 8:36