runtime: cgoCheckUnknownPointer triggering incorrectly #54558
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
A flakey test in x/crypto seems to be surfacing an issue with
runtime.cgoCheckUnknownPointer
, e.g. https://build.golang.org/log/d95a3c5e412f55ba2574530a147983e1546cf6eb.The call to
_goboringcrypto_HMAC_Init
is triggering theruntime.cgoCheckUnknownPointer
check onunsafe.Pointer(base(h.key))
. This reproduces inconsistently, it seems like in the failure cases the span element size does not match the array size, but beyond that this is deeper in the runtime than I can particularly understand 🤷.Git bisect suggests https://go.dev/cl/422634 introduced this issue.
cc @rsc @randall77
The text was updated successfully, but these errors were encountered: