Skip to content

StackOverflow with Fable but not with fsc in release #2392

@TysonMN

Description

@TysonMN

Description

Consider PR hedgehogqa/fsharp-hedgehog#314. Our tests pass when using the standard F# complier (fsc) when the configuration is Release, which means the compiler will perform tail call elimination/optimization. The same test fails when compiled with Fable and executed via npm.

Repro code

Here is a link to one of the specific tests that fails for Fable+npm but passes with fsc.

Expected result

All tests, including that one, pass. For example, see these logs from our GitHub Action and executed those tests compiled with the fsc.

Actual results

Some tests, including that one, fail due to a StackOverflow. See these logs from our GitHub Action that executed that test compiled with Fable using npm.

Related information

  • Fable version
    • 3.1.1
  • Operating system
    • Microsoft Windows Server 2019
    • 10.0.17763
    • Datacenter
  • Node
    • 14.15.4
    • x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions