Go version
go version go1.25-devel_d184f8dc02 Sat Jun 7 00:48:37 2025 -0700 darwin/arm64
Output of go env
in your module/workspace:
AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/qmuntaldiaz/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/qmuntaldiaz/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/6_/bk27w0c510ld88800_hfj6j00000gn/T/go-build2331442132=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/Users/qmuntaldiaz/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/qmuntaldiaz/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/qmuntaldiaz/code/golang-go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='on'
GOTELEMETRYDIR='/Users/qmuntaldiaz/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/Users/qmuntaldiaz/code/golang-go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.25-devel_d184f8dc02 Sat Jun 7 00:48:37 2025 -0700'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
go test -run TestStmtLines cmd/compile/internal/ssa
What did you see happen?
--- FAIL: TestStmtLines (2.36s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered, repanicked]
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104f6b2c0]
goroutine 36 [running]:
testing.tRunner.func1.2({0x10516d800, 0x10567cd90})
/Users/qmuntaldiaz/code/go/go/src/testing/testing.go:1872 +0x190
testing.tRunner.func1()
/Users/qmuntaldiaz/code/go/go/src/testing/testing.go:1875 +0x31c
panic({0x10516d800?, 0x10567cd90?})
/Users/qmuntaldiaz/code/go/go/src/runtime/panic.go:783 +0x120
cmd/compile/internal/ssa_test.TestStmtLines(0x140001828c0)
/Users/qmuntaldiaz/code/go/go/src/cmd/compile/internal/ssa/stmtlines_test.go:122 +0x7f0
testing.tRunner(0x140001828c0, 0x1051f86b0)
/Users/qmuntaldiaz/code/go/go/src/testing/testing.go:1934 +0xc8
created by testing.(*T).Run in goroutine 1
/Users/qmuntaldiaz/code/go/go/src/testing/testing.go:1997 +0x364
FAIL cmd/compile/internal/ssa 2.667s
FAIL
What did you expect to see?
ok cmd/compile/internal/ssa 6.109s
Comment From: gopherbot
Change https://go.dev/cl/685835 mentions this issue: cmd/compile/internal/ssa: skip EndSequence entries in TestStmtLines