cmd/compile: "internal compiler error: curfn mismatch" on darwin-amd64-race builder #43826
That seems like memory corruption. Either runtime bugs or faulty memory or something. That sort of failure shouldn't be random.
Another failure on the same machine, which also looks like a pointer is nil when it shouldn't be: https://build.golang.org/log/9a0af1fedad51a17898be428620c03c863e258a0
And another similar failure on the non-race version of the machine (not sure if the same physical hardware or not): https://build.golang.org/log/5e5d23f0d609ad291d7be138ef1ff147a6c613b1
That last one definitely looks like some sort of memory corruption. The error message is:
but that corresponding line of source is:
So the string that should be "UnsafeAddr" is actually "hodsTypeOf"? Notably, the same length, but wrong bytes. It looks like maybe the string data for "methods" and "TypeOf" are consecutive in memory, and the pointer for "UnsafeAddr" is off.