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

readBinary throws Could not read file: file:... mozilla::detail::MutexImpl::~MutexImpl: pthread_mutex_destroy failed: Device or resource busy #93

Open
guest271314 opened this issue Aug 30, 2024 · 2 comments

Comments

@guest271314
Copy link

Download winterjs-linux from https://github.com/wasmerio/winterjs/actions/runs/9683093431#artifacts.

Extract to a directory in PATH

winter.js

#!/usr/bin/env -S /home/user/bin/winterjs exec
const f = await globalThis.fs.readBinary(new URL("nm_host.js", import.meta.url));
console.log(f);

At commandline run

$ ./winter.js

Observe the error

Unhandled Promise Rejection: Error - Could not read file: file:///home/user/bin/nm_host.js
mozilla::detail::MutexImpl::~MutexImpl: pthread_mutex_destroy failed: Device or resource busy
Segmentation fault (core dumped)

System: Linux 5.15.0-43-generic x86_64 x86_64 x86_64 GNU/Linux

@guest271314
Copy link
Author

Actually the error happens just running the script

#!/usr/bin/env -S /home/user/bin/winterjs exec
// ...
./winter.js
mozilla::detail::MutexImpl::~MutexImpl: pthread_mutex_destroy failed: Device or resource busy
Segmentation fault (core dumped)

@guest271314
Copy link
Author

winterjs from winterjs-x86_64-linux-gnu-0.4.2.tar.gz here https://wasmer.io/wasmer/winterjs%400.4.2/exe running the same file exits, too, with

Error setting filesystem

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

No branches or pull requests

1 participant