-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
runtime: SIGILL: illegal instruction when running any Go apps (notably GIT) on High Sierra #40770
Comments
#34759 was fixed in 1.14.1. You'll need to get any of the software that you use that's built with go 1.14 to instead build with at least go1.14.1. I'm not sure how you would go about that. |
That code path is presumably on the machine that built the binary in question, not the machine it is running on. You're right, there's no obvious indication of what binary this is. It's some binary that imports The only thing I can think of is to run your git command with strace, and look for what files it opens. One of those files is the bad binary in question. |
Note that this is really a general homebrew problem - if some dependency of something you installed is bad, how do you tell homebrew that and ask it to rebuild with a different version of said dependency? |
Copy that. I'll see what I can produce and report back. Please understand: this is not the hill I'm gonna die on here; this came to my attention on an older iMac I honestly just use as a MONITOR 99% of the time. I'm reporting this here because in my attempt to research the matter, I ran into the 1.14 AVX issue. Since I'd taken no action that was related to Go, but Go was being flagged as the problem, I thought you guys might be interested, too. |
Alas, homebrew is not known for its "version selection" capabilities (nothing like node, as a for-instance). Unless the publisher intentionally creates a different distro of the application - as you guys did with [email protected] - what you have is what you get. There's ways to rebuild a package off an older version, but only if one has the cached version locally, or one knows where to find the older source code. Mainly, I'm assuming I'm not going to be the only one impacted by this, and most of the discussions surrounding the resolutions presuppose a great deal more knowledge surrounding matter than most - or indeed, I myself - possess. |
Sorry about all this. I'm going to close, as I don't think there's anything the Go project can do here. |
Fair enough. For those other people running into a similar problem: it appears the offending application in question is Hub, GitHub's (shockingly-obscure) own command-line extension to Git (which is, perhaps unsurprisingly under the circumstances, built in Go). Part of Hub's installation overrides the default git behavior, preprocessing any commands sent to git to see if they're hub-specific prior to releasing them to the vanilla git cli. It then aliases the hub behaviors OVER the git command, thereby necessitating it to process the offending go commands prior to ever getting to the git portions. I'm going to go open an issue with the guys at hub now I've worked out what I can actually report to anyone and to whom, but for anyone stuck similarly to the way I've been the last couple days, @randall77 - Thank you, Keith. I've been beating me head against a wall for hours on this one. You pointed me right towards where I needed to be looking, intentionally or not. :) Thanks for taking the time! <3 |
What version of Go are you using (
go version
)?I'm NOT. At least, not intentionally. I have reinistalled go some 10 times now, though, in an effort to figure out why, after a random Homebrew update I found myself unable to hit any of my repos. At present, I'm running (pinned, per 37478's instructions, though that was after undertaking a half dozen versions of 1.4)
Does this issue reproduce with the latest release?
No clue. I'm not able to get the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I
brew install
edmackup
, which, as per typical behavior, brew updated. This in turn has resulted in the following error when I run any git-related commands:What did you expect to see?
My git status
What did you see instead?
I find this particularly remarkable because there IS NO
/usr/local/Cellar/go/1.14/ DIRECTORY
on the box (though I don't doubt at one time there likely WAS before I uninstalled go in the [email protected] fix attempt). Further:I tried a
go clean -cache
as well.Finally, if I
brew uninstall git hub
thenbrew install git hub
it WILL restore git's functionality... for about 15 minutes or so.Final noteworthy piece here: I'm not a Go developer. I've NEVER used Go. I AM a professional software engineer, and I entirely grasp that other applications that I'm utilizing have been built IN Go, but I myself have done ZERO in the way of tinkering environmentally, nor do I have any background or experience in the language. I cite this only to point out that people completely outside the community are being impacted in new and exciting ways.
I found and read 37459 independently, and I've tried to effect any of the suggestions I've found from both it and the other issues that relate to it. I'm fairly confident this remains the same Darwin/amd64 on pre-AVX chipset error, but nothing else I've heard of seems to be seeing their git (or, I suspect more likely, their homebrew) impacted.
The text was updated successfully, but these errors were encountered: