jazzer icon indicating copy to clipboard operation
jazzer copied to clipboard

Suggestion.Listeners

Open freedom1b2830 opened this issue 2 years ago • 7 comments

Please add a listener to receive data when a failure|slow is detected. I am using

Jazzer.main(new String[]{"--autofuzz=...Class::method", "..."},Here);

I would like these fields:

  • id execution
  • DEDUP_TOKEN
  • "test" execution time
  • full stacktrace
  • Crash-....java in byte[]

freedom1b2830 avatar Jan 15 '23 08:01 freedom1b2830

Mostly but not only due to our dependency on libFuzzer, which maintains quite a bit of global state, it is currently not possible to execute multiple fuzzing runs in a single process (that is, JVM). At least at the moment this means that a listener API of this kind would suggest use cases that aren't possible.

Could you describe in more detail what you would want to use this information for? Would more structured log output (e.g. in JSON) that you could parse be sufficient?

fmeum avatar Jan 17 '23 11:01 fmeum

For some reason I can't get the output from system.err . JSON would be fine

freedom1b2830 avatar Jan 17 '23 20:01 freedom1b2830

CC @HenrichN for interest in structured logging.

fmeum avatar Jan 17 '23 20:01 fmeum

By the way, fix where Paths.get("") was rewritten in junit tests. (https://github.com/CodeIntelligenceTesting/jazzer/issues/546)

crash-id creates Doesn't create Crash-ID.java files

freedom1b2830 avatar Jan 17 '23 20:01 freedom1b2830

Could you create a separate issue for that? I am not entirely sure I understand the problem, could you add some more details?

fmeum avatar Jan 18 '23 09:01 fmeum

@fmeum https://github.com/CodeIntelligenceTesting/jazzer/issues/607

freedom1b2830 avatar Jan 20 '23 09:01 freedom1b2830

@henryrneh

freedom1b2830 avatar Feb 23 '23 00:02 freedom1b2830