Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: linux/mips fails to make.bash with "internal compiler error: panic: runtime error: index out of range [0] with length 0" #70248

Closed
dmitshur opened this issue Nov 7, 2024 · 3 comments
Assignees
Labels
arch-mips compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done. OS-Linux
Milestone

Comments

@dmitshur
Copy link
Contributor

dmitshur commented Nov 7, 2024

From https://build.golang.org/log/5e58860b238976b022020c1cb9b3537a20adc863:

Building Go cmd/dist using /tmp/gobuilder-mips64/go1.4/go. (go1.22.6 linux/mips64)
Building Go toolchain1 using /tmp/gobuilder-mips64/go1.4/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
# internal/unsafeheader
<unknown line number>: internal compiler error: panic: runtime error: index out of range [0] with length 0

[...]

This isn't happening on other ports, but does happen on GOOS=linux GOARCH=mips. Also note that without a LUCI builder (issue #67303), watchflakes doesn't catch and report persistent failures such as this one.

https://build.golang.org/log/e098e9f4dd5cedc9afd00c53a1ead71b3ab66125 was the last passing commit, so this seems to be related to CL 594597 for #54766.

CC @golang/mips.

@dmitshur dmitshur added OS-Linux NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. arch-mips labels Nov 7, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Nov 7, 2024
@prattmic
Copy link
Member

prattmic commented Nov 7, 2024

mipsle is OK, so this is probably a big endian problem. I thought I handled this with ppc64, but perhaps this is 32-bit big endian specific.

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/638375 mentions this issue: cmd/compile: load map length with the right type

@github-project-automation github-project-automation bot moved this from Todo to Done in Go Compiler / Runtime Dec 22, 2024
@dmitshur dmitshur added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-mips compiler/runtime Issues related to the Go compiler and/or runtime. NeedsFix The path to resolution is known, but the work has not been done. OS-Linux
Projects
Development

No branches or pull requests

5 participants