runtime/race: panic+recover in init() adds extra info to data race stack traces in main() #46095
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.
RaceDetector
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran the following program with
go run -race main.go
What did you expect to see?
I expect a detected data race in
main()
to not contain stack trace information frominit()
.What did you see instead?
The text was updated successfully, but these errors were encountered: