You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] Stack overflow in JIT/Directed/tailcall/tailcall/tailcall.sh on Linux #69517
Two tests failing with stack overflow on unrelated PR, build, and log:
Starting: JIT.Directed.XUnitWrapper (parallel test collections = on, max threads = 2)
JIT/Directed/tailcall/tailcall/tailcall.sh [FAIL]
Unhandled Exception:
StackOverflowException
[ERROR] FATAL UNHANDLED EXCEPTION: System.StackOverflowException: The requested operation caused a stack overflow.
at Class1.Recurse4(Int32 depth, Object o1, Object o2)
at Class1.Recurse3(Int32 depth)
at Class1.Recurse2(Int32 depth, Object o1, Object o2)
at Class1.Recurse1(Int32 depth)
at Class1.Recurse4(Int32 depth, Object o1, Object o2)
at Class1.Recurse3(Int32 depth)
at Class1.Recurse2(Int32 depth, Object o1, Object o2)
...
And:
JIT/Directed/IL/Tailcall/ExplicitTailCallNoSO/ExplicitTailCallNoSO.sh [FAIL]
Unhandled Exception:
StackOverflowException
[ERROR] FATAL UNHANDLED EXCEPTION: System.StackOverflowException: The requested operation caused a stack overflow.
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
at ExplicitTailCallNoSO.CalculateSumWithTailCall(Int32 n, Int32 sum)
...
@radical please open an meta issue with stack overflow related wasm problems and disable tests that are failing due to it. There is discussion spread across multiple issues right now.
These tailcall tests fail because we run with debugger enabled, which disables all optimizations, including tailcall optimization. This means that it is normal to fail with stack overflow exception.
Did we just recently start running these tests with debug enabled on wasm ?
Activity
lewing commentedon May 25, 2022
@radical please open an meta issue with stack overflow related wasm problems and disable tests that are failing due to it. There is discussion spread across multiple issues right now.
[wasm] Disable runtime test failing due to stack overflow
[wasm] Disable runtime test failing due to stack overflow (#69863)
[wasm] Disable runtime test failing due to stack overflow (dotnet#69863)
BrzVlad commentedon May 28, 2022
These tailcall tests fail because we run with debugger enabled, which disables all optimizations, including tailcall optimization. This means that it is normal to fail with stack overflow exception.
Did we just recently start running these tests with debug enabled on wasm ?
radical commentedon May 31, 2022
What exactly would this mean? Building in debug config?
BrzVlad commentedon May 31, 2022
@radical No. It means somebody enables the debugger, by calling
mono_wasm_debugger_init. Not sure who calls this. @thaystg Any input here ?radical commentedon May 31, 2022
I recently added https://github.com/dotnet/runtime/blob/main/src/mono/wasm/build/WasmApp.targets#L108-L109 and https://github.com/dotnet/runtime/blob/main/src/mono/wasm/test-main.js#L423-L425 . But these should get triggered only when
DebuggerSupport=true, orConfiguration=Debug.radical commentedon May 31, 2022
I'll check locally
[wasm] Fix runtime test failing due to the app running in debug mode
radical commentedon May 31, 2022
Opened #70050 to fix this.
[wasm] Fix runtime test failing due to the app running in debug mode (#…