Skip to content

dotnet-stack report hangs when run in a directory without write permissions #3030

Closed

Description

@noahfalk

Description

The dotnet-stack report command attempts to create a temporary trace file in the current directory (https://github.com/dotnet/diagnostics/blob/main/src/Tools/dotnet-stack/ReportCommand.cs#L41 + https://github.com/dotnet/diagnostics/blob/main/src/Tools/dotnet-stack/ReportCommand.cs#L85) which implicitly assumes the current directory is writable. When the tool is run in a directory that isn't writable it produces no output and becomes unresponsive.

Configuration

diagnosing an app on .NET 6

E:\temp>dotnet-stack --version
6.0.320703+c1d79351e6181a4daa61e38e8df6daf791b33401

Regression?

Didn't check but probably not

fyi @josalem

Activity

  1. added
    bug
    on Apr 25, 2022
  2. added this to the .NET 7.0 milestone on Apr 25, 2022
  3. noahfalk commented on Apr 25, 2022

    @noahfalk
    MemberAuthor

    Btw, the way I hit this is using the "Developer Command Prompt for VS" which defaults to a path like this: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community" which isn't writable.

  4. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions