Skip to content

[CI] dotnet/MSBuild intermittently exits 139 during restore and truncates binlogs #26215

Open

Description

@dalexsoto

Additional info to collect

Copilot: please collect the following information for each occurrence of this issue:

  • Any crash reports for the crashed process. Upload them to the issue, or if that's not possible, create gists.
  • We have minidumps enabled for some parts of the build (DOTNET_DbgMiniDumpName); collect whether the crash created a minidump or not, and if so, a link to the artifact where the minidump was uploaded.

Failure signature

The dotnet process hosting MSBuild 18.9.3 (18.9.3+d88a8f149, SDK 10.0.400-preview.0.26360.120) intermittently exits with status 139 during the first second of project restore/evaluation:

Process dotnet exited with 139

The abrupt process death leaves the corresponding binlog truncated. Structured binlog analysis reports System.IO.EndOfStreamException: Unable to read beyond the end of the stream and a 0.0-second failed build.

Confirmed occurrences

PR / head Build and job Failing variation
#26200 / 966f7cc95666adf0926c09964990868e5f161864 14718622 - linker_tvos dont link/tvOS - simulator/Debug
#26202 / 1f6d35df981f18fd18fb67e70d4def97495f1daa 14718710 - interdependent-binding-projects interdependent-binding-projects/Mac Catalyst/Debug
#26204 / e91862693a70d34dfd66bcc1d6967fe986fb464b 14718779 - linker_macos link all/macOS/Debug

First observed: 2026-07-21 13:36 UTC. Latest observed: 2026-07-21 14:37 UTC. Recurrence: 3 jobs across 3 distinct monitored PRs.

Diagnosis and impact

This is nondeterministic CI infrastructure/tooling behavior rather than a source compilation failure:

  • It occurs in unrelated projects on tvOS, Mac Catalyst, and macOS.
  • The process dies during restore/evaluation before a product error is emitted.
  • Other variations in the same jobs complete successfully.
  • The only apparent binlog errors are consequences of the truncated stream.

Each occurrence fails an otherwise independent simulator-test job. The current workaround is to rerun failed jobs after confirming the PR is conflict-free and retry budgets permit it. The linked artifacts and task logs have limited retention.

Activity

  1. dalexsoto commented on Jul 21, 2026

    @dalexsoto
    MemberAuthor

    New affected PR: #26188 @ fc3b9163c9b6de1eee35029949ae395174253e51, build 14718729, job monotouch_maccatalyst. The NativeAOT restore ended with Process dotnet exited with 139; xharness then reported The Writer is closed or in error state while parsing the abruptly truncated log.

    Also observed in a second job on already-listed PR #26202: monotouch_maccatalyst, where MSBuild property evaluation exited 139. The signature now covers 5 jobs across 4 monitored PRs. Build 14718729 is still cancelling, so no retry has been requested.

  2. dalexsoto commented on Jul 21, 2026

    @dalexsoto
    MemberAuthor

    New affected PR: #26198 @ 0a8a95dd2f117727a1b51b46e043def81ca7664a, build 14720520, job xcframework. The iOS simulator build died during restore/evaluation with Process dotnet exited with 139, leaving the build log truncated.

    The signature now covers 6 jobs across 5 monitored PRs. Build 14720520 remains in progress, so no retry has been requested.

  3. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Two new exit-139 occurrences:

    The signature now covers 8 jobs across 6 monitored PRs. Both builds remain active, so no retry has been submitted; retained artifacts may expire.

  4. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    PR #26198 retry update: build 14720520 completed terminal, with no prior retries or equivalent build active. Simulator_tests attempt 2 was accepted at 00:34 UTC to rerun xcframework and introspection. Two separately counted stage requests were accepted for this PR; current budget is 2 lifetime / 2 on this head.

  5. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Retry outcome: merged PR #26204 build 14718779 simulator_tests attempt 2 completed successfully at 23:17 UTC. The previously exit-139 linker_macos job passed, and the overall build completed succeeded at 00:27 UTC.

  6. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Retry outcome: PR #26200 build 14718622 simulator_tests attempt 2 completed with the previously exit-139 linker_tvos job succeeding.

  7. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Retry outcome: PR #26202 build 14718710 simulator_tests attempt 2 completed successfully. The previously exit-139 interdependent-binding-projects and monotouch_maccatalyst jobs both passed; the overall build result is succeeded.

  8. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    PR #26168 build 14720939 is now terminal, but no retry was submitted for the exit-139 dotnettests_ios job. Known same-head build 14719254 is omitted from retained build-list history and its saved timeline is empty, so lifetime/head retry counters cannot be established safely.

  9. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome: merged PR #26198 build 14720520 simulator_tests attempt 2 completed successfully. The previously exit-139 xcframework job passed, the overall build succeeded, and the PR merged at 01:43 UTC.

  10. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    New affected PR: #26208 @ 34b9f4d4972752561d6769b7f1ef0fbe276e049c, build 14718968, simulator_tests attempt 2 job monotouch_ios. The Release NativeAOT variation died during restore/evaluation with Process dotnet exited with 139.

    The signature now covers 9 jobs across 7 monitored PRs. Attempt 3 was accepted at 02:22 UTC to rerun monotouch_ios; reconciled budget is 3 lifetime/current-head retries.

  11. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    External retry update: Azure simulator_tests attempt 2 became active around 05:34 UTC for PR #26168 build 14720939 and PR #26188 build 14720595, rerunning their previously recorded exit-139 jobs. No retry was initiated by this monitor.

  12. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    MemberAuthor

    External retry outcome: PR #26168 build 14720939 simulator_tests attempt 2 completed successfully. The previously exit-139 dotnettests_ios job passed, and the overall build succeeded.

  13. added
    ci-failure
    tests
    ci-postmortem
    on Jul 22, 2026
  14. 16 remaining items

  15. dalexsoto commented on Aug 5, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome for PR #26281 at f378d9af657ed0bd6d723ae51b8fd539b6e9d514:

    The canonical count remains 16 confirmed jobs across 14 PRs. No source change was needed, no Additional info to collect checklist is present, and artifacts are retention-limited.

  16. dalexsoto commented on Aug 6, 2026

    @dalexsoto
    MemberAuthor

    New occurrence of dotnet-msbuild-exit-139-truncated-binlog (CI infrastructure failure):

    • PR [docs] Improve XML docs for ten types #26419, head b976dc4b4588ea7bbd89dc1fcc753ac72a5e3b36
    • Azure run 14894822, attempt 1, job T: monotouch_macos on AcesShared 36
    • monotouch-test/macOS/Debug exited during restore/evaluation after about one second: Process dotnet exited with 139, using SDK 10.0.400-preview.0.26381.105; no product diagnostic was emitted
    • The 171 KB binlog is truncated; Structured Log parsing reports EndOfStreamException
    • Recurrence: 15 distinct PRs / 17 confirmed occurrences

    Checklist for this occurrence:

    • Crash report: none produced. XHarness reported Found 0 crash reports in DiagnosticReports; the retained CrashReports container has no simulator-test archive, and its Build archive contains only unrelated historical git reports.
    • Minidump: none observed. The task log contains no DOTNET_DbgMiniDumpName, createdump, or minidump message, and no dump artifact was published.

    Rolf’s external /azp run started replacement package run 14896441, simulator run 14896448, and API-diff run 14896450. This is counted as one accepted retry request; all three runs are currently active without failed timeline records. No monitor-initiated retry was submitted.

  17. dalexsoto commented on Aug 7, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome for PR #26419 at b976dc4b4588ea7bbd89dc1fcc753ac72a5e3b36, following the original run 14894822 / T: monotouch_macos exit-139 occurrence:

    • The first external replacement request had successful package 14896441 and API-diff 14896450 runs. Simulator 14896448 hit an unrelated HttpListenerException: Address already in use in BasicAuthWorksWhenBearerIsAdvertisedFirst, then ended canceled.
    • The second external replacement request succeeded: package 14897798, simulator 14897802, and API diff 14897803. The simulator run completed with all 38 jobs successful; exit 139 did not recur.
    • PR [docs] Improve XML docs for ten types #26419 merged at 2026-08-06T23:42:18Z. Retry accounting is 2 PR-lifetime / 2 current-head requests; the monitor initiated neither request.

    Checklist for the original occurrence remains resolved: no relevant crash report was produced, and no minidump was observed or published. The stable signature remains classified as a CI infrastructure failure. The canonical count is unchanged at 15 distinct PRs / 17 confirmed occurrences; no source change was needed for this failure, and artifacts are retention-limited.

  18. dalexsoto commented on Aug 12, 2026

    @dalexsoto
    MemberAuthor

    New confirmed occurrence of dotnet-msbuild-exit-139-truncated-binlog (CI infrastructure failure):

    Checklist:

    • Crash report: none found. XHarness reported Found 0 crash reports in DiagnosticReports; the CrashReports artifact contains no contemporaneous dotnet report, only unrelated or older reports.
    • Minidump: creation status unavailable. The task log has no DOTNET_DbgMiniDumpName, createdump, or minidump message, and no dump artifact/file was published.
    • Binlog: no binlog associated with this failed property evaluation was present in the monotouch_macos binlog artifact.

    The canonical recurrence is now 16 distinct PRs / 18 confirmed occurrences. No source change is indicated; artifacts are retention-limited.

  19. dalexsoto commented on Aug 12, 2026

    @dalexsoto
    MemberAuthor

    Retry update for the #26437 exit-139 occurrence at 1ba08d58e975bef475f11fa1321ed68864577599:

    • Azure accepted one failed-jobs retry request for build 14945482.
    • Only T: monotouch_macos is rerunning as attempt 2; it is currently pending under Simulator tests attempt 2.
    • Retry accounting is 1 PR-lifetime / 1 current-head retry. No equivalent retry will be submitted while attempt 2 is active.

    The canonical count remains 16 distinct PRs / 18 confirmed occurrences. The original occurrence checklist remains resolved: no contemporaneous crash report was found, and minidump creation was unavailable because no dump configuration, message, file, or artifact was present.

  20. dalexsoto commented on Aug 12, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome for the #26437 exit-139 occurrence at 1ba08d58e975bef475f11fa1321ed68864577599:

    • T: monotouch_macos attempt 2 in build 14945482 completed successfully.
    • The full simulator build completed successfully; exit 139 did not recur.
    • Retry accounting remains 1 PR-lifetime / 1 current-head retry.

    The canonical count remains 16 distinct PRs / 18 confirmed occurrences. The original checklist remains resolved: no contemporaneous crash report was found, and minidump creation was unavailable because no dump configuration, message, file, or artifact was present. No source change was needed.

  21. dalexsoto commented on Aug 12, 2026

    @dalexsoto
    MemberAuthor

    New confirmed occurrence of dotnet-msbuild-exit-139-truncated-binlog (CI infrastructure failure):

    Checklist:

    • Crash report: none found. XHarness reported 0 crash reports in DiagnosticReports; no contemporaneous dotnet report was identified.
    • Minidump: creation status unavailable. No DOTNET_DbgMiniDumpName or minidump message appeared, and no dump artifact/file was published.

    The canonical recurrence is now 17 distinct PRs / 19 confirmed occurrences. A targeted failed-jobs retry is being submitted through the Azure DevOps API; accounting before acceptance is 0 lifetime / 0 current head.

  22. dalexsoto commented on Aug 12, 2026

    @dalexsoto
    MemberAuthor

    Retry outcome for the #26438 exit-139 occurrence at 1c46ed7045bad084f46a529392b8d6ccf1fdb64b:

    • T: linker_maccatalyst attempt 2 in build 14946633 completed successfully; exit 139 did not recur.
    • The shared retry request remains active because T: monotouch_ios attempt 2 is still running.
    • Retry accounting remains 1 PR-lifetime / 1 current-head retry.

    The canonical count remains 17 distinct PRs / 19 confirmed occurrences. The original checklist remains resolved: no contemporaneous crash report was found, and minidump creation was unavailable because no dump configuration, message, file, or artifact was present.

  23. dalexsoto commented on Aug 28, 2026

    @dalexsoto
    MemberAuthor

    New confirmed occurrence of dotnet-msbuild-exit-139-truncated-binlog on PR #26476 @ 5d1628a83c57feb0d77b59b0eda84903099b6ab5:

    • Build 15118903 attempt 1 / T: linker_macos ran on AcesShared 78.
    • The dont link/macOS/Debug app build launched SDK 10.0.400-preview.0.26381.105; dotnet exited 139 during initial restore/evaluation without a product diagnostic.
    • The 114 KiB binlog is truncated. Structured analysis reports EndOfStreamException, a 0.0-second failed build, and no actionable MSBuild error.
    • Classification: CI infrastructure failure; this is the exact canonical signature.

    The reconciled canonical total is now 18 distinct monitored PRs / 20 confirmed occurrences.

    External linker_macos attempt 2 ran on AcesShared 15 and succeeded at 2026-08-28T09:23:58Z; exit 139 did not recur. Build 15118903 completed successfully at 09:28:15Z.

    PR retry accounting remains 2 lifetime / 2 current-head requests; the other request also succeeded after rerunning the independent Ventura failures.

    Additional info to collect

    • Crash report: unavailable. The retained CrashReports container has no linker_macos simulator archive, and the HtmlReport contains no contemporaneous crash or dump entry for this dotnet process.
    • Minidump: unavailable. The task log contains no DOTNET_DbgMiniDumpName or createdump message, and no dump file or dump artifact was published.
  24. dalexsoto commented on Aug 28, 2026

    @dalexsoto
    MemberAuthor

    New confirmed occurrence of dotnet-msbuild-exit-139-truncated-binlog on PR #26478 @ 29ca5cf87e23e87c375f89feff28b9a6a19847ed:

    • Build 15130599 attempt 1 / T: linker_tvos ran on AcesShared 67.
    • The dont link/tvOS - simulator/Debug app build launched SDK 10.0.400-preview.0.26381.105; dotnet exited 139 during initial restore/evaluation without a product diagnostic.
    • The 144,211-byte binlog is truncated. Structured analysis reports EndOfStreamException, a 0.0-second failed build, and no actionable MSBuild error.
    • Classification: CI infrastructure failure; this is the exact canonical signature and occurred before the PR's Runtime source could compile.

    The reconciled canonical total is now 19 distinct monitored PRs / 21 confirmed occurrences.

    Build 15130599 completed failed at 2026-08-28T11:01:44Z with no other root. After refreshing the unchanged MERGEABLE head, all eight retained runs and timelines, retry budgets, and active equivalents, the monitor submitted one failed-jobs request. linker_tvos attempt 2 started at 11:04:55Z on AcesShared 5 and is active.

    Retry accounting is 1 lifetime / 1 current head.

    Additional info to collect

    • Crash report: unavailable. The retained CrashReports container has no linker_tvos simulator archive, and the HtmlReport contains no contemporaneous crash or dump entry for this dotnet process.
    • Minidump: unavailable. The task log contains no DOTNET_DbgMiniDumpName or createdump message, and no dump file or dump artifact was published.
  25. dalexsoto commented on Aug 28, 2026

    @dalexsoto
    MemberAuthor

    Final retry outcome for PR #26478 @ 29ca5cf87e23e87c375f89feff28b9a6a19847ed:

    • linker_tvos attempt 2 succeeded on AcesShared 5 at 2026-08-28T12:36:59Z; exit 139 did not recur.
    • Simulator tests succeeded at 12:37:08Z, Publish Test Results succeeded at 12:41:43Z, and build 15130599 completed successfully at 12:41:44Z.
    • Retry accounting remains 1 PR-lifetime / 1 current-head request.

    The canonical count remains 19 distinct monitored PRs / 21 confirmed occurrences.

    The original checklist remains resolved: no contemporaneous dotnet crash report was published, and no minidump configuration, message, file, or artifact was observed.

  26. dalexsoto commented on Sep 2, 2026

    @dalexsoto
    MemberAuthor

    New confirmed occurrence on PR #26542 @ 58fe2ff1bd500bbf593da8150f8abb42f44ffca3:

    • Build 15186472 attempt 1, T: monotouch_maccatalyst / Run tests ran on AcesShared 57.
    • The Mac Catalyst Debug managed-static build launched SDK 10.0.400-preview.0.26381.105 / MSBuild 18.9.6+6e38c59c5. During the first 1.63 seconds of restore/evaluation, dotnet exited 139 before product compilation.
    • The abruptly truncated output caused the secondary xharness diagnostic failed to parse the logs: The Writer is closed or in error state. Fifteen sibling configurations passed.
    • Classification: CI infrastructure / intermittent dotnet-MSBuild process crash. This is unrelated to the beta-Xcode API-diff baselines or the package versions being validated.

    The reconciled canonical total is now 20 distinct monitored PRs / 22 confirmed occurrences.

    Build 15186472 remains active, so no retry has been submitted. Any retry requires a terminal run, unchanged conflict-free head, reconciled counters, and no equivalent active attempt.

    Additional info to collect

    • Crash report: unavailable. The published CrashReports artifact contains only Build and macOS-lane archives; it has no simulator-tests or monotouch_maccatalyst report for this dotnet process. The HtmlReport also contains no relevant .ips or .crash file.
    • Minidump: unavailable. The logs contain no DOTNET_DbgMiniDumpName or createdump message. The targeted Catalyst artifact contains binlogs only, with no .dmp, core, or dump file, and no dump artifact was published.
  27. dalexsoto commented on Sep 2, 2026

    @dalexsoto
    MemberAuthor

    Retry update for PR #26542 @ 58fe2ff1bd500bbf593da8150f8abb42f44ffca3:

    • Build 15186472 completed attempt 1 failed with the dotnet/MSBuild exit-139 occurrence documented above and the separately tracked [CI] Ventura Show Bot Info stalls until the 120-minute job timeout #26457 Ventura timeout.
    • After refreshing the unchanged conflict-free head, terminal run, sole automatic build, stage attempts, active equivalents, and retry counters, the monitor requested Rerun failed jobs for simulator_tests.
    • Azure accepted the request and created simulator stage attempt 2 at 2026-09-02T21:01:16Z; only T: monotouch_maccatalyst is being rerun.
    • Retry usage is 2 lifetime / 2 for this head, including the separately accepted Ventura stage retry.

    The occurrence-specific checklist remains resolved: no relevant crash report or minidump was published. The retry outcome will be reported when attempt 2 becomes terminal.

  28. dalexsoto commented on Sep 2, 2026

    @dalexsoto
    MemberAuthor

    Retry outcome for PR #26542 @ 58fe2ff1bd500bbf593da8150f8abb42f44ffca3:

    • T: monotouch_maccatalyst attempt 2 succeeded on AcesShared 1, running from 2026-09-02T21:01:16Z to 22:04:58Z.
    • Simulator stage attempt 2 completed successfully at 22:05:02Z.
    • The dotnet/MSBuild exit-139 restore crash and truncated-log parser failure did not recur.
    • Retry accounting remains 2 lifetime / 2 for this head, including the separately active Ventura retry.

    The canonical count remains 22 confirmed occurrences across 20 PRs. The occurrence-specific checklist remains resolved: no relevant crash report or minidump was published for attempt 1.

  29. dalexsoto commented on Sep 3, 2026

    @dalexsoto
    MemberAuthor

    Final PR outcome for #26542 at head 58fe2ff1bd500bbf593da8150f8abb42f44ffca3:

    • The PR merged at 2026-09-03 05:29:01 UTC after simulator attempt 2 cleared the dotnet/MSBuild exit-139 restore crash and the full CI run later succeeded.
    • Canonical count remains 22 confirmed occurrences across 20 PRs; retry accounting for the PR remains 4 lifetime / 4 head across all retry scopes.

    Additional info to collect for the matching attempt-1 occurrence:

    • Crash report: unavailable. No relevant simulator/Catalyst dotnet crash report was published.
    • Minidump: unavailable. No minidump configuration/message, dump file, or dump artifact was present.
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

    ci-failureci-postmortemtests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions