Skip to content
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

OC commands on Monterey macOS give "fatal error: runtime: bsdthread_register error" #3560

Open
uajdgiz opened this issue Apr 19, 2022 · 1 comment

Comments

@uajdgiz
Copy link

uajdgiz commented Apr 19, 2022

General information

  • Minishift version: minishift v1.34.3+4b58f89
  • OS: macOS Monterey 12.3.1
  • Hypervisor: KVM / Hyper-V / VirtualBox / hyperkit
  • Tried with VirtualBox

Steps to reproduce

The cluster starts, but the command line stuff does not work. It looks like I'm running into the golang on Monterey issue:
https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue

Programs built with Go 1.10 or before use a way of issuing system calls that is no longer supported by the kernel on macOS 12 Monterey. In Go 1.11 and later, system calls are issued via libSystem.dylib, which is supported by the OS.

I installed minishift through brew. The solution above says to recompile the binaries using a golang version past 1.11. Is it just the OC part that needs to be recompiled, or the whole thing? https://github.com/openshift/origin/releases/tag/v3.11.0

Expected

Getting the right compiled version though brew.

Actual

% oc status
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x37ead3b, 0x21)
/usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff8f8 sp=0x7ff7bfeff8d8 pc=0x102ae91
runtime.goenvs()
/usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff928 sp=0x7ff7bfeff8f8 pc=0x1028a13
runtime.schedinit()
/usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff990 sp=0x7ff7bfeff928 pc=0x102d786
runtime.rt0_go(0x7ff7bfeff9c0, 0x2, 0x7ff7bfeff9c0, 0x1000000, 0x2, 0x7ff7bfeffb28, 0x7ff7bfeffb2b, 0x0, 0x7ff7bfeffb32, 0x7ff7bfeffb5a, ...)
/usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff998 sp=0x7ff7bfeff990 pc=0x1056af4

@saikumar31
Copy link

Exact same issue, waiting for solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants