Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

rust/Go Pointer Sharing Issue #273

Closed loloicci closed 1 year ago

loloicci commented 1 year ago

https://github.com/line/wasmvm/actions/runs/4300130935/jobs/7496102345?pr=89#step:7:105

GetContractEnv Api has a race error in the way to share the pointer of cache between rust and go.

How to solve

Change how to call callable points in the dynamic link.

Now: rust gets a cache pointer from Go and rust uses it to make a callee instance. Suggestion: rust requests Go to make callee instance and call a callable point.