Skip to content

Assertion failed 'srcReg != REG_NA' during 'Generate code' #134830

Closed as duplicate

Description

@VincentBu

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1613711
Build error leg or test failing: Microsoft.Extensions.Options.SourceGeneration.Tests.WorkItemExecution

Error Detail

Assert failure(PID 20 [0x00000014], Thread: 34 [0x0022]): Assertion failed 'srcReg != REG_NA' in 'Microsoft.CodeAnalysis.TextDocumentStates`1+<>c[System.__Canon]:<AddRange>b__25_1(System.__Canon):System.Collections.Generic.KeyValuePair`2[System.__Canon,System.__Canon]:this' during 'Generate code' (IL size 18; hash 0x0e6809be; FullOpts)

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

[createdump] Gathering state for process 20 dotnet
[createdump] Crashing thread 0022 signal 6 (0006)
[createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.20.dmp.crashreport.json
[createdump] Crash report successfully written
[createdump] Writing minidump with heap to file /datadisks/disk1/dumps/coredump.20.dmp
[createdump] Written 271368192 bytes (66252 pages) to core file
[createdump] Target process is alive
[createdump] Dump successfully written in 321ms
waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
./RunTests.sh: line 177:    20 Aborted                 (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig ComInterfaceGenerator.Unit.Tests.runtimeconfig.json --depsfile ComInterfaceGenerator.Unit.Tests.deps.json xunit.console.dll ComInterfaceGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/root/helix/work/workitem/e
----- end Sun Sep 27 09:38:17 AM UTC 2026 ----- exit code 134 ----------------------------------------------------------

Error Message

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

{
  "ErrorMessage": "Failed test: Microsoft.Extensions.Options.SourceGeneration.Tests.WorkItemExecution",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1613711
Error message validated: [Failed test: Microsoft.Extensions.Options.SourceGeneration.Tests.WorkItemExecution]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 9/29/2026 1:29:59 AM UTC

Report

Summary

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

Activity

  1. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Sep 29, 2026
  2. changed the title [-]Test failure: Microsoft.Extensions.Options.SourceGeneration.Tests.WorkItemExecution[/-] [+]Assertion failed 'srcReg != REG_NA' during 'Generate code'[/+] on Sep 29, 2026
  3. dotnet-policy-service commented on Sep 29, 2026

    @dotnet-policy-service
    Contributor

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

  4. added this to the 12.0.0 milestone on Oct 2, 2026
  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Oct 2, 2026
  6. VincentBu commented on Oct 8, 2026

    @VincentBu
    ContributorAuthor

    Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20261003.1

    Failed tests:

    net11.0-linux-Release-arm-jitstress2_jitstressregs8-(Debian.13.Arm32.Open)AzureLinux.3.Arm64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-13-helix-arm32v7@sha256:38844e127f1c1422bfbbfcb56012dfefc906d728f6a305bfd1aae70881ac6941
    - ComInterfaceGenerator.Unit.Tests.WorkItemExecution
    - LibraryImportGenerator.Unit.Tests.WorkItemExecution
    
    

    Error message:

    Assert failure(PID 20 [0x00000014], Thread: 32 [0x0020]): Assertion failed 'srcReg != REG_NA' in 'Microsoft.CodeAnalysis.SyntaxTokenList+EnumeratorImpl:get_Current():Microsoft.CodeAnalysis.SyntaxToken:this' during 'Generate code' (IL size 12; hash 0x005c53c5; FullOpts)
    
        File: /__w/1/s/src/coreclr/jit/instr.cpp:2338
        Image: /root/helix/work/correlation/dotnet
    
    [createdump] Gathering state for process 20 dotnet
    [createdump] Crashing thread 0020 signal 6 (0006)
    [createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.20.dmp.crashreport.json
    [createdump] Crash report successfully written
    [createdump] Writing minidump with heap to file /datadisks/disk1/dumps/coredump.20.dmp
    [createdump] Written 363597824 bytes (88769 pages) to core file
    [createdump] Target process is alive
    [createdump] Dump successfully written in 541ms
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    ./RunTests.sh: line 177:    20 Aborted                 (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig ComInterfaceGenerator.Unit.Tests.runtimeconfig.json --depsfile ComInterfaceGenerator.Unit.Tests.deps.json xunit.console.dll ComInterfaceGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
    /root/helix/work/workitem/e
    ----- end Sat Oct 3 09:35:53 AM UTC 2026 ----- exit code 134 ----------------------------------------------------------
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ci-optionalBlocking optional rolling runs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions