Skip to content

[ci-scan] Test failure: System.IO.Hashing Crc64 InitializeVectorized stripped from ReadyToRun image on iOS simulator #130570

Description

@github-actions

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1502636
Build error leg or test failing: iossimulator Release AllSubsets_CoreCLR - System.IO.Hashing.Tests

In the runtime-extra-platforms pipeline (definition 154), the System.IO.Hashing.Tests work item crashes on the iOS simulator (ReadyToRun / crossgen2 mobile leg) with a fatal error: a method body required at runtime — System.IO.Hashing.Crc64ParameterSet+ForwardCrc64.InitializeVectorized — was stripped from the ReadyToRun image. The crash aborts the whole test app (APP_CRASH, exitCode 80).

This reproduces in both the source build (finished 2026-07-10T09:02Z) and the follow-up build 1504386 (finished 2026-07-11T09:01Z), so it is a stable signature.

Error Details

Fatal error.
A method body required at runtime was stripped from the ReadyToRun image.
   at System.IO.Hashing.Crc64ParameterSet+ForwardCrc64.InitializeVectorized(Boolean ByRef)
   at System.IO.Hashing.Tests.Crc64WEDriver.get_ParameterSet()
   at System.IO.Hashing.Tests.Crc64Tests_Parameterized`1[[System.__Canon, ...]]..cctor()
   at System.Runtime.CompilerServices.InitHelpers.CallClassConstructor(Void*, Void*, System.Exception*)

Error Message

{
  "ErrorMessage": [
    "A method body required at runtime was stripped from the ReadyToRun image.",
    "at System.IO.Hashing.Crc64ParameterSet+ForwardCrc64.InitializeVectorized(Boolean ByRef)"
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

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

This issue was generated by an AI/Copilot CI triage workflow.

Generated by CI Outer-Loop Failure Scanner · 529.2 AIC · ⊞ 19.5K · ◷

Report

Build Repository Test Pull Request
1504972 dotnet/runtime System.IO.Hashing.Tests.WorkItemExecution

Summary

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

Activity

  1. github-actions commented on Jul 12, 2026

    @github-actions
    ContributorAuthor

    Caution

    agentic threat detected
    Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

    Details

    The threat detection results could not be parsed.

    Review the workflow run logs for details.

    Workflow artifact: ci-fix
    Artifact kind: handoff
    Linked KBE: #130570

    Note

    AI/Copilot-generated triage note (ci-failure-fix). No automated code change was produced: this is a crossgen2 / ReadyToRun IL-body-stripping product bug on the mobile R2R path, well outside small-fix bounds, so I am looping in owners rather than muting the test.

    Root cause (read-only analysis)

    On the iOS-simulator AllSubsets_CoreCLR (ReadyToRun / crossgen2 mobile) leg, System.IO.Hashing.Tests crashes the whole app at startup:

    Fatal error.
    A method body required at runtime was stripped from the ReadyToRun image.
       at System.IO.Hashing.Crc64ParameterSet+ForwardCrc64.InitializeVectorized(Boolean ByRef)
       at System.IO.Hashing.Tests.Crc64WEDriver.get_ParameterSet()
    

    The diagnostic A method body required at runtime was stripped from the ReadyToRun image is exactly the failure mode of crossgen2 IL-body stripping (--strip-il-bodies): the IL body of Crc64ParameterSet+ForwardCrc64.InitializeVectorized was removed from the R2R image on the assumption it was fully precompiled to native, but at runtime that native body is not present (the method is reached and its body is required). InitializeVectorized is a hardware-intrinsics vectorized path; on the mobile crossgen2 target the intrinsic path is likely not R2R-compiled (or is deferred to a runtime code path), yet its IL was still stripped, leaving no usable body and aborting the process.

    This is a crossgen2/R2R compiler+stripping consistency bug (a body that is not native-compiled for the target must not have its IL stripped), not a test defect and not a hashing-library bug. It reproduces on both the source build (finished 2026-07-10T09:02Z) and follow-up 1504386 (2026-07-11T09:01Z).

    Evidence

    Suggested reviewers / area contacts

    • Area owners (area-CodeGen-coreclr, crossgen2 / R2R IL-body stripping): @JulieLeeMSFT, @dotnet/jit-contrib.

    A fix would likely make crossgen2's IL-body stripping conservative for methods whose native code is not emitted for the target (e.g. intrinsic/vectorized paths on mobile), so their IL bodies are retained and available at runtime.

    Generated by CI Outer-Loop Failure Fixer · 299.1 AIC · ⊞ 18K · ◷

  2. dotnet-policy-service commented on Jul 14, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-io-hashing, @bartonjs, @vcsjones
    See info in area-owners.md if you want to be subscribed.

  3. dotnet-policy-service commented on Jul 15, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  4. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    and removed on Jul 15, 2026
  5. dotnet-policy-service commented on Jul 15, 2026

    @dotnet-policy-service
    Contributor

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

  6. adamsitnik commented on Jul 15, 2026

    @adamsitnik
    Member

    I've moved this issue to codegen area as the managed implementation was not changed in the last few months (#124832) and based on #130570 (comment) it seems to be related to R2R

  7. JulieLeeMSFT commented on Jul 15, 2026

    @JulieLeeMSFT
    Member
  8. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 15, 2026
  9. added this to the 11.0.0 milestone on Jul 15, 2026
  10. kotlarmilos commented on Jul 28, 2026

    @kotlarmilos
    Member

    Should be fixed in #124860

  11. JulieLeeMSFT commented on Jul 29, 2026

    @JulieLeeMSFT
    Member

    Should be fixed in #124860

    [Edit] I don't see a failure since 7/13 after the PR is merged. Closing as fixed.

  12. JulieLeeMSFT commented on Jul 29, 2026

    @JulieLeeMSFT
    Member
  13. locked and limited conversation to collaborators on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-iosApple iOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions