Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Assertion failed 'change >= 0' #100350

Closed

Description

@BruceForstall

https://dev.azure.com/dnceng-public/public/_build/results?buildId=620358&view=ms.vss-test-web.build-test-results-tab

libraries-jitstress test failure
System.Text.RegularExpressions.Tests Work Item
seemingly every platform

----- start Wed 03/27/2024  7:21:47.72 ===============  To repro directly: =====================================================
pushd C:\h\w\A5880934\w\9C2708EB\e\
"C:\h\w\A5880934\p\dotnet.exe" exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================

C:\h\w\A5880934\w\9C2708EB\e>"C:\h\w\A5880934\p\dotnet.exe" exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Text.RegularExpressions.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.RegularExpressions.Tests (found 327 of 358 test cases)
  Starting:    System.Text.RegularExpressions.Tests (parallel test collections = on [4 threads], stop on fail = off)
    System.Text.RegularExpressions.Tests.RegexCompileToAssemblyTests.CompileToAssembly_SimpleUseInDebug [SKIP]
      Condition(s) not met: "IsDebugAndRemoteExecutorSupported"

Assert failure(PID 7060 [0x00001b94], Thread: 904 [0x0388]): Assertion failed 'change >= 0' in 'System.Text.RegularExpressions.CompiledRegexRunner:Regex5982_TryMatchAtCurrentPosition(System.Text.RegularExpressions.RegexRunner,System.ReadOnlySpan`1[ushort]):ubyte' during 'Profile incorporation' (IL size 77119; hash 0x346865ee; Tier0-MinOpts)

    File: D:\a\_work\1\s\src\coreclr\jit\fgprofilesynthesis.cpp:1267
    Image: C:\h\w\A5880934\p\dotnet.exe

----- end Wed 03/27/2024  7:29:52.87 ----- exit code -1073740286 ----------------------------------------------------------

Activity

  1. added
    JitStress
    area-CodeGen-coreclr
    on Mar 27, 2024
  2. dotnet-policy-service commented on Mar 27, 2024

    @dotnet-policy-service
    Contributor

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

  3. added
    untriaged
    on Mar 27, 2024
  4. added
    blocking-clean-ci-optional
    on Mar 27, 2024
  5. AndyAyersMS commented on Mar 28, 2024

    @AndyAyersMS
    Member

    The old regex IL could produce some pretty messy flow. I think this is exposing lack of a cyclic cap for the irreducible (improper) loop cases:

    ccp backedge BB163 (6.707601e+29) -> BB164 likelihood 1
    Cyclic weight 6.707601e+29 > 0.999(cap) -- will reduce to cap
    For loop at BB164 cyclic weight is 0.999 cyclic probability is 1000 [capped]
    
    Computing block weights
    Synthesis solver: flow graph has 265 improper loop headers
    
    iteration 0: BB164 :: old 0 new 2.545923e+07 change 2.545923e+07
    
    ...
    iteration 1: BB117 :: old 8.508028 new 6.324828e+35 change 6.324828e+35
    ...
    iteration 9: BB990 :: old 1.423293e+306 new inf change inf
    

    Seems like any realistic flow we'll see should have counts that top out at 10^12 or so, so perhaps I'll just stop if we see something that large.

  6. AndyAyersMS commented on Mar 28, 2024

    @AndyAyersMS
    Member

    Another option would be (assuming we were in repair mode) switch to blend, perhaps a hard blend, and then retry ... worth considering if we value consistency over accuracy.

  7. AndyAyersMS commented on Mar 28, 2024

    @AndyAyersMS
    Member

    FYI this was triggered by stress putting in random profile data, which was wildly inconsistent, and triggered a repair. Normally we would not see profile data like this in a Tier0 method.

    JitStress -- incorporating random profile data
    
  8. added 2 commits that reference this issue on Mar 28, 2024
    bf5b1c0
    6561e7c
  9. removed
    untriaged
    on Mar 28, 2024
  10. locked and limited conversation to collaborators on Apr 28, 2024
  11. added a commit that references this issue on Apr 30, 2024
    b11215e
  12. added a commit that references this issue on May 30, 2024
    01a4674
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

JitStressarea-CodeGen-coreclrblocking-clean-ci-optional

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions