Code Monkey home page Code Monkey logo

Comments (7)

alexcrichton avatar alexcrichton commented on June 15, 2024 1

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.

alexcrichton avatar alexcrichton commented on June 15, 2024 1

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.

alexcrichton avatar alexcrichton commented on June 15, 2024

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.

alexcrichton avatar alexcrichton commented on June 15, 2024

I've verified that bytecodealliance/wasmtime#2863 fixes the issue on my end at least

from wasmtime-go.

srenatus avatar srenatus commented on June 15, 2024

Thanks a lot, both for fixing this so quickly and providing insights. 😃

from wasmtime-go.

srenatus avatar srenatus commented on June 15, 2024

Heya. Thanks again for fixing this!

Are there any plans for a release including this? 😄

from wasmtime-go.

srenatus avatar srenatus commented on June 15, 2024

Thank you! It looks great on my end. Thanks again 👏

from wasmtime-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.