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

Đang mở
#137,115 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp, macos

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C#
Star
18.4k
Fork
5.8k
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
590

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/runtime

Tất cả issue của dotnet/runtime

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.