dotnet / dotnet/runtime

[Browser][CoreCLR] ErrnoError spam in corerun

Open
#128,410 1 comment 1 reaction 1 assignee Claimed by @pavelsavara View on GitHub
arch-wasm area-Host os-browser
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

During startup for even a simple app like Hello World we generate dozens if not hundreds of ErrnoErrors that make it difficult to diagnose actual failures - you have to disable 'caught exceptions' in the debugger until exception reaches Just The Right Point, then turn them back on. If an exception actually happens during this startup phase you'll miss it.

These exceptions have a few sources:

`createDefaultDirectories` calls `mkdir`
`parse_args` calls `pal::get_absolute_path` calls `realpath`
`external_assembly_probe` calls `pal::try_map_file_readonly` calls `open`

If we were to migrate to emscripten's WasmFS these ErrnoErrors would go away, but it's not currently possible to do so (it might be possible after the emscripten bump, but it's unclear whether we want to do it).

cc @pavelsavara

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.