-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out of bounds memory access on aarch64 / others (2) #3855
Comments
Actually this time x86 fails same https://github.com/kwonoj/swc-plugin-coverage-instrument/actions/runs/4950612331/jobs/8854459486 🤔 |
@kwonoj this looks like version mismatched of the artifacts. Have you switched to the new, safe variants of artifact deserialization? In general, you also need to include the Engine::deterministic_id and the metadata version header in artifact cache paths (see https://docs.rs/wasmer-types/latest/src/wasmer_types/serialize.rs.html#210 ). But using the checked deserializations from above should result in returned errors, in which case you can re-compile the artifact instead. |
No, I don't think we have enabled something similar yet and wanted to have these kind for a long time.
Eager to try out - any eta for having new release? |
One more thing: looks like |
Thanks for bringing that up. I will also switch the cache over to use always use the safe methods, because that's the sensible thing to do and the performance overhead is small. |
Alright, so after a bit of reflection: We currently do not plan for another release in the next few weeks, which might also contains some additional changes to the caching layers. I opened a PR to switch the FilesystemCache to safe deserialization here: #3856 . But if you don't want to wait (which is understandable), I would recommend just copying the |
@kwonoj is it working for you now? |
I'm trying to wait for the new upstream release with FileSystemCache instead of copying it myself, so no, not haven't tried suggestions yet. |
Is this ticket still relevent @kwonoj ? |
I haven't had chance to try checked version of load, afaik upstream filesystem cache doesn't have support yet? ( wasmer/lib/cache/src/filesystem.rs Line 95 in 0ea42da
|
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. |
Feel free to reopen the issue if it has been closed by mistake. |
This is reopening #3764 (comment) that I don't have power to reopen existing case.
We upgraded wasmer to latest (3.3), and another case of out of bounds memory access on aarch64 with stacks:
This PR kwonoj/swc-plugin-coverage-instrument#215 is the offending one to try.
It may not be the wasmer is culprit, but I'm curious for the reason seeing similar errors each time trying to upgrade wasmer. Any ideas to make a preventive action on our end?
The text was updated successfully, but these errors were encountered: