Repository navigation
Description
Go version
go version go1.24.4 linux/386
Output of go env in your module/workspace:
[carolus@ryvaio ~]$ go env (git)-[main]
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GO386='softfloat'
GOARCH='386'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/carolus/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/carolus/.config/go/env'
GOEXE=''
GOEXPERIMENT='noswissmap'
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m32 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1742220562=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='386'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/home/carolus/.local/share/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/carolus/.local/share/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go-1.24'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/carolus/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go-1.24/pkg/tool/linux_386'
GOVCS=''
GOVERSION='go1.24.4'
GOWORK=''
PKG_CONFIG='pkg-config'What did you do?
I attempted to build/run a small Go program on a 32-bit Linux machine.
Hardware: Sony VAIO Type P / Intel Atom Z530-era 32-bit system
OS: Linux i386/386 userspace
Go package source: distro package installed at /usr/lib/go-1.24
The failure happens while the toolchain is compiling Go's own internal runtime map package, not in my application code.
I tried both the default Go 1.24 map implementation and disabling Swiss maps:
go clean -cache
go run .and:
go clean -cache
GOEXPERIMENT=noswissmap go run .Both fail.
What did you see happen?
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
internal/runtime/maps
/usr/lib/go-1.24/src/internal/runtime/maps/runtime_fast64_swiss.go:162:2: internal compiler error: '(*Map).putSlotSmallFast64': panic during opt while compiling (*Map).putSlotSmallFast64:
runtime error: invalid memory address or nil pointer dereference
goroutine 18 [running]:
cmd/compile/internal/ssa.Compile.func1()
cmd/compile/internal/ssa/compile.go:49 +0x91
panic({0x8a8a720, 0x917c950})
runtime/panic.go:792 +0x103
cmd/compile/internal/ssa.rewriteValuegeneric_OpXor64(0xb980c60)
cmd/compile/internal/ssa/rewritegeneric.go:34264 +0xa68
cmd/compile/internal/ssa.rewriteValuegeneric(0xb980c60)
cmd/compile/internal/ssa/rewritegeneric.go:452 +0x2b79
cmd/compile/internal/ssa.applyRewrite(0xbeac008, 0x8b2845c, 0x8b28468, 0x1)
cmd/compile/internal/ssa/rewrite.go:144 +0x15b3
cmd/compile/internal/ssa.opt(0xbeac008)
cmd/compile/internal/ssa/opt.go:9 +0x3a
cmd/compile/internal/ssa.Compile(0xbeac008)
cmd/compile/internal/ssa/compile.go:97 +0xbc9
cmd/compile/internal/ssagen.buildssa(0xb6b72c8, 0x0, 0x0)
cmd/compile/internal/ssagen/ssa.go:600 +0x2e97
cmd/compile/internal/ssagen.Compile(0xb6b72c8, 0x0, 0x0)
cmd/compile/internal/ssagen/pgen.go:304 +0xa1
cmd/compile/internal/gc.compileFunctions.func5.1(0x0)
cmd/compile/internal/gc/compile.go:189 +0x41
cmd/compile/internal/gc.compileFunctions.func3.1()
cmd/compile/internal/gc/compile.go:171 +0x32
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 15
cmd/compile/internal/gc/compile.go:170 +0x216
What did you expect to see?
The program should compile and run successfully, or if my program has an error, the compiler should report a normal diagnostic.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
ryan-c-dev commentedon May 13, 2026
Additional repro information:
I confirmed that this reproduces with a minimal hello-world program, not just my original project.
gabyhelp commentedon May 13, 2026
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Jorropo commentedon May 13, 2026
Does it repro with a supported version of Go ?
randall77 commentedon May 13, 2026
That line is
return true. Not sure how that would panic.Try blowing away your distribution and redownloading.
Also try
GOEXPERIMENT=noswissmap.ryan-c-dev commentedon May 13, 2026
Silly mistake, forgot I built from source for this 32bit device, realized 1.24 is no longer a major supported version (not from previous 2 major releases). Just ran, everything fine. Hope this didn't take too many people's time. Was working via ssh and using 1.26 on main device, didn't notice i was at 1.24 on other device!