-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: wrong location list for function argument #72053
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
Comments
@golang/compiler |
CC @thanm maybe? :) In case you've got some interest in this with your DWARF5 work. |
Mentioned this in the Delve <> Go team meeting, but I am taking a look at this and hope to send in a CL this week or the next. |
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Change https://go.dev/cl/656736 mentions this issue: |
Change https://go.dev/cl/657355 mentions this issue: |
Adds a test for https://go.dev/issue/72053 Note the fix is submitted as https://go.dev/cl/656736 For [golang/go#72053](golang/go#72053) Change-Id: Iea247439f95cce85bf9a1560dd475be5048ec97a GitHub-Last-Rev: dcd050f GitHub-Pull-Request: #22 Reviewed-on: https://go-review.googlesource.com/c/debug/+/657355 Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
CL 659736 was reverted by CL 659955. |
Fixes the ComputePadding calculation to take into account the padding added for the current offset. This fixes an issue where padding can be added incorrectly for certain structs. Related: go-delve/delve#3923 Fixes golang#72053
Change https://go.dev/cl/659698 mentions this issue: |
Given the following program:
For function
main.Address.String
the first entry in the location list looks like this:this is wrong, the total size of this location list is 31 bytes while the type of the variable is only 24 bytes. It looks like a spurious 7 byte empty piece is inserted in the middle of the two fields of the string type, for some reason.
Reproduces on go 1.24, 1.23 and 1.22.
Originally reported as: go-delve/delve#3923
cc @dr2chase
The text was updated successfully, but these errors were encountered: