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
reflect: segmentation violation while using html/template [1.17 backport] #49961
Comments
Nasty crash in reflect call, due to missing garbage collector roots. |
Change https://golang.org/cl/369098 mentions this issue: |
Change https://golang.org/cl/369158 mentions this issue: |
To the release team: we should approve this cherry pick. Memory corruption, no workaround. |
Closed by merging 0aa7f8f to release-branch.go1.17. |
… live in Call When register ABI is used, reflect.Value.Call prepares the call arguments in a memory representation of the argument registers. It has special handling to keep the pointers in arguments live. Currently, this handles pointer-typed arguments. But when an argument is an aggregate-type that contains pointers and passed in registers, it currently doesn't keep the pointers live. Do so in this CL. Fixes #49961 Change-Id: I9264a8767e2a2c48573f6047144759b845dcf480 Reviewed-on: https://go-review.googlesource.com/c/go/+/369098 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
@randall77 requested issue #49955 to be considered for backport to the next 1.17 minor release.
The text was updated successfully, but these errors were encountered: