Could not find matching DAC for process on macOS after switching to ClrMD 2.1
k15tfu opened this issue · 0 comments
Hi! After upgrading to ClrMD >= 2.1 (specifically #999), ClrInfo.CreateRuntime()
cannot find DAC for .NET 7 app on macOS ARM64 with the following error Debugging a 'OSX' crash is not supported on 'OSX'
:
clrmd/src/Microsoft.Diagnostics.Runtime/ClrInfo.cs
Lines 526 to 528 in d818d14
ClrInfo.DebuggingLibraries
is empty because all of ClrInfo.IndexTimeStamp
, ClrInfo.IndexFileSize
, ClrInfo.BuildId
are zero/empty as well:
clrmd/src/Microsoft.Diagnostics.Runtime/ClrInfo.cs
Lines 99 to 105 in d818d14
and therefore nothing is added:
clrmd/src/Microsoft.Diagnostics.Runtime/ClrInfo.cs
Lines 145 to 161 in d818d14
As far as I can see, MacOSProcessDataReader.EnumerateModules()
doesn't grab the UUID or provide MachOModule
(passed as null
) when creating MachOModuleInfo
:
Can we do create MachOModuleInfo
here similarly as it's done on Linux in LinuxLiveDataReader
? cc @leculver
.NET 7.0.7
macOS ARM64