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

Bug: Mage throws error "bsdthread_register error" on MacOS Monterey 12.3.1 [Solved] #422

Open
maxgardner opened this issue Apr 27, 2022 · 0 comments
Labels

Comments

@maxgardner
Copy link

maxgardner commented Apr 27, 2022

Bug Description
On MacOS Monterey 12.3.1, Mage throws the following error when you attempt to run it (mage -v):

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x11baf4d, 0x21)
	/usr/local/Cellar/go/1.10.1/libexec/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff458 sp=0x7ff7bfeff438 pc=0x1027ed1
runtime.goenvs()
	/usr/local/Cellar/go/1.10.1/libexec/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff488 sp=0x7ff7bfeff458 pc=0x1025a53
runtime.schedinit()
	/usr/local/Cellar/go/1.10.1/libexec/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff4f0 sp=0x7ff7bfeff488 pc=0x102a7c6
runtime.rt0_go(0x7ff7bfeff520, 0x2, 0x7ff7bfeff520, 0x1000000, 0x2, 0x7ff7bfeff730, 0x7ff7bfeff735, 0x0, 0x7ff7bfeff738, 0x7ff7bfeff774, ...)
	/usr/local/Cellar/go/1.10.1/libexec/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff4f8 sp=0x7ff7bfeff4f0 pc=0x104f774

What did you do?
I installed Mage v 1.13.0 using Homebrew (brew install mage) and ran the command in a directory with a Magefile.

What did you expect to happen?
I expected it to execute the build using the Magefile in the directory I'm in.

What actually happened?
It threw this error.

Environment

  • Mage Version: 1.13.0
  • OS: MacOS Monterey 12.3.1

Additional context
I believe this is related to this issue, even though it specifies that anything that targets Go 1.11 and up should be fine.

I was able to solve this by following the manual installation process and updating the go.mod file to target Go 1.18. Note: Attempting to build this manually while still targeting Go 1.12 throws an error: undefined: StackGuardMultiplierDefault.

I'm submitting this as an issue I guess to bring attention to it and also hopefully help anyone else who's running into this problem!

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

No branches or pull requests

1 participant