Skip to content

CoreCLR Debugging and CoreCLR/Mono EventPipe Doesn't Work On OSX With Sandbox Enabled #94114

Open
@brianrob

Description

@brianrob

Description

Construction of the IPC channel fails for applications on OSX that run inside of the sandbox. This results in failures when using any IPC channel-based diagnostic commands (e.g. dotnet-trace).

Reproduction Steps

  1. Build a MAUI application targeting OSX.
  2. Enable execution in the sandbox.
  3. Build and sign the package.
  4. Start the application.
  5. Run dotnet-trace collect -p <pid>

Expected behavior

dotnet-trace is able to attach to the application and capture a trace.

Actual behavior

dotnet-trace isn't able to connect to the application because the diagnostic IPC channel doesn't exist.

Regression?

No response

Known Workarounds

Disable the sandbox by re-compiling the application.

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions