Add CI coverage for the exported CLRMA `!analyze` path (dbgeng, out of command scope)
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- cpp
- Lĩnh vực
- devtools, testing-qa
Hướng nghiên cứu
Xem xét Microsoft.Diagnostics.DebugServices.UnitTests.csproj và ConfigFiles/Windows/Debugger.Tests.Config.txt, sau đó kiểm tra ClrmaTests và BangAnalyzeTests cùng với issue #3111. Đánh giá việc bật một debugger có khả năng sử dụng ext.dll hoặc sử dụng một native harness để gọi CLRMACreateInstance và AssociateClient mà không có command scope. Được xem là hoàn tất khi CI thực thi đường dẫn out-of-command-scope thực tế và ngăn crash g_Ext*-null.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
PR #5946 fixed a crash on the native (non-hosted) CLRMA path where the exported CLRMACreateInstance (invoked by dbgeng !analyze via ext!CLRMACreateCached) borrowed command-scoped g_Ext* debugger globals that are null outside a !command. Regression originated in #4667.
That PR added coverage that exercises the fixed native Target/DataTarget/Runtime object graph via !clrma under cdb with !SetHostRuntime -none. However, this does not reproduce the original crash, because the !clrma command runs in command scope (INIT_API_EXT() -> ExtQuery populates g_Ext* for the command's duration). The only trigger that runs outside command scope is dbgeng's !analyze, which we cannot exercise in CI today.
Why !analyze can't be tested in CI currently
- No
ext.dllin the test debugger package. Thecdb-sospackage (10.0.26100.1) used by the tests ships onlydbgcore/dbgeng/dbghelp/DbgModel/symsrv- noext.dll, so!analyzefails with "No export analyze found".DbgEngPathinMicrosoft.Diagnostics.DebugServices.UnitTests.csprojpoints at this same package. TestDbgEngharness is disabled. The<TestDbgEng>true</TestDbgEng>config blocks inConfigFiles/Windows/Debugger.Tests.Config.txtare commented out (tracked by #3111), soClrmaTests/BangAnalyzeTests(the only harness that issues!analyze) don't run in CI.
Ask
Add a test that drives CLRMA through the real out-of-command-scope entry point so the exact g_Ext*-null crash path is gated in CI. Options to evaluate:
- Provide an
ext.dll-capable debugger in the test assets (or a minimal harness) and re-enable a scopedTestDbgEngconfiguration (see #3111) so!analyze -vcan run against a managed crash dump. - Alternatively, add a small native test harness that calls the exported
CLRMACreateInstance+AssociateClientdirectly with no active command (mirroringext!CLRMACreateCached), asserting no fault when the command-scoped globals are null.
References
- Fix: #5946
- Regression origin: #4667
- Related disabled harness: #3111
- Ngôn ngữ chính
- C++
- Star
- 1.3k
- Fork
- 407
- Merge trung bình
- 21 giờ 5 phút
- Pull request đã merge (30 ngày)
- 78
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/diagnostics
-
Fix StackAndOtherTests.script line number verification for .NET 11 and Windows x64Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dotnet/diagnostics#5884 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
dotnet/diagnostics#6225 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
dotnet/diagnostics#6213 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Isolate SOS hosting from other debugger extensions that use managed codeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
dotnet/diagnostics#6207 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Known Build Error
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
dotnet/diagnostics#6190 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/diagnostics
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AutoHotkey/AutoHotkey#380 ·
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Lua File: add readWhole()Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
grumpycoders/pcsx-redux#2667 ·
-
GCC 15.2: -Wcast-qual warning - cast discards const qualifier from pointer target type (H5trace.c)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
google/tensorstore#305 ·