Repository navigation
Closed
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone 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.Issues related to the Go compiler and/or runtime.
Description
Go version
go version go1.27-devel_996b985008 Wed Apr 8 14:21:41 2026 -0700 darwin/arm64
Output of go env in your module/workspace:
AR='ar'
CC='cc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='c++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/mitsuoheijo/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/mitsuoheijo/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/bq/s3vkkxm17jq79lx5qy3856zh0000gn/T/go-build2761551716=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/Users/mitsuoheijo/repos/github.com/golang/go/src/go.mod'
GOMODCACHE='/Users/mitsuoheijo/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/mitsuoheijo/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/mitsuoheijo/repos/github.com/golang/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/mitsuoheijo/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/mitsuoheijo/repos/github.com/golang/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.27-devel_996b985008 Wed Apr 8 14:21:41 2026 -0700'
GOWORK=''
PKG_CONFIG='pkg-config'What did you do?
https://go.dev/play/p/aBf7_2IDaTe?v=gotip
package main
import "iter"
func pairs() iter.Seq2[int, struct{}] {
return func(yield func(int, struct{}) bool) {
yield(1, struct{}{})
}
}
func keys() iter.Seq[int] {
return func(yield func(int) bool) {
for k := range pairs() {
if !yield(k) {
return
}
}
}
}
func main() {
for range keys() {
}
}What did you see happen?
./prog.go:7:8: internal error: DwarfFixupTable has orphaned fixup on targeting main.keys.func1-range1 relidx=9 dclidx=1
What did you expect to see?
build succeeds
bisected 70dc75b
related d7b6fb4
cc @derekparker
Reacted by mwriter and Oliver Eikemeier
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone 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.Issues related to the Go compiler and/or runtime.
Type
Projects
- StatusShow more project fieldsDone
Activity
gabyhelp commentedon Apr 9, 2026
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
derekparker commentedon Apr 9, 2026
I will look into this today.
gopherbot commentedon Apr 9, 2026
Change https://go.dev/cl/764720 mentions this issue:
cmd/compile: improve filtering in preInliningDclsdr2chase commentedon Apr 9, 2026
@golang/compiler
eikemeier commentedon Apr 14, 2026
Even simpler (go.dev/play/p/5v7iLAF_DxQ):
derekparker commentedon Apr 14, 2026
@eikemeier are you able to test my patch above and verify it fixes on your reproducer as well?
eikemeier commentedon Apr 15, 2026
Yes, it does. I want to file a bug report and costructed a minimal reproducible example, but then found this issue and though I'll add it, since it is smaller. Also, in your test, you shouldn't need
It should be enough to do
Thanks for the good work, BTW.
cmd/compile: improve filtering in preInliningDcls