Comments (7)
Ok with bytecodealliance/wasmtime#2863 merged I'm gonna close this and this'll get into the packages on the next wasmtime version bump which should be soon-ish
from wasmtime-go.
Ah I was waiting on a wasmtime version for this but I realized I can publish 0.26.1, so I've pushed that up.
from wasmtime-go.
Ok thanks! I tried this again and let it run in the background and indeed got the fault eventually. I mostly try to investigate these sorts of issues by tracking them down in a debugger if I can, and afterwards just thinking hard about them. (unfortunately these are often pretty gnarly to investigate)
That being said after thinking about this and seeing it in a debugger I think I know the issue of what's going on here. The problem is that wasmtime needs to initialize trap handlers per-thread and while it's doing that for the first thread the Go runtime is presumably migrating the main goroutine to a different OS thread and wasmtime isn't re-initializing (currently that's an unsafe operation in Rust and requires a manual opt-in to initialize it).
I'll look into fixing this in Wasmtime in the near future!
from wasmtime-go.
I've verified that bytecodealliance/wasmtime#2863 fixes the issue on my end at least
from wasmtime-go.
Thanks a lot, both for fixing this so quickly and providing insights. 😃
from wasmtime-go.
Heya. Thanks again for fixing this!
Are there any plans for a release including this? 😄
from wasmtime-go.
Thank you! It looks great on my end. Thanks again 👏
from wasmtime-go.
Related Issues (20)
- Is it possible to dynamically link several wasm modules in Go host? HOT 6
- Works with wit-bindgen? HOT 3
- Out of bounds memory access panic HOT 5
- Support for ARM macs with bazel
- Allocation too large< ~lib/rt/itcms.ts<$Index out of range,~lib/rt.ts HOT 4
- Add changelog/releases info HOT 1
- SetMaxWasmStack fails with async_stack_size error HOT 6
- Please elaborate on installation instructions for unsupported platforms HOT 1
- Does debugging work when embedding in go like rust? HOT 1
- Equivalence for `WasiCtx.insert_file` from wasmtime_wasi Rust crate HOT 14
- Minor release HOT 4
- Windows build failure: undefined reference to `_setjmp' HOT 7
- Error out when using wasmtime-go to run Python code HOT 2
- Compilation failure on 32-bit systems HOT 3
- How to monitor memory usage HOT 4
- Go get latest version failed
- Missing V15 features.component_model in config HOT 3
- Support v16? HOT 2
- Feature request: support manual freeing of resources HOT 2
- No compiled main function from file called HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasmtime-go.