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
cmd/link: -buildmode=pie -linkshared panic at runtime [1.17 backport] #49086
Comments
Change https://golang.org/cl/357231 mentions this issue: |
The backport policy requires both supported releases, Go 1.17 and 1.16 at this time, to be supported equally (see https://golang.org/issue/34536#issuecomment-572188389). So to proceed here we need to check if this bug is also present in 1.16, or if it was a regression introduced in Go 1.17. @zhouguangyuan0718 Do you know if the problem also affects Go 1.16? |
This bug is present after https://go-review.googlesource.com/c/go/+/268479 summited. More detailed analysis is here: #47873 (comment). |
Thanks for pointing that out. We can proceed with the backport CL, as only 1.17 needs the fix then. |
…uild with "-linkshared" When build with "-linkshared", we can't tell if the interface method will be used or not. It can be used in shared library. This CL backport this fix to 1.17. Fixes #49086 Change-Id: Iba12812f199b7679cf2fd41a304268d6d6dd03c6 Reviewed-on: https://go-review.googlesource.com/c/go/+/350189 Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Alexander Rakoczy <alex@golang.org> (cherry picked from commit f687831) Reviewed-on: https://go-review.googlesource.com/c/go/+/357231 Trust: Ian Lance Taylor <iant@golang.org>
Closed by merging 91aa2f1 to release-branch.go1.17. |
@zhouguangyuan0718 requested issue #47873 to be considered for backport to the next 1.17 minor release.
The text was updated successfully, but these errors were encountered: