-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: traceback: unexpected SPWRITE function msancall/asancall #65841
Comments
I just confirmed the same issue happens with -race, if the !race tag is removed from src/runtime/debug_test.go. So the solution is pretty simple, add !msan and !asan to this file. |
Change https://go.dev/cl/565735 mentions this issue: |
@mknyszek do you know if debugcall is intended to work with msan/asan enabled? |
There is a comment in debug_test.go that says: // We skip all of these tests under race mode because our test thread
// spends all of its time in the race runtime, which isn't a safe
// point. It says nothing about race being unsupported. Maybe due to the lack of tests (since this one is skipped) it stopped working at some point? Either way, both race, asan and msan make this test panic with the same SPWRITE error. I'm also curious about the actual race support for debug call. EDIT: Sometimes the test freeze with |
The debug call tests do some really weird things. I'm not really sure anyone who worked on that code thought about msan/asan when writing those tests, so I wouldn't be surprised if there are issues lurking there. |
Go version
1.21, 1.22, gotip
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
Crash when running runtime tests with -asan or -msan.
What did you expect to see?
Either src/runtime/debug_test.go tests to pass, or skip these with
&& linux && !race && !msan && !asan)
The text was updated successfully, but these errors were encountered: