You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code does not seem to work on a dotnet project out of the box.
using DataTarget dataTarget = DataTarget.AttachToProcess(Process.GetCurrentProcess().Id, true);
Fails with
Unhandled exception. Microsoft.Diagnostics.Runtime.ClrDiagnosticsException: Could not attach to process 55656, errno: 1
at Microsoft.Diagnostics.Runtime.MacOS.MacOSProcessDataReader..ctor(Int32 processId, Boolean suspend)
at Microsoft.Diagnostics.Runtime.DataTarget.AttachToProcess(Int32 processId, Boolean suspend)
at Program.Main() in /Users/n8ta/SIG8/test_app/Program.cs:line 41
I have a repro project here https://github.com/n8ta-msft/clrmd-repro for arm64 macOS.
I suspect I need to sign with some specific entitlements but I have not been able to figure out which.
The text was updated successfully, but these errors were encountered:
The problem might really be that the MacOSProcessDataReader will use ptrace given suspend: true. See https://lkml.org/lkml/2006/8/31/24. The scenario has been reported as largely affecting self-diagnostic ptrace, but the change was intentional. The change is old enough it's likely to have been ported to the ptrace implementation that macOS uses.
This code does not seem to work on a dotnet project out of the box.
Fails with
I have a repro project here https://github.com/n8ta-msft/clrmd-repro for arm64 macOS.
I suspect I need to sign with some specific entitlements but I have not been able to figure out which.
The text was updated successfully, but these errors were encountered: