-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: finalizer call has wrong frame size [1.17 backport] #51458
Labels
Milestone
Comments
Change https://go.dev/cl/389794 mentions this issue: |
Approving as a serious issue without a workaround. Only Go 1.17 needs this backport. |
Closed by merging 88be85f to release-branch.go1.17. |
gopherbot
pushed a commit
that referenced
this issue
Mar 14, 2022
…inalizer call The finalizer is called using reflectcall. When register ABI is used, the finalizer's argument is passed in register(s). But the frame size calculation does not include the spill slot. When the argument actually spills, it may clobber the caller's stack frame. This CL fixes it. Updates #51457. Fixes #51458. Change-Id: Ibcc7507c518ba65c1c5a7759e5cab0ae3fc7efce Reviewed-on: https://go-review.googlesource.com/c/go/+/389574 Trust: Cherry Mui <[email protected]> Run-TryBot: Cherry Mui <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> (cherry picked from commit 58804ea) Reviewed-on: https://go-review.googlesource.com/c/go/+/389794
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
@cherrymui requested issue #51457 to be considered for backport to the next 1.17 minor release.
The text was updated successfully, but these errors were encountered: