-
Notifications
You must be signed in to change notification settings - Fork 856
bug: CI test with invalid memory reference #1287
Comments
@ed255 the Cached EvmCircuit is a bit strange.. |
oh it seems related to RUST_MIN_STACK: 16777216.. |
Ah yes, I've observed this previously. Whenever this happens My guess is that the big stack requirements comes from having the |
I wish we could find a way to resolve the massive stack usage, so that we don't have to depend on setting a bigger stack via |
OK since we know the reason now and it can be resolved i think it is ok to close the issue |
### Description In EVM Circuit's ExecutionConfig, store the gadget for every execution state in a Box to significantly reduce the size of ExecutionConfig which inevitably needs to live in the stack at some points. This PR removes the extended stack setting `RUST_MIN_STACK: 16777216` introduced in #1286 Let's see if this works! ### Issue Link Related to #1287 ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Rationale Even though setting the env var `RUST_MIN_STACK=16777216` fixes the stack overflow we encountered before, I think it's better to resolve this by avoiding consuming so much stack that it overflows on its default size. This is because setting this env var can be annoying and it's easy to forget it in many scenarios.
* allow up to 5x compression ratio * chore: export init_zstd_encoder * fmt
What command(s) is the bug in?
No response
Describe the bug
found this issue in PR #1265 's CI https://github.com/privacy-scaling-explorations/zkevm-circuits/actions/runs/4349281702/jobs/7598772747
Managed to resolve it in edc24ab
by change
EvmCircuitCached
toEvmCircuit
。Concrete steps to reproduce the bug
No response
The text was updated successfully, but these errors were encountered: