Running this test on a new LUCI builder configuration that sets the -race flag on FreeBSD 14.1 fails with:

# GOOS=freebsd GOARCH=amd64 go test -race -run=^TestTraceCgoCallback$ internal/trace
--- FAIL: TestTraceCgoCallback (1.04s)
--- FAIL: TestTraceCgoCallback/Default (1.02s)
    reader_test.go:100: unexpected error while reading the trace: bad file format: not a Go execution trace?
    trace_test.go:627: found bad trace; dumping to test log...
    trace_test.go:628: dumping trace: bad file format: not a Go execution trace?
FAIL
FAIL    internal/trace  50.965s

It's the only test that fails, so I'll add a temporary skip to let the builder be added without needing a known issue. Filing this issue to track the next steps of investigating and resolving this.

CC @golang/freebsd.

Comment From: gopherbot

Change https://go.dev/cl/646396 mentions this issue: internal/trace: skip TestTraceCgoCallback on freebsd-amd64-race builders

Comment From: gopherbot

Change https://go.dev/cl/646136 mentions this issue: main.star: add freebsd-amd64-race