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: nil dereference on FreeBSD in runSafePointFn #19061
Seen on the builder: https://build.golang.org/log/ec4f681c914df48df85ebbfd344586f6a9ece205 .
This has appeared twice on the dashboard:
The crash is clearly because sched.safePointFn is nil. I've checked over the synchronization around this carefully and I don't see anything wrong (and while there's some complex stuff going on, the non-nil-ness of runSafePointFn is pretty simple). I also checked over the generated assembly to make sure the compiler wasn't messing up the ordering of the atomics.
However, in all three cases, we're also in the middle of a forkExec. And all three failures are on FreeBSD. Hence, I strongly suspect that this is actually a dup of the infamous #15658.