runtime/race: llvm-unstable changes break Go tests with -race: panic: release of handle with refcount 0 #70283
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version devel go1.24-583d750fa1 Mon Nov 11 00:08:45 2024 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I was working on a Google-internal software update and ran into an issue: tests started failing when running with
-race
enabled with Go toolchains built after Google-internal CL/693898707 (an LLVM import).Further investigation revealed that tests start failing once the race syso contains LLVM upstream change llvm/llvm-project@4d374479bea4 (“[nfc][tsan] Replace some macros with templates (#114931)”). Building the race syso at commit 4d374479bea4^ (one prior) results in a working test.
I reproduced this using:
What did you see happen?
The test failed with the following error:
What did you expect to see?
I expected the test to keep succeeding.
I am not sure if the LLVM upstream change is to blame or if Go is doing something wrong (or a combination of both)…?
The text was updated successfully, but these errors were encountered: