-
-
Notifications
You must be signed in to change notification settings - Fork 984
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
BenchmarkDotNet Access Denied Error on WSL2 when Writing to '/mnt/c/DumpStack.log.tmp' #2436
Comments
@MeulenG thanks for the report! Unfortunately, I wasn't able to reproduce the issue. Could you please install BenchmarkDotNet |
@MeulenG thanks for the update! One more question: do you have a solution file (*.sln) that contains your project or do you have a standalone project without a solution? |
@MeulenG I hope that I have fixed the issue. Could you please check if |
@AndreyAkinshin I have installed the |
BDN tries to set the process priority to high, when it fails (on Linux it requires to run as root) it prints an error. You can simply ignore it or run as root |
@adamsitnik what do you think about changing this error to a warning? Motivation:
|
@adamsitnik @AndreyAkinshin Awesome! It works like a charm now. Thanks for all the assistance! |
It's good idea. Moreover we could print it just once, not for every benchmark. |
@adamsitnik I started with adjusting the message severity: e170684 |
When running benchmarks using BenchmarkDotNet on WSL2, I encountered an "Access Denied" error. This error prevents the benchmark from completing successfully. The error is:
Generate Exception: Access to the path '/mnt/c/DumpStack.log.tmp' is denied.
Additional information:
Logs/output:

My understanding is that WSL2 doesn't have permissions to read the Dump Stack logging. Is it possible to make it work on WSL2?
The text was updated successfully, but these errors were encountered: