Skip to content

coverage tool fails if there were no AFL instances ending with '1' #28

@fuzzah

Description

@fuzzah

Happens rarely, mostly on slow targets ran for short (<20 minutes) periods of time.

To reproduce:

  1. Have a slow AFL++ fuzz target with a lot of input samples.
  2. Launch a fuzzing job on multiple cores for 1 second or other small value. Some fuzz targets are susceptible to this even when starting 20-minute jobs.
  3. bb-fuzz will detect stop condition based on some (not ALL) instances, so the instances ending with '1' may not even finish loading their initial samples, so they won't have a folder under out.
  4. bb-coverage will fail if there were no instances ending with '1'.

To fix it we need to select some other folder when the first one's missing.
The relevant line is here.

Also: if a user only runs the coverage tool from bugbane (without bb-fuzz), then they may have other naming conventions for afl-fuzz instances. Currently such users will need to use bb-corpus manual.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions