Skip to content

Slow execution (possible dos) #1928

Open
@namiloh

Description

@namiloh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions