-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: internal compiler error: 'init': value .dict (nil) incorrectly live at entry #57778
Comments
compile ok with |
cc @golang/compiler |
another repro:
|
Change https://go.dev/cl/461756 mentions this issue: |
Change https://go.dev/cl/461757 mentions this issue: |
In case useful, another example using tip as of this morning. (Seen while testing #57173 on many public modules).
Error:
Version:
|
Change https://go.dev/cl/461686 mentions this issue: |
Change https://go.dev/cl/462535 mentions this issue: |
…den node fields Unified IR added several new IR fields for holding *runtime._type expressions. To avoid throwing off any frontend semantics (particularly inlining cost heuristics), they were marked as `mknode:"-"` so that code wouldn't visit them. Unfortunately, this has a bad interaction with the static init inlining optimization, because the latter relies on ir.EditChildren to substitute all parameters. This potentially includes dictionary parameters, which can appear within the new RType fields. This CL adds a new ir.EditChildrenWithHidden function that also edits these fields, and switches staticinit to use it. Longer term, we should unhide the RType fields so that ir.EditChildren visits them normally, but that's scarier so late in the release cycle. Updates #57778. Updates #57854. Change-Id: I98c1e8cf366156dc0c81a0cb79029cc5e59c476f Reviewed-on: https://go-review.googlesource.com/c/go/+/461686 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> (cherry picked from commit 9f2fbedf010d59c3ecaa8c25b07a5f68fcb2e3d5) Reviewed-on: https://go-review.googlesource.com/c/go/+/462535 Auto-Submit: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Happens with 1.20rc3 and not with 1.19.4
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This happens for https://pkg.go.dev/github.com/google/btree that's used in https://github.com/pingcap/tiflow
To reproduce:
Or with external dependencies:
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: