Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Return cDAC-specific HRESULTs from dbgshim cDAC failures - #6266

Open
rcj1 wants to merge 3 commits into
dotnet:mainfrom
rcj1:dev/rachel/cdac-hresults
Open

rcj1 wants to merge 3 commits into
dotnet:mainfrom
rcj1:dev/rachel/cdac-hresults

Conversation

@rcj1

@rcj1 rcj1 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Add CDAC_E_DESCRIPTOR_NOT_FOUND (mirrors CdacHResults) to dbgshim.h and return it when the runtime module doesn't export DotNetRuntimeContractDescriptor. OpenDataAccessProcess now propagates the descriptor failure and reports CORDBG_E_DEBUG_COMPONENT_MISSING when the cDAC binary is missing, instead of a generic E_FAIL.

Add CDAC_E_DESCRIPTOR_NOT_FOUND (mirrors CdacHResults) to dbgshim.h and
return it when the runtime module doesn't export DotNetRuntimeContractDescriptor.
OpenDataAccessProcess now propagates the descriptor failure and reports
CORDBG_E_DEBUG_COMPONENT_MISSING when the cDAC binary is missing, instead
of a generic E_FAIL.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 25f5f771-28fa-4d97-a937-ff9a077922c0
@rcj1
rcj1 requested a review from a team as a code owner November 18, 2026 23:56
@rcj1 rcj1 self-assigned this Nov 18, 2026
@rcj1
rcj1 requested review from hoyosjs and max-charlamb November 18, 2026 23:56
Comment thread src/dbgshim/debugshim.cpp Resolved
Comment thread src/dbgshim/debugshim.cpp Resolved
Comment thread src/dbgshim/dbgshim.h Resolved
Check cDAC file attributes before data-access activation and assert the missing-component HRESULT in load-policy tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4c06b1b6-0dc6-4cf7-8744-0a0db7a44626
@hoyosjs

hoyosjs commented Nov 20, 2026

Copy link
Copy Markdown
Member

Does this still return a cDAC not detected for an 8 runtime? That wasn't the original intention. It specifically returned the not impl code to fallback to non-cdac codes for older runtimes for backwards compat.

@rcj1

rcj1 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Does this still return a cDAC not detected for an 8 runtime? That wasn't the original intention. It specifically returned the not impl code to fallback to non-cdac codes for older runtimes for backwards compat.

Yes, it does return cDAC not detected for older runtimes. I didn’t consider the back compat, I was trying to make sure we got a cDAC error whenever we tried and failed to load the cDAC.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a206abc8-e459-4ebd-afc0-fa4ebfbfa7b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants