taiki-e / cargo-llvm-cov

Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
Apache License 2.0
858 stars 57 forks source link

function basic block count change detected (counter mismatch) #375

Open jayvdb opened 1 week ago

jayvdb commented 1 week ago

I didnt see any issue about this, so apologies if it has been addressed already.

When I run cargo-llvm-cov, I get 850 lines like

2024-06-26T12:06:03.4025861Z /__w/foo/bar/target/llvm-cov-target/baz-27463-6882390905849256803_0.profraw: _RNvMs_NtNtCscSCDEIaQKYL_14regex_automata6hybrid3dfaNtB4_3DFA14try_search_fwdB8_: function basic block count change detected (counter mismatch)

They dont seem to effect the coverage stats, which on the face look to be accurate.

There are lots of google hits for "function basic block count change detected (counter mismatch)" - it appears to be emitted by llvm-cov instead of cargo-llvm-cargo, so probably isnt a problem with cargo-llvm-cargo directly, but maybe there is a way to avoid these.

This is a commercial private repo, so I cant easily provide a reproducible, but I will try to assist as best I can.