runtime: unsafe.Slice panic is a throw in race/MSAN/ASAN modes #71397
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
runtime.TestPanicOnUnsafeSlice
tests panics onunsafe.Slice
. It boils down to:But if
testprog
is built with any of-race
,-msan
, or-asan
, this panic becomes an unrecoverable throw:I suspect this is related to inlining, as
panicCheck1
throws ifpc
is in the runtime, andpc
ultimately comes fromsys.GetCallerPC
.cc @golang/runtime @golang/compiler
The text was updated successfully, but these errors were encountered: