Skip to content

[macOS] task_for_pid failing with 0x5 #1034

Open
@adamsitnik

Description

@adamsitnik

I've ported BenchmarkDotNet from ClrMd v1 to v2 hoping that it's going to give us macOS support (dotnet/BenchmarkDotNet#1499).

When I try to attach to the process using DataTarget.AttachToProcess I am getting following error:

task_for_pid failed with status code 0x5

I googled a bit and it seems that I need to sign the app to be able to use this API and also run as root?

Is that true (the first article is from 2010)? Is there no easier way to get it working?

cc @leculver @nxtn @mfilippov

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions