-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug][move-compiler-v2] stack overflow in call_function_with_many_acquires.move #13250
Comments
It happens during rewrite of expression: https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-model/src/builder/exp_builder.rs#L1858 and setting RUST_MIN_STACK to 335544320 will make the compilation succeed. |
Thanks. We can perhaps solve this by rewriting |
Need to be sure
If not its not urgent |
…late_seq_recursively() to new translate_seq_iteratively(). Note that the old function created a stack frame for every expr in a sequence, which really shouldn't be necessary. Fixes #13250 which overflowed stack compiling long sequences. There are some slight variation in VMError details (exec_state) generated for a few tests.
…late_seq_recursively() to new translate_seq_iteratively(). Note that the old function created a stack frame for every expr in a sequence, which really shouldn't be necessary. Fixes #13250 which overflowed stack compiling long sequences. There are some slight variation in VMError details (exec_state) generated for a few tests.
🐛 Bug
We seem to run out of stack compiling this function. V1 succeeds at compiling (although the resulting bytecode is invalid and yields a load failure).
To reproduce
yields
The text was updated successfully, but these errors were encountered: