[ci-scan] Hang: dotnet-dump opening macOS x64 Mach-O dumps

Ouverte
#137,115 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
csharp, macos

Piste de recherche

The issue identifies the Mach-O parser regression in ClrMD, introduced by microsoft/clrmd#1523 and brought into diagnostics through dotnet/diagnostics#6191. Start by reading those changes and the SOS replay; the failure occurs while opening a macOS x64 dump, when LC_THREAD alignment padding is treated as another thread-state header. Done means dotnet-dump opens the dump and the affected SOS tests emit their startup marker.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

area-Diagnostics-cdac blocking-clean-ci disabled-test Known Build Error

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1668244
Build error leg or test failing: runtime-diagnostics osx-x64 release SOS and SOS_EnumMemory - SOS.Tests
Pull request: https://github.com/dotnet/runtime/pull/137102

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

System.InvalidOperationException : Dump session command failed:
Host=DotnetDump
Flavor=Core
CoreVersion=Net11
Dac=Legacy or CDac
HostRuntime=Managed
---- System.TimeoutException : dotnet-dump did not return output for '<startup>' within 00:02:00.

Captured dotnet-dump startup output:
Loading core dump: ...
Truncated Mach-O thread state header.

The failure occurs before DAC selection and affects both the Legacy DAC and cDAC configurations. The SOS replay shows that dotnet-dump fails while opening the Mach-O dump, then does not emit the test harness startup marker.

The regression was introduced by microsoft/clrmd#1523 and flowed into diagnostics through dotnet/diagnostics#6191. The updated parser treats the required four-byte alignment padding at the end of the x64 LC_THREAD command as another thread-state header. Runtime's dump writer intentionally includes this padding because 64-bit Mach-O load commands must be eight-byte aligned.

The same failure reproduces on unrelated runtime PRs, including #137103. A runtime-diagnostics build using diagnostics commit 93559c0 passed; builds using diagnostics after the ClrMD dependency update fail the macOS x64 SOS legs.

Error Message

{
  "ErrorMessage": "System.TimeoutException : dotnet-dump did not return output for '<startup>' within 00:02:00.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)

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

[!NOTE]
This issue was generated with the assistance of GitHub Copilot.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1668244
Error message validated: [System.TimeoutException : dotnet-dump did not return output for '<startup>' within 00:02:00.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/6/2026 10:45:00 PM UTC

Report
Build Repository Test Pull Request
1669708 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136983
1669572 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136973
1669329 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136973
1669356 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136770
1668891 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136983
1668842 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution
1668771 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137119
1668753 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137103
1668641 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137113
1668662 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137112
1668670 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137114
1668609 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137102
1668541 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136611
1668469 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136973
1668491 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136983
1668480 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#136770
1668393 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137108
1668244 dotnet/runtime SOS_osx-x64_Release-Net11.WorkItemExecution dotnet/runtime#137102
Summary
24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 18 18
Langage dominant
C#
Étoiles
18.4k
Forks
5.8k
Merge moyen
2 j 19 h
PR mergées (30 j)
590

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de dotnet/runtime

Toutes les issues de dotnet/runtime

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.