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: 'CloneString': value .autotmp_9 (v95) incorrectly live at entry #63651
Comments
Just a guess, but can you try to use |
I will try again later. I am currently trying git bisect and I have noticed that race is required for ICE to appear. |
After trying your guess, still ICE. |
Due to the presence of internal/cpu and<ABIInternal>, I use the following code for git bisect.
Failed to re ICE. |
I believe there is something going on with diff --git a/src/internal/bytealg/bytealg.go b/src/internal/bytealg/bytealg.go
index 7d70b0b562..99faab7e9a 100644
--- a/src/internal/bytealg/bytealg.go
+++ b/src/internal/bytealg/bytealg.go
@@ -178,7 +178,6 @@ func CloneString(s string) string {
if len(s) == 0 {
return ""
}
- b := MakeNoZero(len(s))
- copy(b, s)
+ b := append([]byte{}, s...)
return unsafe.String(&b[0], len(b))
} This is less performant and also does a shallow copy. I was unable to put together a reproducible case outside of the one from the CL |
cc @golang/compiler |
Strictly speaking, a bug in your CL (even if it is caused by existing weirdness in the compiler/library you are patching) is not a bug in the current compiler. I'd like to close this to avoid cluttering up the dashboard. |
This ICE caused CL to be blocked. I have encountered this situation for the first time. How can I solve it? |
@qiulaidongfeng best bet would be to try and isolate the ICE to get a reproducible example that does not depend on your CL so it can be addressed as a compiler bug. |
Note that |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go-review.googlesource.com/c/go/+/528799
What did you expect to see?
test passed.
What did you see instead?
https://storage.googleapis.com/go-build-log/95688dfe/windows-amd64-2016_e582fd3f.log
internal compiler error: 'CloneString': value .autotmp_9 (v95) incorrectly live at entry
The text was updated successfully, but these errors were encountered: