fuzzcheck-rs icon indicating copy to clipboard operation
fuzzcheck-rs copied to clipboard

failed to parse LLVM covmap: InvalidVersion(6)

Open StephanGocht opened this issue 10 months ago • 2 comments

The version of LLVM covmap was updated to version 6, hence fuzzcheck-rs does no longer work with the latest rust version.

This results in the error

failed to parse LLVM covmap: InvalidVersion(6)

when trying to run fuzzcheck.

StephanGocht avatar Apr 15 '24 12:04 StephanGocht

Just bumping the version number https://github.com/loiclec/fuzzcheck-rs/blob/9077693abd90bb44955ed008749b5902acfa65bd/fuzzcheck/src/code_coverage_sensor/llvm_coverage.rs#L710 does not seem to be sufficient.

StephanGocht avatar Apr 15 '24 12:04 StephanGocht

From the LLVM documentation

There is one difference between versions 6 and 5: The first entry in the filename list is the compilation directory. When the filename is relative, the compilation directory is combined with the relative path to get an absolute path. This can reduce size by omitting the duplicate prefix in filenames.

I am not familiar with the LLVM coverage format, but (assuming this is the problem) this shouldn't be too hard to fix. I am quite busy at the moment, but will try to have a look on the weekend.

teymour-aldridge avatar Apr 15 '24 13:04 teymour-aldridge