You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue should include [...] and a short rationale about why the backport might be needed.
@randall77 Can you please add a rationale for why this backport should be made? It's needed for the cherry-pick review process to make progress. Thanks.
We discussed with the release team, and we think we don't know exactly the importance and safety for this backport. Could the compiler team give more input to make the decision? Thanks.
This backport I would describe as mildly important. Without it there would be some static initialization code that causes the compiler to crash. It isn't common, but it isn't fuzz-generated either. Real people have run into it. I suspect it is not too hard to work around.
The fix for #56105 was for the same underlying issue, but was incomplete. This issue+CL fixes that incompleteness.
The backport is very safe. It just does some extra typechecking.
As #56727 (comment) mentioned, this issue was not in Go 1.19.2 but caused by a backport of #56105 in 1.19.3. I guess another option would be reverting that backport. The input in #56105 does look a bit contrived. The concern here is that the backport of #56105 has caused a chain of more issues and backports. How would that sound? Thanks.
Yes, the other option is to revert the fix for #56106. That seems ok to me. The test case for that issue is certainly more contrived than this one.
There's an outside chance that reverting the fix for #56106 leaves open the possibility of incorrectly compiled code instead of an ICE. But if it is possible it is certainly very rare.
I think we should go ahead with the backport. The backport fix is very safe (doing an unnecessary typecheck is a no-op), and can't make the situation worse. Whereas, as Keith pointed out, there's some chance that reverting the original fix reintroduces a miscompilation, which is much worse than an ICE. On balance, I support landing the backport.
Activity
gopherbot commentedon Nov 16, 2022
Change https://go.dev/cl/451155 mentions this issue:
[release-branch.go1.19] cmd/compile: fix missing typecheck for static initialization slicedmitshur commentedon Nov 16, 2022
https://go.dev/wiki/MinorReleases includes:
@randall77 Can you please add a rationale for why this backport should be made? It's needed for the cherry-pick review process to make progress. Thanks.
randall77 commentedon Nov 16, 2022
Some static initialization code causes the compiler to crash.
(This issue is a fix-to-the-fix for #56105, which has already been backported.)
cherrymui commentedon Nov 23, 2022
We discussed with the release team, and we think we don't know exactly the importance and safety for this backport. Could the compiler team give more input to make the decision? Thanks.
randall77 commentedon Nov 23, 2022
This backport I would describe as mildly important. Without it there would be some static initialization code that causes the compiler to crash. It isn't common, but it isn't fuzz-generated either. Real people have run into it. I suspect it is not too hard to work around.
The fix for #56105 was for the same underlying issue, but was incomplete. This issue+CL fixes that incompleteness.
The backport is very safe. It just does some extra typechecking.
cherrymui commentedon Nov 23, 2022
Thanks.
As #56727 (comment) mentioned, this issue was not in Go 1.19.2 but caused by a backport of #56105 in 1.19.3. I guess another option would be reverting that backport. The input in #56105 does look a bit contrived. The concern here is that the backport of #56105 has caused a chain of more issues and backports. How would that sound? Thanks.
randall77 commentedon Nov 23, 2022
Yes, the other option is to revert the fix for #56106. That seems ok to me. The test case for that issue is certainly more contrived than this one.
There's an outside chance that reverting the fix for #56106 leaves open the possibility of incorrectly compiled code instead of an ICE. But if it is possible it is certainly very rare.
cuonglm commentedon Nov 24, 2022
I'm still leaning to backport theses.
Isn't that without #56106, people won't be able to use fuzzing?
aclements commentedon Nov 30, 2022
I think we should go ahead with the backport. The backport fix is very safe (doing an unnecessary typecheck is a no-op), and can't make the situation worse. Whereas, as Keith pointed out, there's some chance that reverting the original fix reintroduces a miscompilation, which is much worse than an ICE. On balance, I support landing the backport.
gopherbot commentedon Dec 9, 2022
Closed by merging 926ffba to release-branch.go1.19.
[release-branch.go1.19] cmd/compile: fix missing typecheck for static…