cairo_native: bug: stack overflow on AotExecutor creation
repro:
clone https://github.com/kkrt-labs/ef-tests
checkout cairo-native branch git checkout feat/cairo-native
make
make setup-kakarot
run any test, like:
cargo test baseFeeDiffPlaces_d34g0v0_Cancun --features v1,native -- --nocapture
this should fail with a stack overflow.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22
There is actually another side effect. Now all of our tests revert with an error
Something has changed in the process of how we retrieve chain id.
Let me write another issue
The stack overflow should now be fixed (along with most memory leaks) in my PR.
No problem, it was easy to find once the stack trace changed. If everything goes correctly I should have that stack overflow fixed today, but that’s a big if.
I confirm it was what I suspected. Now it should crash with an assert instead of a stack overflow. I’m working on a real fix.
Thank you, it worked.
I see the loop clearly now, and I think I know why that happened. Let me check if I’m right.