Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jayvdb opened this issue Jun 26, 2024 · 0 comments
Open

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

jayvdb opened this issue Jun 26, 2024 · 0 comments
Labels
S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.

Comments

@jayvdb
Copy link

jayvdb commented Jun 26, 2024

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

This has been happening from June to August - we install Rust using

      - name: Install Rust nightly with rustfmt
        uses: actions-rust-lang/[email protected]
        with:
          toolchain: nightly
          components: rustfmt,llvm-tools-preview

When I run cargo-llvm-cov, I get 850 lines like the following, always showing external deps (i.e. not workspace members)

> cargo +nightly llvm-cov test --no-clean --include-build-script --branch --cobertura --output-path coverage.xml --workspace --no-fail-fast --all-features
<compiling>
<running all tests successfully>
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14224-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
Make sure that all profile data to be merged is generated from the same binary.
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14224-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14224-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14224-14371980818727411745_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14275-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14275-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14275-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14275-14371980818727411745_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14405-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14405-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14405-14371980818727411745_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-14405-14371980818727411745_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15426-11873273069187591105_0.profraw: _RNvMNtCsivMaHCyvWuZ_5bytes9bytes_mutNtB2_8BytesMut13reserve_inner: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15426-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15426-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15426-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15426-11873273069187591105_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvMNtCsivMaHCyvWuZ_5bytes9bytes_mutNtB2_8BytesMut13reserve_inner: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvXsk_Cs4MxhT0zqSGQ_10num_traitsfNtB5_3Num14from_str_radix: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvXsl_Cs4MxhT0zqSGQ_10num_traitsdNtB5_3Num14from_str_radix: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvNtCs562dRZQyZzR_14unsafe_libyaml6reader25yaml_parser_update_buffer: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-15798-8961453619814511421_0.profraw: _RNvNtCs562dRZQyZzR_14unsafe_libyaml6parser22yaml_parser_parse_node: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17081-11873273069187591105_0.profraw: _RNvMNtCsivMaHCyvWuZ_5bytes9bytes_mutNtB2_8BytesMut13reserve_inner: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17081-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17081-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17081-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17081-11873273069187591105_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-11873273069187591105_0.profraw: _RNvMNtCsivMaHCyvWuZ_5bytes9bytes_mutNtB2_8BytesMut13reserve_inner: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-11873273069187591105_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvXsk_Cs4MxhT0zqSGQ_10num_traitsfNtB5_3Num14from_str_radix: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvXsl_Cs4MxhT0zqSGQ_10num_traitsdNtB5_3Num14from_str_radix: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvMNtCsivMaHCyvWuZ_5bytes9bytes_mutNtB2_8BytesMut13reserve_inner: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-17399-17927172015354946806_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-18134-11873273069187591105_0.profraw: _RNvMNtCsivMaHCyvWuZ_5bytes9bytes_mutNtB2_8BytesMut13reserve_inner: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-18134-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_repetitionB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-18134-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE14fmt_class_perlB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-18134-11873273069187591105_0.profraw: _RNvMs2_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5printINtB5_6WriterQNtNtCsiTKmwCdMyvL_4core3fmt9FormatterE15fmt_class_asciiB9_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-18134-11873273069187591105_0.profraw: _RNvMs3_NtNtCsiwUvRo5Y02h_12regex_syntax3ast5parseINtB5_7ParserIQNtB5_6ParserE24parse_counted_repetitionB9_: function basic block count change detected (counter mismatch)
...
...
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs3_NtNtNtCsf3hxVJuMWqO_14regex_automata3nfa8thompson6pikevmNtB5_6PikeVM10search_imp: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs3_NtNtNtCsf3hxVJuMWqO_14regex_automata3nfa8thompson6pikevmNtB5_6PikeVM21which_overlapping_imp: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvNtNtCsf3hxVJuMWqO_14regex_automata4util11determinize4next: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs_NtNtCsf3hxVJuMWqO_14regex_automata6hybrid3dfaNtB4_3DFA14try_search_fwdB8_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs_NtNtCsf3hxVJuMWqO_14regex_automata6hybrid3dfaNtB4_3DFA14try_search_revB8_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs_NtNtCsf3hxVJuMWqO_14regex_automata6hybrid3dfaNtB4_3DFA26try_search_overlapping_fwdB8_: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs_NtNtNtCse15TmI79P4z_12aho_corasick6packed5teddy7builderNtB4_7Builder9build_imp: function basic block count change detected (counter mismatch)
/__w/<private project>/<private project>/target/llvm-cov-target/<private project>-8794-8608724866949346408_0.profraw: _RNvMs1_NtNtCse15TmI79P4z_12aho_corasick4util9prefilterNtB5_7Builder5build: function basic block count change detected (counter mismatch)

    Finished report saved to coverage.xml

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-cov, so probably isnt a problem with cargo-llvm-cov 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.

@taiki-e taiki-e added the S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.
Projects
None yet
Development

No branches or pull requests

2 participants