Skip to content

Getting command line via diagnostic pipe GetProcessInfo command during suspension only reports process name #59439

@jander-msft

Description

@jander-msft

Description

On a non-Windows platform, while a runtime instance is suspended, issuing the GetProcessInfo command on the diagnostic pipe will only return the process name for the command line field. None of the command line parameters are provided.

Configuration

All non-Windows platforms, both .NET 5 and .NET 6.

Regression?

No, my understanding is that during suspension on non-Windows platforms, this field never provided the full command line.

Other information

During suspension, the command line field in the GetProcessInfo response will be something like:

/__w/1/s/.dotnet/dotnet

If the GetProcessInfo command is issued immediately after resuming the runtime, the same data is reported (only the process name).

If the GetProcessInfo command is issued sometime after the runtime is resumed and has run for a bit, then it returns the proper command line, e.g.:

/__w/1/s/.dotnet/dotnet /__w/1/s/artifacts/bin/Microsoft.Diagnostics.Monitoring.UnitTestApp/Release/net5.0/Microsoft.Diagnostics.Monitoring.UnitTestApp.dll AsyncWait

cc @josalem

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tracing-coreclrenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions