/ go Public
cmd/compile: -race does not obey go:nocheckptr #42880
Issues related to the Go compiler and/or runtime.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
yes (even with
What operating system and processor architecture are you using (
What did you do?
I ran a test to test racy behaviours - This function had a checkptr error:
The test is this: https://github.com/gorgonia/tensor/blob/9166554e0f40794485c199a8ecd4d692d24dbe73/consopt_test.go#L19-L33
Most notably, the function had a
//go:nocheckptrdirective attached to it. It's been there for the purpose of CUDA - since CUDA memory is not accessible by the Go runtime (technically it can, but it has to be run on the same thread as the CUDA runtime), I omitted the
checkptrtests because they are likely to fail.
In the past I had manually used
-d=checkptr. That seems to obey the
What I did:
What did you expect to see?
No checkptr errors.
What did you see instead?
The text was updated successfully, but these errors were encountered: