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: internal compile error when using sync.Pool: mismatched zero/store sizes [1.14 backport] #39849

gopherbot opened this issue Jun 25, 2020 · 3 comments
CherryPickApproved FrozenDueToAge


Copy link

@gopherbot gopherbot commented Jun 25, 2020

@randall77 requested issue #39459 to be considered for backport to the next 1.14 minor release.

@gopherbot please open backport issues for 1.14 and 1.13.

This issue can cause the compiler to crash. The compiler was checking an invariant that doesn't, and does not need to, hold.

@gopherbot gopherbot added the CherryPickCandidate label Jun 25, 2020
@gopherbot gopherbot added this to the Go1.14.5 milestone Jun 25, 2020
Copy link

@gopherbot gopherbot commented Jun 25, 2020

Change mentions this issue: [release-branch.go1.14] cmd/compile: remove check that Zero's arg has the correct base type

Copy link

@dmitshur dmitshur commented Jul 10, 2020

Backport approved for Go 1.14 (this issue) and 1.13 (#39848) because it's a small fix to a serious problem without a workaround.

@dmitshur dmitshur added CherryPickApproved and removed CherryPickCandidate labels Jul 10, 2020
gopherbot pushed a commit that referenced this issue Jul 10, 2020
… the correct base type

It doesn't have to. The type in the aux field is authoritative.
There are cases involving casting from interface{} where pointers
have a placeholder pointer type (because the type is not known when
the IData op is generated).

The check was introduced in CL 13447.

Fixes #39849

Change-Id: Id77a57577806a271aeebd20bea5d92d08ee7aa6b
Run-TryBot: Keith Randall <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: David Chase <>
(cherry picked from commit 3b2f67a)
Run-TryBot: Dmitri Shuralyov <>
Copy link

@gopherbot gopherbot commented Jul 10, 2020

Closed by merging 5846dc8 to release-branch.go1.14.

@andybons andybons removed this from the Go1.14.5 milestone Jul 14, 2020
@andybons andybons added this to the Go1.14.6 milestone Jul 14, 2020
@golang golang locked and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
CherryPickApproved FrozenDueToAge
None yet

No branches or pull requests

3 participants