Skip to content

Conversation

@thaystg
Copy link
Member

@thaystg thaystg commented Jan 23, 2024

Implement decode_fixed_size_array_compute_size_internal
We were skipping this kind of field while was computing the size and this was causing a weird behavior because we were reading wrong information from the buffer.

Fix decode_value_compute_size it was decoding the buffer wrongly.

Improve wasm debugger - support inspect fixed size array (necessary to add a unit test).

Fixes dotnet/android#8653

@thaystg thaystg requested review from lambdageek and vargaz January 23, 2024 20:54
@thaystg thaystg requested a review from marek-safar as a code owner January 23, 2024 20:54
@ghost ghost added the area-Debugger-mono label Jan 23, 2024
@ghost ghost assigned thaystg Jan 23, 2024
@ghost
Copy link

ghost commented Jan 23, 2024

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

This is necessary to compute the size of the valuetype before memcpy values to the memory.

Author: thaystg
Assignees: -
Labels:

area-Debugger-mono

Milestone: -

@thaystg thaystg marked this pull request as draft January 23, 2024 21:09
@thaystg thaystg requested a review from noahfalk January 24, 2024 03:21
@thaystg thaystg marked this pull request as ready for review January 24, 2024 03:21
@thaystg thaystg changed the title [mono][debugger] Implement decode_fixed_size_array_compute_size_internal [mono][debugger] Fix decode_value_compute_size Jan 24, 2024
Copy link
Member

@lambdageek lambdageek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

native code lgtm, except there's some extra indentation

@lambdageek lambdageek requested a review from ilonatommy January 24, 2024 16:26
@lambdageek
Copy link
Member

@ilonatommy could you take a look at the debug proxy

@lewing lewing merged commit 88632d3 into dotnet:main Jan 24, 2024
@lewing
Copy link
Member

lewing commented Jan 24, 2024

does this need to be backported?

@thaystg
Copy link
Member Author

thaystg commented Jan 24, 2024

does this need to be backported?

Yes. I will do it.

@thaystg
Copy link
Member Author

thaystg commented Jan 24, 2024

/backport to release/8.0-staging

@github-actions
Copy link
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/7645765328

@github-actions
Copy link
Contributor

@thaystg backporting to release/8.0-staging failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix 8653 xamarin
Applying: Fixing the order of the code, it doesn't matter in this case, but just to keep it correct.
Applying: Fix compilation
Applying: Fix debug fixed array on wasm debugger.
error: sha1 information is lacking or useless (src/mono/mono/component/debugger-agent.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0004 Fix debug fixed array on wasm debugger.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@github-actions
Copy link
Contributor

@thaystg an error occurred while backporting to release/8.0-staging, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

thaystg added a commit to thaystg/runtime that referenced this pull request Jan 26, 2024
lewing pushed a commit that referenced this pull request Feb 9, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Abort message: '* Assertion at /__w/1/s/src/mono/mono/component/debugger-agent.c:5521, condition `nfields == 0' not met'

3 participants