http-garden icon indicating copy to clipboard operation
http-garden copied to clipboard

Sometimes running the fuzzer causes assertion failures

Open kenballus opened this issue 1 year ago • 2 comments

Every once in a while, especially if the Garden has just started, running the fuzzer will cause an assertion failure. This assertion is the one that ensures that the coverage information collected is not out of date.

kenballus avatar Feb 02 '24 22:02 kenballus

Right now I catch this and encourage the user to reload the fuzzer. In the future, I should really figure this out :)

kenballus avatar Feb 14 '24 23:02 kenballus

I hit that a lot.. appears recoverable in <=3 retries_left once the counter is correct after the next kill(SIGUSR1)

- dump_count = f.read(1)[0]
+ if bite := f.read(1):
+     dump_count = bite[0]
+ else:
+     return None
  if dump_count != server.dump_count % 256:
-     dump_count = server.dump_count
+     server.dump_count = dump_count + 1
      return None

That is what the assignment preceding return was intended for, right? https://github.com/narfindustries/http-garden/blob/4b8e990/tools/fanout.py#L86-L87

pajod avatar May 23 '24 05:05 pajod