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

cmd/compile: "not lowered: v29, StructSelect MAP MAP" caused by expand_calls cleanup #63505

Closed
dr2chase opened this issue Oct 11, 2023 · 1 comment
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.

Comments

@dr2chase
Copy link
Contributor

What version of Go are you using (go version)?

tip

Does this issue reproduce with the latest release?

no

What operating system and processor architecture are you using (go env)?

doesn't matter

What did you do?

Tried to compiler this code on golang.org from a minimized failure

What did you expect to see?

Success

What did you see instead?

./prog.go:10:19: internal compiler error: 'init.0': not lowered: v29, StructSelect MAP MAP

goroutine 18 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
cmd/compile/internal/base.FatalfAt({0x13bb48?, 0xc0?}, {0xc00013bb00, 0x8}, {0xc00010e2a0?, 0x2, 0x2})
	/usr/local/go/src/cmd/compile/internal/base/print.go:225 +0x1d8
cmd/compile/internal/base.Fatalf(...)
	/usr/local/go/src/cmd/compile/internal/base/print.go:194
cmd/compile/internal/ssagen.(*ssafn).Fatalf(0x79b8727d1c80?, {0x10?, 0x0?}, {0xdc986b, 0x2}, {0xc000128260?, 0x1, 0x0?})
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:8246 +0x171
cmd/compile/internal/ssa.(*Func).Fatalf(0xc000104680, {0xdc986b, 0x2}, {0xc000128260?, 0x1, 0x1})
	/usr/local/go/src/cmd/compile/internal/ssa/func.go:742 +0x27b
cmd/compile/internal/ssa.checkLower(0xc000104680)
	/usr/local/go/src/cmd/compile/internal/ssa/lower.go:49 +0x405
cmd/compile/internal/ssa.Compile(0xc000104680)
	/usr/local/go/src/cmd/compile/internal/ssa/compile.go:97 +0xa1a
cmd/compile/internal/ssagen.buildssa(0xc00041f320, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/ssa.go:599 +0x2336
cmd/compile/internal/ssagen.Compile(0xc00041f320, 0x1)
	/usr/local/go/src/cmd/compile/internal/ssagen/pgen.go:216 +0x45
cmd/compile/internal/gc.compileFunctions.func5.1(0x0?)
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:182 +0x34
cmd/compile/internal/gc.compileFunctions.func3.1()
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:164 +0x30
created by cmd/compile/internal/gc.compileFunctions.func3 in goroutine 8
	/usr/local/go/src/cmd/compile/internal/gc/compile.go:163 +0x247


Go build failed.
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Oct 11, 2023
@dr2chase dr2chase self-assigned this Oct 11, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/534657 mentions this issue: cmd/compiler: make decompose shortcuts apply for PtrShaped, not just Ptr

yunginnanet pushed a commit to yunginnanet/go that referenced this issue Oct 20, 2023
The immediate-data interface shortcuts also apply to pointer-shaped
things like maps, channels, and functions.

Fixes golang#63505.

Change-Id: I43982441bf523f53e9e5d183e95aea7c6655dd6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/534657
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: David Chase <drchase@google.com>
Auto-Submit: David Chase <drchase@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

No branches or pull requests

2 participants