Skip to content

[RuntimeAync] Assert in LSRA on x86 #120341

Closed

Description

@VSadov

Assert was seen in the PR that tries to enable runtime async in Libraries partition.
May be caused by async codegen or could be something preexisting that async brings up.

C:\h\w\A35F095B\w\A5E3094E\e>"C:\h\w\A35F095B\p\dotnet.exe" exec --runtimeconfig System.Threading.Tasks.Parallel.Tests.runtimeconfig.json --depsfile System.Threading.Tasks.Parallel.Tests.deps.json xunit.console.dll System.Threading.Tasks.Parallel.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: System.Threading.Tasks.Parallel.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Threading.Tasks.Parallel.Tests (found 119 of 198 test cases)
  Starting:    System.Threading.Tasks.Parallel.Tests (parallel test collections = on [4 threads], stop on fail = off)

Assert failure(PID 5776 [0x00001690], Thread: 4872 [0x1308]): Assertion failed 'op1->OperIs(GT_LONG)' in 'System.Threading.Tasks.Tests.ParallelForEachAsyncTests+<>c__DisplayClass2_0:<Dop_WorkersCreatedRespectingLimit_For>b__0(long,System.Threading.CancellationToken):this' during 'Linear scan register alloc' (IL size 48; hash 0x7270ccaa; MinOpts)

    File: D:\a\_work\1\s\src\coreclr\jit\lsrabuild.cpp:4182
    Image: C:\h\w\A35F095B\p\dotnet.exe

Failure log example: https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-119432-merge-373553c4d4944c76b7/System.Threading.Tasks.Parallel.Tests/1/console.d25d4711.log?helixlogtype=result

Activity

  1. added this to the 11.0.0 milestone on Oct 2, 2025
  2. added
    area-CodeGen-coreclr
    on Oct 2, 2025
  3. dotnet-policy-service commented on Oct 2, 2025

    @dotnet-policy-service
    Contributor

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

  4. VSadov commented on Oct 2, 2025

    @VSadov
    MemberAuthor
  5. jakobbotsch commented on Nov 3, 2025

    @jakobbotsch
    Member

    Is this still reproing?

  6. self-assigned this
    on Nov 18, 2025
  7. added a commit that references this issue on Nov 19, 2025
    96765f3
  8. locked and limited conversation to collaborators on Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-x86area-CodeGen-coreclrruntime-async

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions