runtime icon indicating copy to clipboard operation
runtime copied to clipboard

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

Open pavelsavara opened this issue 4 years ago • 4 comments

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

pavelsavara avatar Apr 30 '21 12:04 pavelsavara

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: -

msftbot[bot] avatar Apr 30 '21 12:04 msftbot[bot]

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

msftbot[bot] avatar Jun 15 '21 13:06 msftbot[bot]

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

msftbot[bot] avatar Jun 15 '21 19:06 msftbot[bot]

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

radical avatar Aug 07 '22 05:08 radical