Skip to content

BenchmarkDotNet Access Denied Error on WSL2 when Writing to '/mnt/c/DumpStack.log.tmp' #2436

@MeulenG

Description

@MeulenG

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:

  • Running on Ubuntu 22.04.3 LTS(Jammy Jellyfish) via WSL2.
  • Using BenchmarkDotNet v0.13.8.
  • .NET SDK version 7.0.111.
  • Encountered a warning about running the benchmarks in a DEBUG configuration, but the main concern is the access denied error.`

Logs/output:
err
My understanding is that WSL2 doesn't have permissions to read the Dump Stack logging. Is it possible to make it work on WSL2?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions