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

translate errno=-4094 errors to "no-such-device" on Windows #454

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

dicej
Copy link
Contributor

@dicej dicej commented Jun 26, 2024

When an application attempts to open a non-existent path such as //foo/bar/baz on Windows, Node generates an error of the form:

{
  errno: -4094,
  syscall: 'open',
  code: 'UNKNOWN',
  path: '//foo/bar/baz'
}

Prior to this commit, that error would be re-thrown, causing Wasm execution to trap. Now we convert it to a "no-such-device" error instead.

When an application attempts to open a non-existent path such as `//foo/bar/baz`
on Windows, Node generates an error of the form:

```
{
  errno: -4094,
  syscall: 'open',
  code: 'UNKNOWN',
  path: '//foo/bar/baz'
}
```

Prior to this commit, that error would be re-thrown, causing Wasm execution to
trap.  Now we convert it to a "no-such-device" error instead.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@guybedford guybedford merged commit 90154c3 into bytecodealliance:main Jun 26, 2024
16 checks passed
@dicej
Copy link
Contributor Author

dicej commented Jun 26, 2024

Thanks for merging this, @guybedford. Is there a chance we could publish a new release of the shim with this fix soonish? That would help unblock dotnet/runtimelab#2614, which is where I encountered this issue.

@guybedford
Copy link
Collaborator

Sure, I've pushed a 0.16.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants