Skip to content

cmd/compile: ICE: runtime error: invalid memory address or nil pointer dereference #79284

Closed as duplicate

Description

@Rajalakshmi-Girish

Go version

go version go1.27-devel_409f784bea Thu May 7 14:46:33 2026 -0700 linux/amd64

Output of go env in your module/workspace:

[root@raji-x86-workspace1 kubernetes]# go env
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='0'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2264145325=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/root/master_go/open_kub/kubernetes/go.mod'
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.27-devel_409f784bea Thu May 7 14:46:33 2026 -0700'
GOWORK='/root/master_go/open_kub/kubernetes/go.work'
PKG_CONFIG='pkg-config'
[root@raji-x86-workspace1 kubernetes]#

What did you do?

  1. golang version from commit 409f784 onwards
  2. git clone https://github.com/kubernetes/kubernetes.git
  3. cd kubernetes/staging/src/k8s.io/apiserver/
  4. go build ./...

What did you see happen?

[root@raji-x86-workspace1 apiserver]# go build ./...
# k8s.io/apiserver/pkg/cel/library
../../../../vendor/github.com/google/cel-go/common/decls/decls.go:873:3: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference

goroutine 1 [running]:
runtime/debug.Stack()
	../../../../../go/src/runtime/debug/stack.go:26 +0x5e
cmd/compile/internal/base.FatalfAt({0xba049628?, 0x3234?}, {0xf45620, 0x9}, {0x3234ba049658, 0x1, 0x1})
	../../../../../go/src/cmd/compile/internal/base/print.go:232 +0x18b
cmd/compile/internal/base.Fatalf(...)
	../../../../../go/src/cmd/compile/internal/base/print.go:197
cmd/compile/internal/gc.handlePanic()
	../../../../../go/src/cmd/compile/internal/gc/main.go:57 +0x90
panic({0x1865660?, 0x194f9d0?})
	../../../../../go/src/runtime/panic.go:859 +0x125
cmd/internal/obj.(*Link).InitTextSym(...)
	../../../../../go/src/cmd/internal/obj/plist.go:186
cmd/compile/internal/ir.setupTextLSym(0x3234ba0498f0?, 0x49a001?)
	../../../../../go/src/cmd/compile/internal/ir/abi.go:77 +0x240
cmd/compile/internal/ir.InitLSym(0x3234bbe8c3c0, 0x1)
	../../../../../go/src/cmd/compile/internal/ir/abi.go:32 +0xeb
cmd/compile/internal/gc.prepareFunc(0x3234bbe8c3c0)
	../../../../../go/src/cmd/compile/internal/gc/compile.go:104 +0x25
cmd/compile/internal/gc.enqueueFunc(0x3234b9a0a500, 0x3234ba049bb0)
	../../../../../go/src/cmd/compile/internal/gc/compile.go:85 +0x33c
cmd/compile/internal/gc.Main(0x18cbbd8)
	../../../../../go/src/cmd/compile/internal/gc/main.go:333 +0x152b
main.main()
	../../../../../go/src/cmd/compile/main.go:57 +0xf9

[root@raji-x86-workspace1 apiserver]#

What did you expect to see?

It should compile without error.

Activity

  1. prattmic commented on May 8, 2026

    @prattmic
    Member

    Thanks for the quick report!

    cc @cherrymui, this looks like a regression in your closure CL.

  2. added this to the Go1.27 milestone on May 8, 2026
  3. added
    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
    on May 8, 2026
  4. changed the title [-]runtime error: invalid memory address or nil pointer dereference[/-] [+]cmd/compile: ICE: runtime error: invalid memory address or nil pointer dereference[/+] on May 8, 2026
  5. prattmic commented on May 8, 2026

    @prattmic
    Member

    It seems likely that this is a duplicate of #79274.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.release-blocker

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions