Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: crash at startup on darwin_386 with -linkmode=external #25083
On OS X:
A hello world program, built for 386 with CGO_ENABLED=0 and -linkmode=external, crashes at startup with an error in bsdthread_register:
but works fine with CGO_ENABLED=1:
Note the loadinternal log, which comes from the linker but does not cause a build failure. I don't know if that's related.
This reproduces with every version of Go I've tried. @randall77 says it works fine on OSX 10.11.
cc @aclements since this is pretty old code with no better owner.
referenced this issue
Apr 25, 2018
@mrajashree The work for #17490 was a complete overhaul of how the Go runtime interacts with the Mac OS kernel. There was no single CL that fixed any specific problem. If you are encountering the