dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.47k stars 4.76k forks source link

Test failure: Assertion failed 'likelihood <= 1.0' #108100

Closed jkotas closed 2 months ago

jkotas commented 2 months ago
  Starting:    System.Text.RegularExpressions.Tests (parallel test collections = on [2 threads], stop on fail = off)

Assert failure(PID 21 [0x00000015], Thread: 30 [0x001e]): Assertion failed 'likelihood <= 1.0' in 'Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.Lexer:LexXmlWhitespaceAndNewLineTrivia(byref):this' during 'Recognize Switch' (IL size 152; hash 0x82b23354; Tier1)

    File: /__w/1/s/src/coreclr/jit/block.cpp:81
    Image: /root/helix/work/correlation/dotnet

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=814658 Build error leg or test failing: System.Collections.Concurrent.Tests.WorkItemExecution Pull request: https://github.com/dotnet/runtime/pull/108048

Error Message

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

{
  "ErrorMessage": "likelihood <= 1.0",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=814658 Error message validated: [likelihood <= 1.0] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 9/21/2024 2:32:34 PM UTC

Report

Build Definition Test Pull Request
816686 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution
816522 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#108171
816072 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#107709
815290 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#108117
815210 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests.WorkItemExecution dotnet/runtime#108104
815034 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#107863
814912 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#106599
814853 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.WorkItemExecution dotnet/runtime#107772
814658 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#108048
814398 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#108083
813801 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution dotnet/runtime#108049

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 3 11
dotnet-policy-service[bot] commented 2 months ago

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch See info in area-owners.md if you want to be subscribed.

AndyAyersMS commented 2 months ago

@EgorBo likely related to #107831

amanasifkhalid commented 2 months ago

108125 looks related. #108124 was probably caused by #107831, too -- to fix the latter, I think we might just need to move the fgRenumberBlocks call up in Compiler::optSwitchRecognition.

EgorBo commented 2 months ago

Thanks, yeah I am trying to repro it locally now

EgorBo commented 2 months ago

Regressed by 10.0 PR

JulieLeeMSFT commented 2 months ago

Closing because the original code that caused the issue is reverted.