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)

Most upvoted comments

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:

  1. Upgrade docker-machine: brew install docker-machine
  2. Run brew install docker-machine again to see if it is linked. If not, continue
  3. Remove old link rm /usr/local/bin/docker-machine
  4. Link new version 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

  • clone the rancher-cli repo
  • git checkout v1.6
  • edit “Dockerfile.dapper”, I changed the golang version from 1.10.3 to 1.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.

として@LeVraiGGすでに述べていますが、答えはここにあります:https 😕/github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue 。プログラムには新しいバージョンが必要なため、問題のプログラムを更新する必要があります。

私の場合、エラーはプログラムdocker-machineで発生しました。私がしなければならなかったのは、docker-machineをアップグレードし、新しいバージョンをリンクすることでした。

  1. docker-machineをアップグレードします。 brew install docker-machine
  2. brew install docker-machineもう一度実行 して、リンクされているかどうかを確認します。そうでない場合は、続行します
  3. 古いリンクを削除するrm /usr/local/bin/docker-machine
  4. 新しいバージョンをリンクするbrew link docker-machine

だから私は他の失敗したプログラムで、プロセスは似ているかもしれないと思います

very very coooollllllll thank you so much!!! Problem solved. Thank you so much. from japan