Skip to content

Conversation

@thaystg
Copy link
Member

@thaystg thaystg commented Aug 3, 2022

Fix side effect of #73024

What may happen is a field that has the same address of the owner, but a different type, and if this is the case will not cause the infinite recursion.
Maybe a better fix would be to pass "owner" address to buffer_add_value_full and check if they are the same when it's inside handle_vtype label.

Fixes #73342

@thaystg thaystg requested review from lewing, radical and vargaz August 3, 2022 15:53
@thaystg thaystg requested a review from marek-safar as a code owner August 3, 2022 15:53
@ghost ghost added the area-Debugger-mono label Aug 3, 2022
@ghost ghost assigned thaystg Aug 3, 2022
@ghost
Copy link

ghost commented Aug 3, 2022

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

Issue Details

Fix side effect of #73024

What may happen is a field that has the same address of the owner valuetype, but different type, and if this is the case will not cause the infinite recursion.
Maybe a better fix would be to pass "owner" address to buffer_add_value_full and check if they are the same when it's inside handle_vtype label.

Author: thaystg
Assignees: -
Labels:

area-Debugger-mono

Milestone: -

@radical
Copy link
Member

radical commented Aug 3, 2022

One test failing:

 DebuggerTests.MiscTests.InspectLocalRecursiveFieldValue [FAIL]
  Failed DebuggerTests.MiscTests.InspectLocalRecursiveFieldValue [53 ms]
  Error Message:
   [Runtime.getProperties returned False instead of True, for {
  "objectId": "dotnet:scope:1"
}, with Result: [Result: IsOk: False, IsErr: True, Value: , Error: {
  "message": "SendDebuggerAgentCommand failed for GetValues: [Result: IsOk: False, IsErr: True, Value: ,
	Error: {\n  \"result\": {\n    \"type\": \"object\",\n    \"subtype\": \"error\",\n    \"className\": \"RangeError\",\n    
	\"description\": \"RangeError: Maximum call stack size exceeded\\n 

@radical radical merged commit 6ee429c into dotnet:main Aug 4, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 3, 2022
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.

[wasm] Debugger tests with chrome broken on CI

2 participants