opencontrol / compliance-masonry

Security Documentation Builder
Other
350 stars 83 forks source link

runtime: bsdthread_register error #383

Open robocop-bob opened 2 years ago

robocop-bob commented 2 years ago

compliance-masonry get ( with opencontrol/freedonia-compliance example ) returns error:

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x10d96d1, 0x21)
    /usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff778 sp=0x7ff7bfeff758 pc=0x1026161
runtime.goenvs()
    /usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff7a8 sp=0x7ff7bfeff778 pc=0x1023ce3
runtime.schedinit()
    /usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff810 sp=0x7ff7bfeff7a8 pc=0x1028a56
runtime.rt0_go(0x7ff7bfeff840, 0x2, 0x7ff7bfeff840, 0x1000000, 0x2, 0x7ff7bfeff9f0, 0x7ff7bfeffa03, 0x0, 0x7ff7bfeffa07, 0x7ff7bfeffa29, ...)
    /usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff818 sp=0x7ff7bfeff810 pc=0x104d374

MacOs:

uname -a
Darwin mr.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64

Go:

go version
go version go1.17.6 darwin/amd64
ireardon commented 2 years ago

Looks like the solution should be to update the Go version compliance-masonry is built with: https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue

But the build already seems to be using 1.15: https://github.com/opencontrol/compliance-masonry/blob/master/.travis.yml#L12

ireardon commented 2 years ago

Looks like the build Go version was updated after the latest 1.1.6 release: https://github.com/opencontrol/compliance-masonry/releases

@shawndwells @rogeruiz are you open to cutting another release?