Skip to content

Assertion failed 'block->countOfInEdges() > 0' during 'Remove empty finally' with infinite loop in finally #58729

@jakobbotsch

Description

@jakobbotsch
public static void Main()
{
    try
    {
        System.Console.WriteLine("A");
    }
    finally
    {
        while (true)
        {
        }
    }
}
Assert failure(PID 14880 [0x00003a20], Thread: 23380 [0x5b54]): Assertion failed 'block->countOfInEdges() > 0' in 'Program:Main()' during 'Remove empty finally' (IL size 16)

    File: D:\dev\dotnet\runtime\src\coreclr\jit\fgflow.cpp Line: 280
    Image: D:\dev\dotnet\runtime\artifacts\tests\coreclr\windows.x64.Debug\Tests\Core_Root\corerun.exe

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions