@mengzhuo Thank you for reporting this issue. The reason is that asanwrite/asanread function should be NOSPLIT. The fixed patch will be submitted soon. Thank you.
The asan runtime functions may run on stacks that cannot grow, and
they do not have large local variables, so it is safe to mark them
as NOSPLIT.
Add test case.
Fixesgolang#50391
Change-Id: Iadcbf1ae0c837d9b64da5be208c7f424e6ba11de
Reviewed-on: https://go-review.googlesource.com/c/go/+/374398
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Fannie Zhang <Fannie.Zhang@arm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
cd misc/cgo/testsanitizers/ && go test -asan -v
What did you expect to see?
PASSED
What did you see instead?
kindly cc @zhangfannie @cherrymui
The text was updated successfully, but these errors were encountered: