-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: unexpected nil dereference on s390x [1.14 backport] #38443
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
Comments
@mundaym which CLs from the parent issue would you like to see backported? @randall77 do you consider this a serious issue with no workaround as described above? |
I believe only CL 228061 is required. Michael, please confirm. Yes, we should backport. This is a rare issue but is serious. It can lead to arbitrary bad execution. |
@randall77 thanks, Keith. Approved. Feel free to create the backport CLs for 1.14 and 1.13 per https://golang.org/wiki/MinorReleases. |
Yes, that is correct. The other CL is just an extra check to avoid a regression in future releases.
Thanks Andy and Keith. I'll do that now. |
Change https://golang.org/cl/230357 mentions this issue: |
Closed by merging c4b9269 to release-branch.go1.14. |
…opies in regalloc When deallocating the input register to a phi so that the phi itself could be allocated to that register the code was also deallocating all copies of that phi input value. Those copies of the value could still be live and if they were the register allocator could reuse them incorrectly to hold speculative copies of other phi inputs. This causes strange bugs. No test because this is a very obscure scenario that is hard to replicate but CL 228060 adds an assertion to the compiler that does trigger when running the std tests on linux/s390x without this CL applied. Hopefully that assertion will prevent future regressions. Fixes #38443. Change-Id: Id975dadedd731c7bb21933b9ea6b17daaa5c9e1d Reviewed-on: https://go-review.googlesource.com/c/go/+/228061 Run-TryBot: Michael Munday <mike.munday@ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> (cherry picked from commit 382fe3e) Reviewed-on: https://go-review.googlesource.com/c/go/+/230357
@mundaym requested issue #38195 to be considered for backport to the next 1.14 minor release.
The text was updated successfully, but these errors were encountered: