Skip to content

Starting tasks with AttachedToParent option causes .NET runtime to crash with stack overflow exception #16

@catamounttechnology

Description

@catamounttechnology

dotnet/runtime#113407 (comment)

in

https://github.com/kekyo/FSharp.Control.FusionTasks/blob/3685f0a25d9ce02ff1d133a8a96b8cc6c85c4931/FSharp.Control.FusionTasks/Infrastructures.fs

Tasks are created with the flag AttachedToParent.

In our application we are experimenting .net runtime stackoverflow crashes occurring in the task management code

dotnet/runtime#113189 (comment)

According to the dotnet team,

dotnet/runtime#113407

these are due to an excessive depth of parent-child tasks. Our application codebase does not use AttachedToParent (ever), and our investigation (as per the indicated links) show that the only tasks created with that flag come from FusionTasks code.

One side or the other needs to create a fix that prevents a stack overflow.

We are heavily using FusionTasks in our code so we would prefer to continue using it, But we will refactor our code removing it if no other solution will be offered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions