Git Product home page Git Product logo

Comments (6)

taiki-e avatar taiki-e commented on July 18, 2024 1

This is a rustc (or LLVM) bug that occurs when there is a dylib crate in dependencies on windows-msvc (rust-lang/rust#124372).

Workaround for your case is disabling the dynamic_linking feature of bevy.

from cargo-llvm-cov.

taiki-e avatar taiki-e commented on July 18, 2024

My first thought is that you specified a different LLVM version of llvm-profdata (#362) or linked a C binary built with another LLVM version with coverage-related compilation flags enabled, but given that 797582847 is clearly an unusual value, the problem may be somewhere else.

In any case, this issue needs a reproduction. It is always difficult to investigate an issue unless I can reproduce it on my end.

from cargo-llvm-cov.

mdeering24 avatar mdeering24 commented on July 18, 2024

So on my simpler project that previous had code coverage working, I added Bevy to it and now its not working. So there is probably some issue with those dependencies or its my system. If you do want to look into it more I uploaded the repo here: https://github.com/mdeering24/coverage_debugging

cargo llvm-cov --lcov --output-path ./coverage/lcov.info

Finished `test` profile [optimized + debuginfo] target(s) in 1.57s
     Running unittests src/main.rs (target\llvm-cov-target\debug\deps\code_coverage-fa9d433ff32f3e68.exe)

running 1 test
test test::test_double ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

LLVM Profile Error: Runtime and instrumentation version mismatch : expected 9, but get 867837439
    Finished report saved to ./coverage/lcov.info

from cargo-llvm-cov.

taiki-e avatar taiki-e commented on July 18, 2024

Thanks for the repro. I can reproduce this on the latest nightly on Windows, and I can't reproduce this on macOS, so I'm marking this as Windows-specific issue.

from cargo-llvm-cov.

taiki-e avatar taiki-e commented on July 18, 2024

Closing in favor of upstream bug report.

from cargo-llvm-cov.

mdeering24 avatar mdeering24 commented on July 18, 2024

Thanks for looking into this. I appreciate it

from cargo-llvm-cov.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.