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

fatal error: runtime: bsdthread_register error #340

Closed
mathieux51 opened this issue Aug 13, 2022 · 5 comments
Closed

fatal error: runtime: bsdthread_register error #340

mathieux51 opened this issue Aug 13, 2022 · 5 comments

Comments

@mathieux51
Copy link

What version of GoTTY are you using (gotty --version)?

I installed the latest version with brew and this is what I get when I run the above command:

gotty --version
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x38fc7b, 0x21)
        /usr/local/go/src/runtime/panic.go:566 +0x95 fp=0x7ff7bfeff070 sp=0x7ff7bfeff050
runtime.goenvs()
        /usr/local/go/src/runtime/os_darwin.go:88 +0xa0 fp=0x7ff7bfeff0a0 sp=0x7ff7bfeff070
runtime.schedinit()
        /usr/local/go/src/runtime/proc.go:450 +0x9c fp=0x7ff7bfeff0e0 sp=0x7ff7bfeff0a0
runtime.rt0_go(0x7ff7bfeff118, 0x2, 0x7ff7bfeff118, 0x0, 0x1000, 0x2, 0x7ff7bfeff3d0, 0x7ff7bfeff3d6, 0x0, 0x7ff7bfeff3e0, ...)
        /usr/local/go/src/runtime/asm_amd64.s:145 +0x14f fp=0x7ff7bfeff0e8 sp=0x7ff7bfeff0e0

What operating system and browser are you using?

I'm using macOS Monterey 12.5 and Firefox is my default browser.

What did you do?

I installed gotty with brew install yudai/gotty/gotty and try to run gotty top

What did you expect to see?

I expected to see top command in my browser.

What did you see instead?

For everything I run I see:

fatal error: runtime: bsdthread_register error
runtime stack:
runtime.throw(0x38fc7b, 0x21)
        /usr/local/go/src/runtime/panic.go:566 +0x95 fp=0x7ff7bfeff070 sp=0x7ff7bfeff050
runtime.goenvs()
        /usr/local/go/src/runtime/os_darwin.go:88 +0xa0 fp=0x7ff7bfeff0a0 sp=0x7ff7bfeff070
runtime.schedinit()
        /usr/local/go/src/runtime/proc.go:450 +0x9c fp=0x7ff7bfeff0e0 sp=0x7ff7bfeff0a0
runtime.rt0_go(0x7ff7bfeff118, 0x2, 0x7ff7bfeff118, 0x0, 0x1000, 0x2, 0x7ff7bfeff3d0, 0x7ff7bfeff3d6, 0x0, 0x7ff7bfeff3e0, ...)
        /usr/local/go/src/runtime/asm_amd64.s:145 +0x14f fp=0x7ff7bfeff0e8 sp=0x7ff7bfeff0e0
@Andy-ch
Copy link

Andy-ch commented Oct 2, 2022

I have this issue as well

@sunboshan
Copy link

Any update for this issue? On Monterey, brew installed version is not working with above error.

@ganglio
Copy link

ganglio commented Nov 2, 2022

Same here. Monterey 12.6.

@tigattack
Copy link

tigattack commented Nov 4, 2022

The latest release is built on Go 1.9. It needs to be built on =>1.11 to fix this: https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue

This works https://github.com/sorenisanerd/gotty

@mathieux51
Copy link
Author

This works https://github.com/sorenisanerd/gotty

Indeed it does 👍

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

5 participants