Skip to content

[wasm] Stack overflow in JIT/Directed/tailcall/tailcall/tailcall.sh on Linux #69517

Closed

Description

@radical

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)
...

This was seen on other recent runs too.

Activity

  1. added
    arch-wasm
    on May 18, 2022
  2. ghost added
    untriaged
    on May 18, 2022
  3. ghost added
    area-CodeGen-coreclr
    on May 18, 2022
  4. added
    blocking-clean-ci
    and removed
    area-CodeGen-coreclr
    on May 18, 2022
  5. lewing commented on May 25, 2022

    @lewing
    Member

    @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.

  6. removed
    untriaged
    on May 25, 2022
  7. added this to the 7.0.0 milestone on May 25, 2022
  8. BrzVlad commented on May 28, 2022

    @BrzVlad
    Member

    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 ?

  9. radical commented on May 31, 2022

    @radical
    MemberAuthor

    Did we just recently start running these tests with debug enabled on wasm ?

    What exactly would this mean? Building in debug config?

  10. BrzVlad commented on May 31, 2022

    @BrzVlad
    Member

    @radical No. It means somebody enables the debugger, by calling mono_wasm_debugger_init. Not sure who calls this. @thaystg Any input here ?

  11. radical commented on May 31, 2022

    @radical
    MemberAuthor

    I'll check locally

  12. ghost added
    in-pr
    on May 31, 2022
  13. radical commented on May 31, 2022

    @radical
    MemberAuthor

    Opened #70050 to fix this.

  14. ghost removed
    in-pr
    on Jun 1, 2022
  15. ghost locked as resolved and limited conversation to collaborators on Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Codegen-meta-monoblocking-clean-ci

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions