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

x/text/message/pipeline: TestFullCycle/ssa fails with "panic: Cannot range over: func(yield func(E) bool)" on Go tip #67348

Closed
dmitshur opened this issue May 13, 2024 · 3 comments
Assignees
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@dmitshur
Copy link
Contributor

As visible on the x/text by Go commit LUCI view, TestFullCycle/ssa started to fail on all builders where it runs as of CL 568477 with:

=== RUN   TestFullCycle/ssa
panic: Cannot range over: func(yield func(E) bool)

goroutine 859 [running]:
golang.org/x/tools/go/ssa.(*builder).rangeStmt(0xc000ceddf8, 0xc00465d380, 0xc0006a3ce0, 0x0)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2096 +0x774
golang.org/x/tools/go/ssa.(*builder).stmt(0xc000ceddf8, 0xc00465d380, {0x991b40?, 0xc0006a3ce0?})
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2315 +0x205
golang.org/x/tools/go/ssa.(*builder).stmtList(...)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:946
golang.org/x/tools/go/ssa.(*builder).stmt(0xc000ceddf8, 0xc00465d380, {0x9919c0?, 0xc000ba8d80?})
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2277 +0xe47
golang.org/x/tools/go/ssa.(*builder).buildFunctionBody(0xc000ceddf8, 0xc00465d380)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2391 +0x433
golang.org/x/tools/go/ssa.(*builder).buildFunction(0x6ee160?, 0xc00465d380)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2326 +0x28
golang.org/x/tools/go/ssa.(*builder).buildCreated(0xc000ceddf8)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2413 +0x25
golang.org/x/tools/go/ssa.(*Package).build(0xc00629d100)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2606 +0xc25
sync.(*Once).doSlow(0x997ea0?, 0xc003cb8720?)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/once.go:74 +0xb4
sync.(*Once).Do(...)
	/home/swarming/.swarming/w/ir/x/w/goroot/src/sync/once.go:65
golang.org/x/tools/go/ssa.(*Package).Build(...)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2477
golang.org/x/tools/go/ssa.(*Program).Build.func1(0xc003cb8ba0?)
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2462 +0x45
created by golang.org/x/tools/go/ssa.(*Program).Build in goroutine 22
	/home/swarming/.swarming/w/ir/x/w/gopath/pkg/mod/golang.org/x/tools@v0.6.0/go/ssa/builder.go:2461 +0x187

Example failing build is https://ci.chromium.org/b/8748389409025708577.

CC @mpvl, @ianlancetaylor.

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label May 13, 2024
@dmitshur dmitshur added this to the Unreleased milestone May 13, 2024
@dmitshur dmitshur changed the title x/text/message/pipeline: TestFullCycle/ssa fails with "panic: Cannot range over: func(yield func(E) bool)" x/text/message/pipeline: TestFullCycle/ssa fails with "panic: Cannot range over: func(yield func(E) bool)" on Go tip May 13, 2024
@timothy-king
Copy link
Contributor

This test should probably be disabled until https://go.dev/cl/555075 is submitted.

@adonovan
Copy link
Member

adonovan commented May 13, 2024

This issue should have been addressed by https://go.dev/cl/584295. I guess x/text needs to update its x/tools dependency. I'll do that.

@adonovan adonovan self-assigned this May 13, 2024
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/584977 mentions this issue: x/text: update x/tools for go/ssa range-over-func fix

@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 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants