-
Notifications
You must be signed in to change notification settings - Fork 51
Description
First of all, thank you very much for working on this allocator (it seems that it's still the only one feature-rich enough for wasm in Rust)!
After a recent upgrade to Rust 1.78 our application started getting a panic message:
panicked at /rust/deps/dlmalloc-0.2.6/src/dlmalloc.rs:1198:13:
assertion failed: psize <= size + max_overhead
I've tried re-compiling the wasm module on 1.76 and 1.77 and did not get the panic message.
I believe this could be related to recent changes in the Rust compiler which are causing this misbehavior:
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
Honestly, I don't feel competent enough to dig into the dlmalloc code and debug our wasm module but I'll be happy to get some guidance or help with debugging this issue.
PS: Our application is open-source and the wasm build can be found here: https://github.com/Stremio/stremio-core-web