Skip to content

Assertion failed 'block->GetSwitchTargets()->GetSuccCount() == count' #119956

@EgorBo

Description

@EgorBo

runtime-coreclr libraries-jitstress-random with

C:\h\w\A9A1091A\w\AA6909C5\e>"C:\h\w\A9A1091A\p\dotnet.exe" exec --runtimeconfig Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.runtimeconfig.json --depsfile Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.deps.json xunit.console.dll Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests (found 92 of 93 test cases)
  Starting:    Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests (parallel test collections = on [4 threads], stop on fail = off)

Assert failure(PID 4376 [0x00001118], Thread: 3920 [0x0f50]): Assertion failed 'block->GetSwitchTargets()->GetSuccCount() == count' in 'Microsoft.CodeAnalysis.CSharp.Symbols.SourceNamedTypeSymbol:MakeDeclaredBases(Roslyn.Utilities.ConsList`1[Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol],Microsoft.CodeAnalysis.CSharp.BindingDiagnosticBag):System.Tuple`2[Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol,System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CSharp.Symbols.NamedTypeSymbol]]:this' during 'Recognize Switch' (IL size 998; hash 0x1d0767d2; FullOpts)

    File: D:\a\_work\1\s\src\coreclr\jit\fgdiagnostic.cpp:3946
    Image: C:\h\w\A9A1091A\p\dotnet.exe

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1153967&view=ms.vss-test-web.build-test-results-tab&runId=31878242&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab&resultId=222072
Build error leg or test failing:

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Assertion failed 'block->GetSwitchTargets()->GetSuccCount() == count'",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1153967
Error message validated: [Assertion failed 'block->GetSwitchTargets()->GetSuccCount() == count']
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/22/2025 2:07:42 PM UTC

Report

Build Definition Test Pull Request
1153967 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ci-optionalBlocking optional rolling runs

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions