rohanpadhye/JQF

jqf-alf-fuzz freezes and timeout doesn't work

ST-Saint opened this issue · 1 comments

When running the jqf-alf-fuzz, the status panel sometimes freezes and no updates afterward.

The timeout mechanism seems doesn't interrupt the running test. According to visualvm, it keeps reading the EOF in StreamBackedRandom
image

The testing command is
bin/jqf-afl-fuzz -x examples/target/test-classes/dictionaries/maven-model-afl.dict -i ../gen-seeds-dict/seeds/xml -o maven0 -c "examples/target/test-classes/:examples/target/test-classes:examples/target/dependency/*" edu.berkeley.cs.jqf.examples.maven.ModelReaderTest testWithInputStream

Interesting, thanks for the repro command and the profiler screenshot.

To be honest, I don't maintain the jqf-afl-fuzz bridge any more, for several reasons (mainly that AFL is quite outdated now and JQF is best used with Zest and other guidances implemented within Java). I can't promise a quick fix if this is AFL related. If you have a solution, PRs are definitely welcome.

Do you think the same bug would be encountered when fuzzing with Zest (i.e., via mvn jqf:fuzz?) If so, then I'll look into it further.