Finschia/cosmwasm

rust/Go Pointer Sharing Issue

Closed this issue · 0 comments

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.