[ci-scan] Test failure: ARM64 LSRA rejects a conditional jump at block end under JitStress

Open
#137,995 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp

Research direction

Start with the assertion in src/coreclr/jit/lsra.cpp:8555 and inspect the LSRA allocation logic around the conditional-jump block-end check. Reproduce with the reported ARM64 JitStress settings and the representative Helix console to trace the failing compilation. Done means the affected ARM64 tests compile without the assertion under JitStress 1 and 2 on Windows and Linux.

Written by the indexing model from the issue text.

Description

agentic-workflows area-CodeGen-coreclr blocking-clean-ci-optional Known Build Error untriaged

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1691611
Build error leg or test failing: windows-arm64 Release / linux-arm64 Release libraries-jitstress-System.Security.Cryptography.Pkcs.Tests and System.IO.Ports.Tests
Pipeline: runtime-coreclr libraries-jitstress, definition 138, main.
Queues: windows.11.arm64.open and azurelinux.3.arm64.open. DOTNET_JitStress=1 or 2; DOTNET_TieredCompilation=0.
First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1691611 (finished 2026-11-20T08:42:20Z; first verified occurrence in the sampled window, not a proven introducing commit).

KBE authoring guidance (ci-failure-scan)
  • Error Details is for readers. Paste the full exception, stack trace, or build error excerpt so the failure is understandable without opening the raw log.
  • Build Analysis parses only the single JSON block under Error Message.
  • ErrorMessage is a case-sensitive ordinal String.Contains substring copied verbatim from the failing log.
  • Set BuildRetry to true only for a clear infrastructure retry case. ExcludeConsoleLog disables Helix console-log scanning.

Error Details

The checked ARM64 JIT asserts during LSRA allocation while compiling Rfc3161TimestampRequest.ProcessResponse, and the same assertion occurs in SerialStream's constructor. This is one JIT assertion shape, not independent cryptography and serial-port failures. Four Pkcs work items and one Ports work item contain it across Windows/Linux and JitStress 1/2.

One distinct build is verified. The ten preceding completed builds were examined: two succeeded, and all 24 failed-work-item consoles identified by the other eight builds' monitors were downloaded and checked without finding this assertion. The immediately preceding build is 1689546 (finished 2026-11-19T08:53:41Z). Multiple work items in this source build are not counted as independent build occurrences. Definition 138 qualifies for the scanner's JIT first-occurrence rule; no later completed build is available for a follow-up presence check.

Representative source console: https://helix.dot.net/api/jobs/646246b4-a1ba-418a-8a2e-ce734fb6bcf2/workitems/System.Security.Cryptography.Pkcs.Tests/console

Run-specific process identifiers and checkout paths are omitted:

Assertion failed '(lastNode == nullptr) || (!lastNode->OperIsConditionalJump() && !lastNode->OperIs(GT_SWITCH_TABLE, GT_SWITCH, GT_RETURN, GT_RETFILT, GT_SWIFT_ERROR_RET))' in 'System.Security.Cryptography.Pkcs.Rfc3161TimestampRequest:ProcessResponse(System.ReadOnlyMemory`1[byte],byref,byref,byref,bool):bool:this' during 'LSRA allocate' (IL size 296; hash 0xa09d62c8; FullOpts)
    File: src/coreclr/jit/lsra.cpp:8555

Assertion failed '(lastNode == nullptr) || (!lastNode->OperIsConditionalJump() && !lastNode->OperIs(GT_SWITCH_TABLE, GT_SWITCH, GT_RETURN, GT_RETFILT, GT_SWIFT_ERROR_RET))' in 'System.IO.Ports.SerialStream:.ctor(System.String,int,int,int,int,int,int,int,bool,bool,bool,byte):this' during 'LSRA allocate' (IL size 390; hash 0x45f8efb8; FullOpts)

Error Message

{
  "ErrorMessage": "Assertion failed '(lastNode == nullptr) || (!lastNode->OperIsConditionalJump() && !lastNode->OperIs(GT_SWITCH_TABLE, GT_SWITCH, GT_RETURN, GT_RETFILT, GT_SWIFT_ERROR_RET))'",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log

The literal matches once in the saved canonical Pkcs console and also appears in each of the other four source consoles. Passing/skipped negative output is empty. The native assertion is present in the available Helix console itself, not inferred from a dump or absent xunit attachment.


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]
Generated by GitHub Copilot.

Generated by CI Outer-Loop Failure Scanner · copilot · gpt61 · ~367 AIC · ⌖ ~13 AIC · ⊞ 33.5K · ◷

Report
Build Repository Test Pull Request
1694552 dotnet/runtime System.Security.Cryptography.Pkcs.Tests.WorkItemExecution
1693895 dotnet/runtime System.Security.Cryptography.Pkcs.Tests.WorkItemExecution
1693500 dotnet/runtime System.Security.Cryptography.Pkcs.Tests.WorkItemExecution
1693446 dotnet/runtime System.Security.Cryptography.Pkcs.Tests.WorkItemExecution
Summary
24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 4 4
Dominant language
C#
Stars
18.5k
Forks
5.8k
Avg merge
2d 18h
Merged PRs (30d)
588

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.