runtime: go test -race on FreeBSD with ASLR reports ok without running any test #65425
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
RaceDetector
Milestone
Go version
go version go1.21.6 freebsd/amd64
Output of
go env
in your module/workspace:What did you do?
Ensure ASLR is enabled:
Write a test that fails. For reasons I don't understand, this issue only reproduces when the test imports
plugin
.Run the test without
-race
and it fails, as expected:However, if you run the test with
-race
, it prints out a warning message and goes on to report the test as if it succeeded:Since the test always fails, it seems that
go test -race
doesn't actually run the test.What did you see happen?
go test -race
reports "ok" and exits with 0.What did you expect to see?
go test -race
should report failure and exit with 1.The text was updated successfully, but these errors were encountered: