You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$HOME/.nuget/packages/microsoft.net.compilers.toolset/4.10.0-1.24061.4/tasks/netcore/Microsoft.CSharp.Core.targets(84,5): error : Process terminated. System.InsufficientExecutionStackException: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space. [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack() [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker.Visit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker.DefaultVisit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.LocalBinderFactory.DefaultVisit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor.VisitBinaryPattern(BinaryPatternSyntax node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.Syntax.BinaryPatternSyntax.Accept(CSharpSyntaxVisitor visitor) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker.Visit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker.DefaultVisit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.LocalBinderFactory.DefaultVisit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor.VisitBinaryPattern(BinaryPatternSyntax node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.Syntax.BinaryPatternSyntax.Accept(CSharpSyntaxVisitor visitor) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker.Visit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxWalker.DefaultVisit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.LocalBinderFactory.DefaultVisit(SyntaxNode node) [/dotnet/roslyn/src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj::TargetFramework=net7.0]
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor.VisitBinaryPattern(BinaryPatternSyntax node)
...
The text was updated successfully, but these errors were encountered:
Much like binary operators, we can have deeply-nested binary patterns. An example of this is our own IsBuildOnlyDiagnostic, which has ~2500 binary patterns in a single arm, and growing every release. To avoid stack depth issues, I took the same approach we do for binary operators; rewrite recursion to use a manual stack for these cases. Fixesdotnet#73439.
Version Used:
Steps to Reproduce:
Expected Behavior:
Compilation succeeds.
Actual Behavior:
System.InsufficientExecutionStackException
thrown compilingErrorFacts.IsBuildOnlyDiagnostic()
The text was updated successfully, but these errors were encountered: