Skip to content
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

Slow execution (possible dos) #1928

Open
namiloh opened this issue Dec 7, 2023 · 0 comments
Open

Slow execution (possible dos) #1928

namiloh opened this issue Dec 7, 2023 · 0 comments

Comments

@namiloh
Copy link

namiloh commented Dec 7, 2023

Fuzzing found a statetest which executes rather slow on evmstate, nearly 10 seconds on 16M gas.

$ time ./evmstate  --noreturndata --nomemory --nostorage /tmp/00048858-mixed-1.json
[
  {
    "name": "00048858-mixed-1",
    "pass": false,
    "stateRoot": "0x8be91bbd12b25e35dde6fc33451c4077c3ff155f6af278d0303a9f6525f7d6fe",
    "fork": "Cancun",
    "error": "post state root mismatch: got 8be91bbd12b25e35dde6fc33451c4077c3ff155f6af278d0303a9f6525f7d6fe, want 0000000000000000000000000000000000000000000000000000000000000000"
  }
]

real	0m9,152s
user	0m5,623s
sys	0m0,012s

It appears to be doing a callcode-based calltower up to around 500 deep.
slowtest-00048858-mixed-1.json

It is a bit odd, actually. Sometimes it executes in three seconds, one time it took 40 seconds. Feel free to close this ticket if it doesn't reproduce, might be that my fuzzer-machine was busy doing other things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants