Skip to content

[ci-scan] Test failure: Assertion failed "Inconsistent profile data" during Head and tail merge (Tier1-OSR) #129401

Closed

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1463040
Build error leg or test failing: coreclr Pri1 Runtime Tests Run linux x64 checked - Regression_3

Error Details

JIT assertion failure during Head and tail merge in Tier1-OSR compilation. The assertion fires in various methods across multiple work items and platforms. This is a recurrence of the pattern previously tracked in #111343 (closed January 2025).

Assert failure(PID 49208 [0x0000c038], Thread: 49208 [0xc038]): Assertion failed '!"Inconsistent profile data"' in '_rem:_rem(float,float,float):int' during 'Head and tail merge' (IL size 77; hash 0xf27cfdc7; Tier1-OSR)

    File: /src/coreclr/jit/fgprofile.cpp:4850
    Image: corerun

Affected legs:

  • runtime-jit-experimental (def 137): linux x64, linux arm64, osx arm64, osx x64, windows x64

First build it occurred:

Related: Previously tracked in #111343 (closed as fixed 2025-01-13; this is a post-fix recurrence).

Error Message

{
  "ErrorMessage": "Inconsistent profile data",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

Note

🔒 Integrity filter blocked 6 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #124417 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #108070 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #114229 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #112196 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #128392 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #114222 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by CI Outer-Loop Failure Scanner · ● 63.1M · ◷

Report

Build Repository Test Pull Request
1474668 dotnet/runtime jit64_3.WorkItemExecution
1474477 dotnet/runtime Microsoft.Extensions.Options.Tests.WorkItemExecution
1474088 dotnet/runtime jit64_3.WorkItemExecution
1473974 dotnet/runtime Microsoft.VisualBasic.Core.Tests.WorkItemExecution

Summary

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

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Jun 15, 2026
  2. added
    untriaged
    on Jun 15, 2026
  3. AndyAyersMS commented on Jun 15, 2026

    @AndyAyersMS
    Member

    Guessing this is from #128515 or #129092

    @BoyBaykiller want to dig in?

  4. removed
    untriaged
    on Jun 15, 2026
  5. BoyBaykiller commented on Jun 15, 2026

    @BoyBaykiller
    Contributor

    Yep, once I'm back on pc this will be my first priority 🫡

  6. added
    area-CodeGen-coreclr
    on Jun 16, 2026
  7. dotnet-policy-service commented on Jun 16, 2026

    @dotnet-policy-service
    Contributor

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

  8. added
    blocking-clean-ci-optional
    and removed
    blocking-clean-ci
    on Jun 17, 2026
  9. added this to the 11.0.0 milestone on Jun 17, 2026
  10. BoyBaykiller commented on Jun 19, 2026

    @BoyBaykiller
    Contributor

    Assert after tail-merge: BB28 - block weight 43.16895 inconsistent with incoming likely weight 143.169

    Layout before tail-merge:
    Image

    In tail-merge we see [BB21, BB22, BB28] end with the same stmt. We remove BB21 and BB22 (#129092) and let their preds flow directly into BB28. Problem is BB22 is an osr-entry block that never had flow added from its pred (BB30) in the first place.
    So now when BB30 -> BB28, it's missing the 100.

    As a fix I'll ignore fgOSREntryBB blocks, since I probably shouldn't be removing them either way.
    But I also wonder why flow of BB30 is never propagated in the first place. Or maybe it should just be bbWeight=0.0.

  11. VincentBu commented on Jun 22, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr libraries-pgo 20260621.1

    Failed tests:

    net11.0-linux-Release-arm64-jitosr_stress_random-AzureLinux.3.Arm64.Open
    - ComInterfaceGenerator.Unit.Tests Work Item
    

    Error message:

    Assert failure(PID 36776 [0x00008fa8], Thread: 4976 [0x1370]): Assertion failed '!"Inconsistent profile data"' in 'System.Collections.Concurrent.SingleProducerSingleConsumerQueue`1[System.Collections.Generic.KeyValuePair`2[System.__Canon,long]]:get_IsEmpty():bool:this' during 'Head and tail merge' (IL size 77; hash 0x9c90abf8; Tier1-OSR)
    
        File: D:\a\_work\1\s\src\coreclr\jit\fgprofile.cpp:4850
        Image: C:\h\w\BA7509D1\p\dotnet.exe
    
    ----- end Sun 06/21/2026 18:16:52.83 ----- exit code -1073740286 ----------------------------------------------------------
    
  12. JulieLeeMSFT commented on Jun 23, 2026

    @JulieLeeMSFT
    Member

    Massive failures in libraries pgo pipeline this week.

    Failed in: runtime-coreclr libraries-pgo 20260621.1

    Failed tests:

    net11.0-linux-Release-arm64-jitosr_stress_random-AzureLinux.3.Arm64.Open
    - ComInterfaceGenerator.Unit.Tests Work Item
    

    Error message:

    Assert failure(PID 36776 [0x00008fa8], Thread: 4976 [0x1370]): Assertion failed '!"Inconsistent profile data"' in 'System.Collections.Concurrent.SingleProducerSingleConsumerQueue`1[System.Collections.Generic.KeyValuePair`2[System.__Canon,long]]:get_IsEmpty():bool:this' during 'Head and tail merge' (IL size 77; hash 0x9c90abf8; Tier1-OSR)
    
        File: D:\a\_work\1\s\src\coreclr\jit\fgprofile.cpp:4850
        Image: C:\h\w\BA7509D1\p\dotnet.exe
    
    ----- end Sun 06/21/2026 18:16:52.83 ----- exit code -1073740286 ----------------------------------------------------------
    
  13. added
    Priority:1
    on Jun 23, 2026
  14. JulieLeeMSFT commented on Jun 24, 2026

    @JulieLeeMSFT
    Member

    Is this the same issue?

    Console Log: Console Log
    Source: runtime-jit-experimental / coreclr windows x64 Checked jitosr_stress @ Windows.10.Amd64.Open / async

    Failed tests:

    - coreclr windows x64 Checked jitosr_stress @ Windows.10.Amd64.Open
    - coreclr windows x64 Checked jitosr_stress_random @ Windows.10.Amd64.Open
      - async
      - threading_group1
    

    Error Message:

    Assert failure(PID 1128 [0x00000468], Thread: 6360 [0x18d8]): Assertion failed '(block->bbRefs == 0) && (block->bbPreds == nullptr)' in 'System.Threading.LowLevelThreadBlocker:Wait():this' during 'Head and tail merge' (IL size 52; hash 0x008e2610; Tier1-OSR)
    
  15. AndyAyersMS commented on Jun 24, 2026

    @AndyAyersMS
    Member

    Probably not.

  16. locked and limited conversation to collaborators on Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorPriority:1agentic-workflowsarea-CodeGen-coreclrblocking-clean-ci-optional

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions