Description
Hi there! I hope I'm using the right issue template and the right repository; apologies if I'm not. Happy about pointers to improve on that.
Also, the issue's title might be arbitrarily far from what's actually going on.
Code
I tried to run the following command on this crate:
cargo llvm-cov
I expected to see this happen: successful generation of a coverage report, for example like in this workflow run.
Instead, this happened: error “malformed instrumentation profile data: function name is empty”, for example like in this workflow run.
I can reproduce the error locally, so I'm reasonably sure that it's not CI's fault.
Version it worked on
rustc --version --verbose
:
rustc 1.89.0-nightly (4d051fb30 2025-05-18)
binary: rustc
commit-hash: 4d051fb306e661654d088892e02e69b8c0c39d43
commit-date: 2025-05-18
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.5
Version with regression
rustc --version --verbose
:
rustc 1.89.0-nightly (60dabef95 2025-05-19)
binary: rustc
commit-hash: 60dabef95a3de3ec974dcb50926e4bfe743f078f
commit-date: 2025-05-19
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.5
I have tried to run cargo-bisect-rustc
but can't get the installation of the component llvm-tools-preview
to work there, since the toolchain bisect-*
seems to be throwing something off. 😕
Activity
apiraino commentedon May 26, 2025
@jan-ferdinand thanks for filing this issue. is it possible to reproduce the issue without having the code in that repository connect to external services?
Details
Note, for info:
llvm-cov
is a separate project hosted at https://github.com/taiki-e/cargo-llvm-cov@rustbot label +E-needs-bisection +E-needs-mcve
bjorn3 commentedon May 26, 2025
Same issue with zlib-rs: trifectatechfoundation/zlib-rs#368 cc @folkertdev
jan-ferdinand commentedon May 26, 2025
Apologies! It is possible, yes:
works:
cargo +nightly-2025-05-19 llvm-cov -- database::storage::storage_schema::dbtvec::tests::streams::stream_many
doesn't work:
cargo +nightly-2025-05-20 llvm-cov -- database::storage::storage_schema::dbtvec::tests::streams::stream_many
Thanks for pointing this out explicitly. The reason I opened the issue here is that, as far as I can tell, the same version of
llvm-cov
is being used in both the working and the failing command. If you think the issue belongs withllvm-cov
, I can move the discussion there.ci: Fix coverage workflow
ci: Fix coverage workflow
folkertdev commentedon May 27, 2025
I would guess #141063 is the cause?
jan-ferdinand commentedon May 27, 2025
According to
rustc --version --verbose
, both the working and the failing command use the same version of LLVM, namely 20.1.5.22 remaining items