Skip to content
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

[wasm][DebuggerTestSuite] RangeError: Maximum call stack size exceeded #52102

Open
pavelsavara opened this issue Apr 30, 2021 · 4 comments
Open
Assignees
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Milestone

Comments

@pavelsavara
Copy link
Member

pavelsavara commented Apr 30, 2021

Description

caused by breakpoint-> stackwalk-> describe variables->tostring->JIT

In DebuggerTests.SourceList.InspectBoxedLocals

  • On windows, chrome,
  • debug build of mono
  • /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true

Configuration

Windows
https://github.com/pavelsavara/runtime/tree/pr_wasm_debugger_crash

build.cmd -bl -os Browser -subset mono+host -c Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true
cd src\mono\wasm\debugger
dotnet.cmd test DebuggerTestSuite /p:Configuration=Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true /p:TargetArchitecture=wasm /p:TargetOS=Browser --filter DebuggerTests.SourceList.InspectBoxedLocals

Stack trace

interp_handle_intrinsics
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_invoke_checked
netcore_resolve_with_dll_import_resolver
netcore_resolve_with_dll_import_resolver_nofail
netcore_lookup_native_library
lookup_pinvoke_call_impl
mono_lookup_pinvoke_call_internal
mono_marshal_get_native_wrapper
interp_transform_internal_calls
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_try_invoke_internal
invoke_to_string
get_to_string_description
describe_value
describe_value
describe_variable
describe_variables_on_frame
mono_walk_stack_full
mono_walk_stack_with_ctx
mono_wasm_get_local_vars
mono_wasm_get_variables
_mono_wasm_fire_bp
process_breakpoint_events
mono_de_process_breakpoint
mono_wasm_breakpoint_hit
@dotnet-issue-labeler dotnet-issue-labeler bot added area-Codegen-Interpreter-mono untriaged New issue has not been triaged by the area owner labels Apr 30, 2021
@ghost
Copy link

ghost commented Apr 30, 2021

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

Issue Details

Description

caused by breakpoint-> stackwalk-> describe variables->tostring->JIT

In DebuggerTests.SourceList.InspectBoxedLocals

  • On windows, chrome,
  • debug build of mono

Configuration

Windows
https://github.com/pavelsavara/runtime/tree/pr_wasm_debugger_crash

build.cmd -bl -os Browser -subset mono+host -c Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true
cd src\mono\wasm\debugger
dotnet.cmd test DebuggerTestSuite /p:Configuration=Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true /p:TargetArchitecture=wasm /p:TargetOS=Browser --filter DebuggerTests.SourceList.InspectBoxedLocals

Stack trace

interp_handle_intrinsics
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_invoke_checked
netcore_resolve_with_dll_import_resolver
netcore_resolve_with_dll_import_resolver_nofail
netcore_lookup_native_library
lookup_pinvoke_call_impl
mono_lookup_pinvoke_call_internal
mono_marshal_get_native_wrapper
interp_transform_internal_calls
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_try_invoke_internal
invoke_to_string
get_to_string_description
describe_value
describe_value
describe_variable
describe_variables_on_frame
mono_walk_stack_full
mono_walk_stack_with_ctx
mono_wasm_get_local_vars
mono_wasm_get_variables
_mono_wasm_fire_bp
process_breakpoint_events
mono_de_process_breakpoint
mono_wasm_breakpoint_hit
Author: pavelsavara
Assignees: -
Labels:

area-Codegen-Interpreter-mono, untriaged

Milestone: -

@SamMonoRT SamMonoRT added this to the 6.0.0 milestone Jun 15, 2021
@SamMonoRT SamMonoRT added the arch-wasm WebAssembly architecture label Jun 15, 2021
@ghost
Copy link

ghost commented Jun 15, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

caused by breakpoint-> stackwalk-> describe variables->tostring->JIT

In DebuggerTests.SourceList.InspectBoxedLocals

  • On windows, chrome,
  • debug build of mono
  • /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true

Configuration

Windows
https://github.com/pavelsavara/runtime/tree/pr_wasm_debugger_crash

build.cmd -bl -os Browser -subset mono+host -c Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true
cd src\mono\wasm\debugger
dotnet.cmd test DebuggerTestSuite /p:Configuration=Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true /p:TargetArchitecture=wasm /p:TargetOS=Browser --filter DebuggerTests.SourceList.InspectBoxedLocals

Stack trace

interp_handle_intrinsics
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_invoke_checked
netcore_resolve_with_dll_import_resolver
netcore_resolve_with_dll_import_resolver_nofail
netcore_lookup_native_library
lookup_pinvoke_call_impl
mono_lookup_pinvoke_call_internal
mono_marshal_get_native_wrapper
interp_transform_internal_calls
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_try_invoke_internal
invoke_to_string
get_to_string_description
describe_value
describe_value
describe_variable
describe_variables_on_frame
mono_walk_stack_full
mono_walk_stack_with_ctx
mono_wasm_get_local_vars
mono_wasm_get_variables
_mono_wasm_fire_bp
process_breakpoint_events
mono_de_process_breakpoint
mono_wasm_breakpoint_hit
Author: pavelsavara
Assignees: -
Labels:

arch-wasm, area-Codegen-Interpreter-mono, untriaged

Milestone: 6.0.0

@ghost
Copy link

ghost commented Jun 15, 2021

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

Issue Details

Description

caused by breakpoint-> stackwalk-> describe variables->tostring->JIT

In DebuggerTests.SourceList.InspectBoxedLocals

  • On windows, chrome,
  • debug build of mono
  • /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true

Configuration

Windows
https://github.com/pavelsavara/runtime/tree/pr_wasm_debugger_crash

build.cmd -bl -os Browser -subset mono+host -c Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true
cd src\mono\wasm\debugger
dotnet.cmd test DebuggerTestSuite /p:Configuration=Debug /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true /p:WasmDebugLevel=5 /p:WasmBuildNative=true /p:TargetArchitecture=wasm /p:TargetOS=Browser --filter DebuggerTests.SourceList.InspectBoxedLocals

Stack trace

interp_handle_intrinsics
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_invoke_checked
netcore_resolve_with_dll_import_resolver
netcore_resolve_with_dll_import_resolver_nofail
netcore_lookup_native_library
lookup_pinvoke_call_impl
mono_lookup_pinvoke_call_internal
mono_marshal_get_native_wrapper
interp_transform_internal_calls
interp_transform_call
generate_code
generate
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_class_init_full
mono_interp_transform_method
do_transform_method
interp_exec_method
interp_runtime_invoke
mono_jit_runtime_invoke
do_runtime_invoke
mono_runtime_try_invoke
mono_runtime_try_invoke_internal
invoke_to_string
get_to_string_description
describe_value
describe_value
describe_variable
describe_variables_on_frame
mono_walk_stack_full
mono_walk_stack_with_ctx
mono_wasm_get_local_vars
mono_wasm_get_variables
_mono_wasm_fire_bp
process_breakpoint_events
mono_de_process_breakpoint
mono_wasm_breakpoint_hit
Author: pavelsavara
Assignees: -
Labels:

arch-wasm, area-Codegen-Interpreter-mono, area-Debugger-mono, untriaged

Milestone: 6.0.0

@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Jun 17, 2021
@lewing lewing modified the milestones: 6.0.0, Future Jul 14, 2021
@radical
Copy link
Member

radical commented Aug 7, 2022

@lewing do we need to run debugger tests with relinking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Debugger-mono
Projects
None yet
Development

No branches or pull requests

5 participants