FSharp.Control.FusionTasks
FSharp.Control.FusionTasks copied to clipboard
Starting tasks with AttachedToParent option causes .NET runtime to crash with stack overflow exception
https://github.com/dotnet/runtime/pull/113407#issuecomment-2788189119
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
https://github.com/dotnet/runtime/issues/113189#issuecomment-2709327947
According to the dotnet team,
https://github.com/dotnet/runtime/pull/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.