cmd/link: misc/cgo/test suite crashes on Windows when linked against UCRT with -linkmode=internal
#62887
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.
OS-Windows
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No. The cgo test suite (moved to package path
cmd/cgo/internal/test
) passes with Go 1.21 when built with-linkmode=internal
using the same C toolchain.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
go test -v
gdb
sessionThe cgo test suite passes with
-linkmode=internal
when the MSVCRT runtime variant of the same MinGW-W64 toolchain is used.The impact of this issue is minimal. External linking would be a viable workaround for those who need to match up C runtime versions for compatibility with third-party DLLs. And for those of us (like myself) who are building Go from source and are needing to get
go tool dist test
to pass, switching to a MinGW that links against MSVCRT when building the Go toolchain is a viable workaround as no pre-compiled native code is required in binary distributions of Go 1.20.The text was updated successfully, but these errors were encountered: