You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is probably a duplicate of CosmWasm/cosmwasm#2061.
It is not UB inside wasmvm, but inside the contract (which is perfectly normal behaviour on the host side).
You should update to a patched cosmwasm-std version: either 2.0.1+ or 1.5.4+
Hi!
I wasn't sure whether to post this issue in this repo or the wasmvm one, so if it's in the wrong place, I apologise.
Ever since updating my local rust toolchain to
1.78
, any contract built locally fails to get initialised on chain due to the panic inside wasmvm:Note that everything works perfectly fine under
1.77.2
.I've noticed the identical issue coming up for
wasm-bindgen
users:alexcrichton/dlmalloc-rs#41 + rustwasm/wasm-pack#1389 which seems to have been due to not taking alignment correctly into consideration: rustwasm/wasm-bindgen#3463.
which would probably make sense given the associated 1.78 changes: https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html#asserting-unsafe-preconditions + https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html#deterministic-realignment
Therefore, I suspect there might be some UB inside the wasmvm that might be worth investigating
The text was updated successfully, but these errors were encountered: