Skip to content

Assertion failed '!"Inconsistent profile data"' #111343

Closed

Description

@EgorBo
Assert failure(PID 2840 [0x00000b18], Thread: 1500 [0x05dc]): Assertion failed '!"Inconsistent profile data"' in 'System.Xml.XPath.XPathNavigatorReader:MoveToElement():ubyte:this' during 'Update flow graph early pass' (IL size 129; hash 0x8ef45fdb; Tier1-OSR)

    File: D:\a\_work\1\s\src\coreclr\jit\fgprofile.cpp:4827
    Image: C:\h\w\AAB00918\p\dotnet.exe

Build Information

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

Error Message

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

{
  "ErrorMessage": "Assertion failed '!\"Inconsistent profile data\"'",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=914793
Error message validated: [Assertion failed '!"Inconsistent profile data"']
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/13/2025 9:36:34 AM UTC

Report

Build Definition Test Pull Request
914793 dotnet/runtime Microsoft.Extensions.Configuration.Xml.Tests.WorkItemExecution

Summary

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

Activity

  1. added
    Known Build Error
    on Jan 13, 2025
  2. ghost added
    needs-area-label
    on Jan 13, 2025
  3. EgorBo commented on Jan 13, 2025

    @EgorBo
    MemberAuthor

    cc @amanasifkhalid @AndyAyersMS 'Update flow graph early pass' assert

  4. added
    untriaged
    on Jan 13, 2025
  5. added
    area-CodeGen-coreclr
    blocking-clean-ci-optional
    and removed
    needs-area-label
    on Jan 13, 2025
  6. added this to the 10.0.0 milestone on Jan 13, 2025
  7. removed
    untriaged
    on Jan 13, 2025
  8. amanasifkhalid commented on Jan 13, 2025

    @amanasifkhalid
    Contributor

    Before running fgUpdateFlowGraph, we have the following flowgraph:

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    BBnum BBid ref try hnd preds           weight   IBC [IL range]   [jump]                            [EH region]        [flags]
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    BB13 [0012]  1                             0.27   0 [???..???)-> BB03(1)                 (always)                     i IBC internal
    BB01 [0000]  1                           100    100 [000..00D)-> BB04(0.48),BB02(0.52)   ( cond )                     i IBC original-entry
    BB02 [0001]  1       BB01                 52     52 [00D..011)-> BB09(0.48),BB03(0.52)   ( cond )                     i IBC
    BB03 [0002]  2       BB02,BB13            27.04  27 [011..013)-> BB12(1)                 (always)                     i IBC osr-entry
    BB04 [0003]  1       BB01                 48     48 [013..020)-> BB06(0.8),BB05(0.2)     ( cond )                     i IBC
    BB05 [0004]  3       BB04,BB10,BB12       61.60  62 [020..022)                           (return)                     i IBC
    BB06 [0005]  1       BB04                 38.40  38 [022..039)-> BB08(0.2),BB07(0.8)     ( cond )                     i IBC
    BB07 [0006]  1       BB06                 30.72  31 [039..047)-> BB08(1)                 (always)                     i IBC
    BB08 [0007]  2       BB06,BB07            38.40  38 [047..057)                           (return)                     i IBC
    BB09 [0008]  1       BB02                 24.96  25 [057..06B)-> BB11(0.8),BB10(0.2)     ( cond )                     i IBC
    BB10 [0009]  1       BB09                  4.99   5 [06B..074)-> BB05(1)                 (always)                     i IBC
    BB11 [0010]  1       BB09                 19.97  20 [074..07F)-> BB12(1)                 (always)                     i IBC
    BB12 [0011]  2       BB03,BB11            47.01  47 [07F..081)-> BB05(1)                 (always)                     i IBC
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    

    The OSR entry block BB03's weight is inconsistent with its incoming flow, but we don't assert, as we skip incoming weight verification for OSR entry blocks. In fgUpdateFlowGraph, the imbalanced profile data is propagated to normal blocks, which leading to the assert. It seems reasonable to mark the profile as inconsistent if fgUpdateFlowGraph makes any transformations with OSR entry blocks.

  9. added
    in-pr
    on Jan 13, 2025
  10. added a commit that references this issue on Jan 13, 2025
    4ae1cf2
  11. locked and limited conversation to collaborators on Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Known Build Errorarea-CodeGen-coreclrblocking-clean-ci-optionalin-pr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions