-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
runtime: concatstring unexpected fault address #70154
Comments
How is the |
In my code, there is no use of unsafe anywhere, and I'm trying to get a minimal reproduction of the code out there |
It definitely looks like it walked off into unmapped memory. The fault address is at the start of a page.
Presumably this is because the length of one of the input strings got corrupted somehow. The fault address looks like it walked past the end of the data section, not the end of the heap (which is at much higher addresses). |
Thank you all, I think I should know the reason now. In my code, I used singleflight, which in some cases causes singleflight to return the same The following is a sample code. If After I added a deep copy method, the problem no longer occurs. Thank you all type Content struct {
ID uint32
Images []string
}
func get() Content {
singleflight.Do("key", func() (any,error){
return Content{
Images: []string{
"https://example.com/image1.jpg",
}
}
})
} |
Go version
go version go1.23.2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
When I run a pressure test, I will get the following error,When I remove this line of code, everything will be fine
image += "~tplv-kp7y9lmlrj-dynamic-m-thumb.image"
What did you see happen?
What did you expect to see?
The text was updated successfully, but these errors were encountered: