We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This logic:
pub(crate) fn new(inner: Arc<ModuleInner>) -> Self { unsafe { EARLY_TRAPPER .with(|ucell| *ucell.get() = Some(inner.protected_caller.get_early_trapper())); } Module { inner } }
does not work correctly if a module is shared between threads or two modules are created and the first module is executed.
Workaround: call Instance::module() before Instance::call() which will trigger Module::new() and set the thread-local
Instance::module()
Instance::call()
Module::new()
The text was updated successfully, but these errors were encountered:
Hi, thanks for the bug report. I've created a pr that should fix the bug (#366). Let me know if it fixes the issue for you.
Sorry, something went wrong.
Merge #366
b146a9f
366: Remove UserTrapper trait r=lachlansneff a=lachlansneff This removes the `UserTrapper` trait and the thread_local EARLY_TRAPPER variable. Fixes bug reported in #365. Co-authored-by: Lachlan Sneff <[email protected]>
We just merged #366 into master. Closing the issue :)
Please let us know if you have any other issues
Merge pull request wasmerio#365 from wasmerio/release-please--branche…
22d62be
…s--main--components--wasmer-sdk chore(main): release wasmer-sdk 0.5.1
No branches or pull requests
Describe the bug
This logic:
does not work correctly if a module is shared between threads or two modules are created and the first module is executed.
Additional context
Workaround: call
Instance::module()
beforeInstance::call()
which will triggerModule::new()
and set the thread-localThe text was updated successfully, but these errors were encountered: