-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
wasmtime 17 hangs while trying to load wasm file #7874
Comments
It appears this is some sort of codegen bug - I was able to reproduce this on |
I was able to bisect and find the breaking commit, which is:
EDIT: I was bisecting this PR https://github.com/bytecodealliance/wasmtime/pull/7800/commits |
@alexcrichton yes, you are right. I can't reproduce this anymore, but the commit you pointed to clearly makes it hang. |
Add a test to expose issues with unbounded recursion through `iadd` during egraph rewrites, and bound the recursion of `will_simplify_with_ireduce`. Fixes bytecodealliance#7874 Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
Add a test to expose issues with unbounded recursion through `iadd` during egraph rewrites, and bound the recursion of `will_simplify_with_ireduce`. Fixes #7874 Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
Add a test to expose issues with unbounded recursion through `iadd` during egraph rewrites, and bound the recursion of `will_simplify_with_ireduce`. Fixes bytecodealliance#7874 Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
Add a test to expose issues with unbounded recursion through `iadd` during egraph rewrites, and bound the recursion of `will_simplify_with_ireduce`. Fixes #7874 Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
Add a test to expose issues with unbounded recursion through `iadd` during egraph rewrites, and bound the recursion of `will_simplify_with_ireduce`. Fixes bytecodealliance#7874 Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
* Guard recursion in `will_simplify_with_ireduce` (#7882) Add a test to expose issues with unbounded recursion through `iadd` during egraph rewrites, and bound the recursion of `will_simplify_with_ireduce`. Fixes #7874 Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com> * Cranelift: Use a fixpoint loop to compute the best value for each eclass (#7859) * Cranelift: Use a fixpoint loop to compute the best value for each eclass Fixes #7857 * Remove fixpoint loop early-continue optimization * Add document describing optimization rule invariants * Make select optimizations use subsume * Remove invalid debug assert * Remove now-unused methods * Add commutative adds to cost tests * Add missing subsume uses in egraph rules (#7879) * Fix a few egraph rules that needed `subsume` There were a few rules that dropped value references from the LHS without using subsume. I think they were probably benign as they produced constant results, but this change is in the spirit of our revised guidelines for egraph rules. * Augment egraph rule guideline 2 to talk about constants * Update release notes --------- Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
This should be fixed in the wasmtime 17.0.1 release, thank you again for reporting this! |
Test Case
https://drive.google.com/file/d/1HYlz78KTuag9bTpNwGP_blp5yWo95i_7/view?usp=sharing
This wasm file successfully loads by version 16, but wasmtime 17 hangs and eats a lot of CPU while trying to load it
Steps to Reproduce
This is reproducible in python and ruby. Example ruby code:
Expected Results
Should work
Actual Results
It hangs eating ~170% of CPU
Versions and Environment
Wasmtime version or commit: 17
Operating system: MacOS
Architecture: aarch64
The text was updated successfully, but these errors were encountered: