GithubHelp home page GithubHelp logo

wasm error running example about go-plugin HOT 12 CLOSED

knqyf263 avatar knqyf263 commented on August 26, 2024
wasm error running example

from go-plugin.

Comments (12)

knqyf263 avatar knqyf263 commented on August 26, 2024

Which version did you try?

from go-plugin.

knqyf263 avatar knqyf263 commented on August 26, 2024

@codefromthecrypt Is it relevant to the recent update of wazero?

from go-plugin.

mathetake avatar mathetake commented on August 26, 2024

it seems something to do with the memory management change in TinyGo, but haven't looked into yet

from go-plugin.

mathetake avatar mathetake commented on August 26, 2024

maybe adds the test dimension with TinyGo versions since i see go-plugin is only tested with TinyGo 0.24 which is two versions behind the latest

from go-plugin.

knqyf263 avatar knqyf263 commented on August 26, 2024

@mathetake Thanks for your insight.
@goliatone Which version of TinyGo are you using?

from go-plugin.

goliatone avatar goliatone commented on August 26, 2024

@knqyf263 tinygo version 0.26.0 darwin/amd64 (using go version go1.18.7 and LLVM version 14.0.0)

from go-plugin.

mathetake avatar mathetake commented on August 26, 2024

I imagine this commit is the root cause tinygo-org/tinygo@03d1c44. since that commit (included in 0.26), passing size=0 to the malloc results in panic.

from go-plugin.

mathetake avatar mathetake commented on August 26, 2024

cc @anuraaga

from go-plugin.

mathetake avatar mathetake commented on August 26, 2024

#9 fixes!

from go-plugin.

knqyf263 avatar knqyf263 commented on August 26, 2024

@goliatone Do you mind trying the latest commit?

from go-plugin.

codefromthecrypt avatar codefromthecrypt commented on August 26, 2024

I verified tinygo 0.26 works via #10 also

from go-plugin.

anuraaga avatar anuraaga commented on August 26, 2024

Thanks for the pointer, sent tinygo-org/tinygo#3303 to fix in TinyGo

from go-plugin.

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.