Stack overflow from recursion in debug code built with .NET SDK 6 #12645
Labels
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
A recursive function isn't getting properly tailcalled when built with .NET SDK 6 in debug mode. This leads to a stack overflow. The same code has been working with no issue since at least .NET Core 2.1.
Repro steps
For a minimal repro with instructions, see charlieturndorf/crashrepro-netsdk6-tailoverflow
Expected behavior
The function should recurse an arbitrary number of times without overflow (10k recursions in the repro provided).
Actual behavior
A stack overflow tears down the process.
Known workarounds
Related information
Possibly related to #12413; or, at the very least, probably related to the addition of pipeline debugging.
The text was updated successfully, but these errors were encountered: