Skip to content

CI failure on iOS: test process was killed because of OS_REASON_CODESIGNING #127867

Description

@svick

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1409132
Build error leg or test failing: System.Runtime.Tests.WorkItemExecution
Pull request: #127503

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

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

{
  "ErrorMessage": "The app 'net.dot.System.Runtime.Tests' terminated with signal 9",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

System logs for the run contain the following lines:

launchd: [user/501/UIKitApplication:net.dot.System.Runtime.Tests[2d42][rb-legacy] [27597]:] exited with exit reason (namespace: 3 code: 0x2) - OS_REASON_CODESIGNING, ran for 365ms
SpringBoard: (RunningBoardServices) [com.apple.runningboard:process] Firing exit handlers for 27597 with context <RBSProcessExitContext| specific, status:<RBSProcessExitStatus| domain:codesigning(3) code:invalid-page(2)>>
Copilot's analysis of the logs

the cause is a code-signing failure.

Test log evidence

  • The app runs only ~365 ms before App terminated due to signal 9 — too fast for a memory/jetsam kill.

Device system log (device-DNCENGOSX118-...log) — the smoking gun The kernel killed the process for a code-signing reason, not OOM:

 line 10470: launchd: ... exited with exit reason (namespace: 3 code: 0x2) - OS_REASON_CODESIGNING, ran for 365ms
 line 10552: SpringBoard: ... <RBSProcessExitStatus| domain:codesigning(3) code:invalid-page(2)>
 line 10555: FrontBoard: ... [app<net.dot.System.Runtime.Tests>:27597] Process exited: ... codesigning(3) code:invalid-page(2)

codesigning / invalid-page means the kernel tried to validate a page of the app's mach-o at runtime and found a hash mismatch against the embedded code signature — the kernel responds with SIGKILL. (Note: jetsam priority was just set to 100 with a 2098 MB soft limit; no jetsam/memorystatus kill events appear for pid 27597.)

Mac host system log (macos.system.log) — the likely upstream cause A few seconds before the launch, the host ran codesign and trust evaluation produced repeated failures:

 14:06:57.117–.120  codesign[43362]: CSSM Exception: -2147409622 CSSMERR_TP_NOT_TRUSTED  (×8)
 14:06:57.121       codesign[43362]: open(/private/var/db/DetachedSignatures) - No such file or directory

CSSMERR_TP_NOT_TRUSTED means the signing identity's trust chain didn't validate during the (re)sign step. Combined with the device-side invalid-page exit, this strongly points to the app being signed with an untrusted/broken signing identity (or the resign step producing a corrupt signature), so the iOS kernel rejected pages of the binary as soon as they were paged in and killed the process.

Bottom line: The test wasn't killed for memory or test-runner reasons. It was killed by the iOS kernel's code-signing enforcement (OS_REASON_CODESIGNING / invalid-page), most likely caused by the failing/untrusted codesign step seen on the Mac host (CSSMERR_TP_NOT_TRUSTED) right before the launch. Fixing the signing identity / provisioning on the Mac should resolve it.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1409132
Error message validated: [The app 'net.dot.System.Runtime.Tests' terminated with signal 9]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/6/2026 2:49:36 PM UTC

Report

Build Definition Test Pull Request
1411766 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127891
1410611 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127762
1411730 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127894
1411702 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127050
1411616 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127882
1411610 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127228
1411521 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127871
1411516 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127134
1411526 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126520
1411441 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127893
1411424 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126569
1411398 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127845
1411383 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127896
1411215 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127882
1411360 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127450
1411351 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127891
1410358 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127795
1411320 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1411295 dotnet/runtime System.Runtime.Tests.WorkItemExecution #125256
1411221 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127848
1411262 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127890
1411269 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127871
1411245 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127483
1411158 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1411161 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127889
1409618 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127256
1411152 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126552
1411140 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126520
1411108 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127888
1411129 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127228
1411044 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127885
1411065 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127884
1411072 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127845
1411060 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127882
1411024 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127883
1411047 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127886
1411000 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126324
1411016 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127864
1411010 dotnet/runtime System.Runtime.Tests.WorkItemExecution #125895
1410856 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127878
1410970 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127840
1410933 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126552
1410999 dotnet/runtime System.Runtime.Tests.WorkItemExecution
1410918 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127810
1410943 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127844
1410884 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126553
1410871 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127281
1410900 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127877
1410849 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127578
1410665 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127328
1410843 dotnet/runtime System.Runtime.Tests.WorkItemExecution #125895
1410778 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127875
1410798 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127134
1410761 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127694
1410150 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127751
1409132 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127503
1410675 dotnet/runtime System.Runtime.Tests.WorkItemExecution #100729
1410653 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127868
1410644 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127559
1410620 dotnet/runtime System.Runtime.Tests.WorkItemExecution #125436
1410635 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127853
1410597 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127864
1409729 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127823
1409055 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127806
1410507 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127861
1410435 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127862
1410474 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127228
1410464 dotnet/runtime System.Runtime.Tests.WorkItemExecution #126351
1410443 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127368
1410331 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127454
1409473 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127810
1409360 dotnet/runtime System.Runtime.Tests.WorkItemExecution #127659

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
70 72 72

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Infrastructureblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-iosApple iOSuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions