-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/tools/go/analysis/passes/printf: segfault coming from printf #55350
Comments
What did you run? Presumably you ran something like |
I ran I just marked
|
Forgive me; both of those are clearly visible in your original report. I clearly need to rest my eyes :) |
Tentatively marking it as an issue of the analysis instead of go/types, as the go/types function is just a small helper function. Maybe it calls |
I believe this is related to generics. If I replace the call to
I don't get this error. I am not sure yet if the (Note that the simplified body of |
Change https://go.dev/cl/433755 mentions this issue: |
What version of Go are you using (
go version
)?Started adding a test case and found I can segfault the compiler via
fmt.Println
Branch where I ran into this (project is small, easy to repro just by running
go test
):https://github.com/hashicorp/go-set/tree/panic-on-go-string
I suspect it has something to do with our non normal
String(func())
method, but I dunnoThe text was updated successfully, but these errors were encountered: