Skip to content

Commit

Permalink
Fix AV error in DAC on Linux/MacOS - issue dotnet#109877 (dotnet#110557)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikem8361 authored Dec 10, 2024
1 parent c9148c8 commit f0e1d7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/coreclr/debug/daccess/request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,11 @@ HRESULT ClrDataAccess::GetMethodDescData(
{
ILCodeVersion activeILCodeVersion = pCodeVersionManager->GetActiveILCodeVersion(pMD);
activeNativeCodeVersion = activeILCodeVersion.GetActiveNativeCodeVersion(pMD);
if (activeNativeCodeVersion.IsNull())
{
// This is caught below and S_OK is returned
DacError(E_ACCESSDENIED);
}
}
CopyNativeCodeVersionToReJitData(
activeNativeCodeVersion,
Expand Down

0 comments on commit f0e1d7b

Please sign in to comment.