Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
noahfalk opened this issue Apr 25, 2022 · 1 comment · Fixed by #3031
Closed

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

noahfalk opened this issue Apr 25, 2022 · 1 comment · Fixed by #3031
Assignees
Labels
bug Something isn't working
Milestone

Comments

@noahfalk
Copy link
Member

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

@noahfalk noahfalk added the bug Something isn't working label Apr 25, 2022
@noahfalk noahfalk added this to the .NET 7.0 milestone Apr 25, 2022
@noahfalk
Copy link
Member Author

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.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants