Skip to content

[iOS][CoreCLR] System.Runtime.Tests Smoke crashes on launch with CODESIGNING / Invalid Page on iOS 26.1 device #127863

Closed

Description

@kotlarmilos

Note

This issue was drafted with assistance from GitHub Copilot.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1409468
Build error leg or test failing: Build ios-arm64 Release AllSubsets_CoreCLR_Smoke → Helix work item System.Runtime.Tests
Pull Request: N/A (also reproduced on main)

Error Message

Work item System.Runtime.Tests in job <guid> has failed.
xharness exit code: 80 (APP_CRASH)
Application test run crashed
App terminated due to signal 9

Crash report (from .ips)

"exception": {
  "type": "EXC_BAD_ACCESS",
  "signal": "SIGKILL",
  "subtype": "KERN_PROTECTION_FAILURE at 0x0000000000000000",
  "codes": "0x0000000000000002, 0x0000000000000000"
},
"termination": {
  "namespace": "CODESIGNING",
  "indicator": "Invalid Page",
  "code": 2
},
"os_version": "iPhone OS 26.1 (23B85)"

The app prints test runner header / configured filters / loaded assembly, then is killed within ~50ms by the kernel for a CODESIGNING / Invalid Page violation. This signature is consistent with the kernel killing the process when CoreCLR tries to execute freshly mapped JIT memory under the iOS 26 jit-restrict regime.

Reproductions

Helix queue: osx.15.amd64.iphone.open
Test asset: System.Runtime.Tests (CoreCLR Smoke on iOS device)

Failure category

InfrastructureError reported by Helix; the iOS device kernel kills the app on launch with CODESIGNING / Invalid Page.

Proposed fix

  1. Investigate JIT memory protection on iOS 26.1: confirm whether CoreCLR is using MAP_JIT / W^X correctly when allocating executable pages on this OS version. dotnet/runtime#108423 already tracks adopting the new Apple JIT APIs.
  2. If a runtime fix is not immediate, add [ActiveIssue] for the affected tests on IsAppleMobile && IsCoreCLR (currently CoreCLR Smoke is the only set running) until JIT page handling is fixed.
  3. Re-evaluate after Helix queue and Apple SDK updates land (dotnet/runtime#119808).

Related

Error column (for Build Analysis matching)

System.Runtime.Tests

Known issue core information

{
  "ErrorMessage": "Application test run crashed",
  "BuildRetry": false,
  "ErrorPattern": "CODESIGNING.*Invalid Page",
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1409468
Error message validated: [CODESIGNING.*Invalid Page]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 5/6/2026 1:01:51 PM UTC

Activity

  1. added
    blocking-clean-ci
    os-ios
    Known Build Error
    on May 6, 2026
  2. added
    untriaged
    on May 6, 2026
  3. dotnet-policy-service commented on May 6, 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. dotnet-policy-service commented on May 6, 2026

    @dotnet-policy-service
    Contributor

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

  5. removed
    untriaged
    on May 6, 2026
  6. locked and limited conversation to collaborators on Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Errorarch-arm64area-VM-coreclrblocking-clean-cios-ios

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions