Looks like with efence=1 stacks are allocated using sysAlloc. That
does not look like a Go pointer to the cgocheck code. The effect is
that when writing a Go pointer to the stack, it looks like writing a
Go pointer to non-Go memory, which cgocheck crashes on.
I don't see a simple fix, other than effectively disabling cgocheck
when using efence. You could open an issue, I guess, but I agree that
it doesn't seem like a big concern.
Another fix is just having the runtime throw early with an error message if those options are used together.
The text was updated successfully, but these errors were encountered: