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
We are currently experiencing segfault crashes when using modules that have been serialized to disk with Wasmer 2.2.0 and deserialized with 2.3.0. We are aware the format can change between minor and even patch versions and have a way to handle MetadataHeader::CURRENT_VERSION bumps. But it seems that MetadataHeader::CURRENT_VERSION was not changed and is still at 1.
This was discussed in #2781 but I don't fully understand if and how it has been resolved. Basically from our use case the request is this: the format can change any time, no problem. But we should have a way to detect that (such as reading MetadataHeader::CURRENT_VERSION or using a different API). Then we know we have to invalidate the file system cache and everyone is happy. Invalidating the cache for every minor wasmer bump would be a huge computational burden since all the modules have to be recompiled. Would be great if we can avoid that if necessary.
The text was updated successfully, but these errors were encountered:
Add example serialized artifacts to the repo that should be working, and test on the CI (so we know when things break)
Stick to semver versioning for the artifact crate (and add that version into the serialized information)
IMO if we do 3, then we need to also do 2 as safeguard.
If we do 1, 2 might also be needed, but 1 by itself is already a bit more safe (since it's depending on a precomputed hash that does things for us)
I'm fine with something like 1. This keeps it simple and relyable and just tells us nothing changed vs. something changed that might potentially affect you, better recompile.
I think I don't understand "semver versioning for the artifact crate". Which crate are you referring to?
webmaster128
changed the title
MetadataHeader::CURRENT_VERSION was not bumpted between 2.2 and 2.3
MetadataHeader::CURRENT_VERSION was not bumped between 2.2 and 2.3
Oct 20, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hey all!
We are currently experiencing segfault crashes when using modules that have been serialized to disk with Wasmer 2.2.0 and deserialized with 2.3.0. We are aware the format can change between minor and even patch versions and have a way to handle
MetadataHeader::CURRENT_VERSION
bumps. But it seems thatMetadataHeader::CURRENT_VERSION
was not changed and is still at1
.This was discussed in #2781 but I don't fully understand if and how it has been resolved. Basically from our use case the request is this: the format can change any time, no problem. But we should have a way to detect that (such as reading
MetadataHeader::CURRENT_VERSION
or using a different API). Then we know we have to invalidate the file system cache and everyone is happy. Invalidating the cache for every minor wasmer bump would be a huge computational burden since all the modules have to be recompiled. Would be great if we can avoid that if necessary.The text was updated successfully, but these errors were encountered: