rancher: [cli] bsdthread_register error on MacOS Monterey
Rancher CLI v0.6.14 doesn’t work on MacOS Monterey 12.0.1 when trying to launch it without any params:
`fatal error: runtime: bsdthread_register error
runtime stack: runtime.throw(0x71c877, 0x21) /usr/local/go/src/runtime/panic.go:566 +0x95 fp=0x7ff7bfeff5f0 sp=0x7ff7bfeff5d0 runtime.goenvs() /usr/local/go/src/runtime/os_darwin.go:88 +0xa0 fp=0x7ff7bfeff620 sp=0x7ff7bfeff5f0 runtime.schedinit() /usr/local/go/src/runtime/proc.go:450 +0x9c fp=0x7ff7bfeff660 sp=0x7ff7bfeff620 runtime.rt0_go(0x7ff7bfeff690, 0x1, 0x7ff7bfeff690, 0x1000, 0x1, 0x7ff7bfeff840, 0x0, 0x7ff7bfeff85c, 0x7ff7bfeff873, 0x7ff7bfeff8ab, …) /usr/local/go/src/runtime/asm_amd64.s:145 +0x14f fp=0x7ff7bfeff668 sp=0x7ff7bfeff660`
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (1 by maintainers)
As @LeVraiGG already states, the answer is here: https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue. The programme needs a newer go version, so the programme in question must be updated.
For me the error occured with the programme docker-machine. What I had to do was upgrade docker-machine and link the new version:
brew install docker-machine
brew install docker-machine
again to see if it is linked. If not, continuerm /usr/local/bin/docker-machine
brew link docker-machine
So I guess with the other failing programmes, the process could be similar
same issue on terraform and kubectl
Hi, I got it to work
git checkout v1.6
1.10.3
to1.11.3
(other versions may work?)CROSS=1 make build
./build/bin/rancher_darwin-amd64 env ls
Had the same issue for kubectl. Relinking with brew by
brew link kubernetes-cli
and then re-installing worked.very very coooollllllll thank you so much!!! Problem solved. Thank you so much. from japan
found the answer here : https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue