-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: bsdthread_register error on macOS 12 #49425
Comments
cc @cherrymui |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a reminder of our no +1 policy |
@DeanWronowski Thanks for the report. What binaries are failing? (The |
I'm seeing the same thing with Kubernetes. I was on version 1.18.0 of |
@cherrymui - Sorry, my apologies. The However, when running the following commands the error is presented When running the command Hope that helps |
@koryhutchison what version of Go that As far as I can tell, the "bsdthread_register error" message last appears in Go 1.10 and is removed since Go 1.11. |
@DeanWronowski thanks, and no worries. For newer versions of Go I'd think |
Just upgraded my iMac machine (separate machine to the original one) to Monterey and ran the command They are both Intel Core i7 These are the architectures for both machines:
The only noticeable differences is that I have Avast Business Antivirus installed on the Macbook Pro machine. However, I tried disabling it and still didn't make any difference. Must be some sort of memory protection on threads happening maybe? @cherrymui - The original source code for docker-machine (https://github.com/docker/machine) is archived and recommends you to use Docker Desktop for Mac, which I have installed. However, not sure they have released the source code for it. I could try recompiling the docker-machine and see what happens? Also noticed a discussion happening over at - rancher/rancher#35346 about the same issue. I have included the link in the original post as well |
I have the same problem using terraform on version 0.11.7 and with kubectl on 1.10.13 |
Docker released a new update for Docker Desktop - https://docs.docker.com/desktop/mac/release-notes/#docker-desktop-420 - but hasn't made any difference. |
@cherrymui I went ahead and upgraded my
Also I verified it in the Kubernetes CHANGELOG. |
Sorry, I'm not familiar with docker and what can or cannot be built from source. Just as an experiment, you could try building docker-machine from the archived source with a new version of Go and see if the issue occurs. It still looks like it fails with a binary built with an early (or unknown) version of Go. Does anyone see the issue with a newly built binary, preferably built from source? Thanks. |
@koryhutchison how do you run |
No so Thank you for your quick responses! |
That looks like kubectl probably spawns a subprocess and that subprocess fails. Would it be possible to find out what that subprocess is? Yeah, kubectl should work without installing Go. If you don't mind, you could install Go from https://golang.org/dl/ . Or if your kubectl binary is downloaded from the internet, could you provide the URL for that binary? Thanks. |
I just made another discovery. It looks like the problem is with aws-iam-authenticator. At least for me. Because I'm getting this when I run
And I'm also seeing this issue there: kubernetes-sigs/aws-iam-authenticator#409 |
Update: turns out that the problem is solved if |
@koryhutchison Yeah, I think you're right. The newly installed aws-iam-authenticator is probably built with a new version of Go. Thanks! |
With regards to The link to the builds are here https://gitlab-docker-machine-downloads.s3.amazonaws.com/main/docker-machine-Darwin-x86_64 |
It appears that this issue only occurs with binaries built with old unsupported versions of Go. Closing. See https://golang.org/wiki/MacOS12BSDThreadRegisterIssue If anyone has a reproduce with a program built with Go 1.16 or later, feel free to reopen. Thanks. |
Hello, I add this message to say that the same error occured on my side when trying to use the "gitlab-runner" CLI on my macOS Monterey 12.0.1. Thank you all |
If anyone still have this issue, I installed the last official version of the deprecated project, they had a last release in Sep 02, 2019, with the Gitlab fork some machines with older hosts were not working. curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \
chmod +x /usr/local/bin/docker-machine |
Hi all, I am also facing the same issue I have upgraded to macos monteray and I am just running simple git command so getting this below error
Can someone please help? |
@sameer-dighe See |
@DeanWronowski Could you provide a bit more details how you installed custom
but during checking |
@justme-sports git by itself is not a Go program. You probably have git commit hook installed, for example, gofmt, or some checker. You'll need to find out what that is (such as by looking at .git/hooks) and rebuild that program with a newer version of Go. |
@cherrymui Thanks so much for the information, really grateful. I do see gofmt in my /usr/local/bin/ folder. Appreciate all your help so much! |
@justme-sports you can copy GOROOT/bin/gofmt to /usr/local/bin/, where GOROOT is the top-level directory of your Go 1.17.6 installation. |
@cherrymui Still facing the same issue!! is there a way we can screen share to look at this ? |
I can confirm having this issue after upgrade to $ kubesec --version
atal error: runtime: bsdthread_register error
runtime stack:
runtime.throw(0x156bf2a, 0x21)
/home/shyiko/Development/golang/go1.9.1.linux-amd64/src/runtime/panic.go:605 +0x95 fp=0x7ff7bfeff060 sp=0x7ff7bfeff040 pc=0x1029ad5
runtime.goenvs()
/home/shyiko/Development/golang/go1.9.1.linux-amd64/src/runtime/os_darwin.go:108 +0x83 fp=0x7ff7bfeff090 sp=0x7ff7bfeff060 pc=0x1027373
runtime.schedinit()
/home/shyiko/Development/golang/go1.9.1.linux-amd64/src/runtime/proc.go:482 +0xa1 fp=0x7ff7bfeff0d0 sp=0x7ff7bfeff090 pc=0x102c481
runtime.rt0_go(0x7ff7bfeff108, 0x2, 0x7ff7bfeff108, 0x0, 0x1000000, 0x2, 0x7ff7bfeff378, 0x7ff7bfeff380, 0x0, 0x7ff7bfeff38a, ...)
/home/shyiko/Development/golang/go1.9.1.linux-amd64/src/runtime/asm_amd64.s:175 +0x1eb fp=0x7ff7bfeff0d8 sp=0x7ff7bfeff0d0 pc=0x1053d4b |
Just updated with Software Updates to |
I had to get the system reformat unfortunately due to this issue !! @serhiiromaniuk and @azec-pdx |
@justme-sports it's totally not a fix, reformatting or deleting some stuff |
So, as @zchee mentioned before, https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue |
@justme-sports Did you resolve the issue with your git? or you reformat your system. I have the same issue and I removed the GO but the reference is still there and folder does not exist. |
Unfortunately as much as I hate the reformat route, I had to go that route - when i faced this issue there was not much guidance on what could have been done to solve it !! |
I've started getting the same error with git
Following the tips above about 1) this being caused by an old version of some go program and 2) git isn't a go program itself therefore there must be some hook in place, |
One of our team had this problem recently, turns out the version of kubectl we were downloading was not the one being executed (despite being first in PATH) but rather an older version of kubectl which was part of Docker CE, installation of the latest Docker resolved the issue. Though still leaves the mystery as to why the downloaded version was ignored despite being first in the PATH. |
in my case I had this line for kops completion in my zshrc file, which caused the problem: |
Everything has been working perfectly for a while until I decided to upgrade Mac OS to Monterey.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. I have tried updating go to the latest version, as well as updating to the latest of xcode and command tools. Also ran brew upgrade to make sure everything is updated. Also tried diffrent shells to see if that makes any difference.
I am also running the latest version of docker.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When running the following command to connect to a server running docker it produces the error. It does not matter if the server is hosted on AWS EC2 or Digital Ocean droplets.
It seems this issue is not related just to Docker, as I am also getting this error when running a command in the terminal inside of VS.
What did you expect to see?
Usually nothing displays which indicates its connected to the server.
What did you see instead?
I have seen reports starting to appear with similar issues as well
I noticed this error popped up a few years ago, I wonder if its just a case of waiting for everyone to recompile their code again, although surprised this has not been done yet?
The text was updated successfully, but these errors were encountered: