cmd/link: buildmode=shared -linkshared - makeslice: cap out of range #58405
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
What version of Go are you using (
go version
)?1.20
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?
What did you expect to see?
Expect the shared library to be generated
What did you see instead?
/tmp/go-build2293747986/b246/libgithub.com-aristanetworks-goarista-gnmi.so
panic: runtime error: makeslice: cap out of range
goroutine 1 [running]:
cmd/link/internal/loader.(*Loader).LoadSyms(0xc000004300, 0x68a54a?)
/usr/local/go/src/cmd/link/internal/loader/loader.go:2159 +0x11c
cmd/link/internal/ld.(*Link).loadlib(0xc0000fa000)
/usr/local/go/src/cmd/link/internal/ld/lib.go:595 +0x48f
cmd/link/internal/ld.Main(_, {0x20, 0x20, 0x1, 0x7, 0x10, 0x0, {0x0, 0x0}, {0x6946ab, ...}, ...})
/usr/local/go/src/cmd/link/internal/ld/main.go:268 +0xecb
main.main()
/usr/local/go/src/cmd/link/main.go:72 +0xedb
The text was updated successfully, but these errors were encountered: