Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: panic: runtime error: slice bounds out of range [::1751306] with length 1048576 #41621
What version of Go are you using (
$ go env
What did you see instead?
panic: runtime error: slice bounds out of range [::1751306] with length 1048576
goroutine 1 [running]:
Would you be able to post instructions and/or source code so that we can reproduce this?
The panic is happening while the linker is reading relocations out of an object file -- the offset it reads from the file is insane, which triggers the bounds range error. It would probably be a good idea to try to rule out the possibility of a corrupted object file (e.g. go clean -cache and rebuild).