-
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: endless traceback when panic in generics funtion #58513
Comments
CC @golang/runtime @mdempsky |
I think this is #54625. |
Minimized test case:
I'm beginning to suspect this is instead another instance of #46234, but for the synthetic function literals that the unified frontend generates in some cases. |
Extending the same kludge from 6a801d3 to synthetic closures fixes the issue. That's probably the easiest solution for backporting to 1.20. @gopherbot Please backport to Go 1.20. |
Backport issue(s) opened: #58531 (for 1.20). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Change https://go.dev/cl/468415 mentions this issue: |
Change https://go.dev/cl/468435 mentions this issue: |
This test case needs to check that the runtime is able to correctly unwind the call stack, and it uses runtime.Caller for that. However, this isn't implemented by go/ssa/interp, so it needs to be skipped. (It's an issue that's fairly specific to how inlining works too, so unlikely to matter to go/ssa/interp anyway.) While here, it looks like issue376214.go is now working, so enable that test too. Updates golang/go#58513. Change-Id: I3fa87c77542d85e0e5ce42c2f6d4c451700268cd Reviewed-on: https://go-review.googlesource.com/c/tools/+/468435 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Tim King <taking@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://go.dev/cl/468675 mentions this issue: |
Addendum to go.dev/cl/468435. Updates golang/go#58513. Change-Id: Ia8f146580cd51ba0796142c7cd700a65891d1e55 Reviewed-on: https://go-review.googlesource.com/c/tools/+/468675 Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
What version of Go are you using (
go version
)?git bisect
)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?
Run the following code:
What did you expect to see?
Program panics and exits. Output by go1.19.4:
What did you see instead?
Program panics as expected, but print stack endlessly.
The text was updated successfully, but these errors were encountered: