-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
go build use -asan it panic. #69225
Comments
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
sorry mantainer, but i think it is a bug, the pointer arithmetic i think it is valid. But panic |
@jokemanfire Your code does not follow the rules for handling pointer values described at https://pkg.go.dev/unsafe#Pointer. One of the points of |
Thanks to you,It is indeed quite different from C++. |
Go version
go version go1.21.0 linux/amd64 (master branch also influence)
Output of
go env
in your module/workspace:What did you do?
I test like this
go build -asan
run the binary file , I meet this panic
What did you see happen?
It panic.
What did you expect to see?
I want to know why cause this promblem. and how to resolve.
The text was updated successfully, but these errors were encountered: