-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Instrumentation profile data contains empty function name (?) as of nightly-2025-05-19
#141577
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
Comments
@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: @rustbot label +E-needs-bisection +E-needs-mcve |
Same issue with zlib-rs: trifectatechfoundation/zlib-rs#368 cc @folkertdev |
Apologies! It is possible, yes: works:
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 |
Due to a regression (?) in the rustc compiler, the code coverage workflow has been failing since 2025-05-20. Temporarily use a version of nightly that is known to work, until rust-lang/rust#141577 (or whatever replaces it) is resolved.
Due to a regression (?) in the rustc compiler, the code coverage workflow has been failing since 2025-05-20. Temporarily use a version of nightly that is known to work, until rust-lang/rust#141577 (or whatever replaces it) is resolved.
I would guess #141063 is the cause? |
According to $ diff -u fails works
-rustc 1.89.0-nightly (60dabef95 2025-05-19)
+rustc 1.89.0-nightly (4d051fb30 2025-05-18)
binary: rustc
-commit-hash: 60dabef95a3de3ec974dcb50926e4bfe743f078f
-commit-date: 2025-05-19
+commit-hash: 4d051fb306e661654d088892e02e69b8c0c39d43
+commit-date: 2025-05-18
host: x86_64-unknown-linux-gnu
release: 1.89.0-nightly
LLVM version: 20.1.5 |
Maybe #140847 then (cc @Zalathar does that seem plausible)? I can't reproduce the issue locally, we're only seeing it on CI. @jan-ferdinand what is your problem with
|
You can pass |
That's a bummer, @folkertdev. Do you have any idea how I could help you out here? edit: Oh, I might have misunderstood what you're saying. Are you saying that you cannot reproduce trifectatechfoundation/zlib-rs#368 locally?
That sounds useful, @bjorn3.1 Unfortunately, I can't get it to work. Apparently, the requested version of the toolchain could not be found. I'm assuming it means that the requested component could not be found? The same is true if I try different dates for Console Dump❯ cargo bisect-rustc -c llvm-tools-preview --start=2025-05-19 --end=2025-05-20 -- llvm-cov -- database::storage::storage_schema::dbtvec::tests::streams::stream_many checking the start range to find a passing nightly installing nightly-2025-05-19 cargo-nightly-x86_64-unknown-linux-gnu: 9.55 MB / 9.55 MB … uninstalling nightly-2025-05-19 *** unable to install nightly-2025-05-19. roll back one day and try again... ERROR: could not find nightly-2025-05-19 Omitting the Console Dump❯ cargo bisect-rustc --start=2025-05-19 --end=2025-05-20 -- llvm-cov -- database::storage::storage_schema::dbtvec::tests::streams::stream_many checking the start range to find a passing nightly installing nightly-2025-05-19 rust-std-nightly-x86_64-unknown-linux-gnu: … RESULT: nightly-2025-05-19, ===> Compile error uninstalling nightly-2025-05-19 Footnotes
|
… r=Zalathar coverage: Revert "unused local file IDs" due to empty function names The changes to coverage metadata generation in rust-lang#140847 appear to be the most likely cause of the `function name is empty` errors reported in rust-lang#141577. If that guess is correct, great. If not, no big deal. --- This reverts commit 3b22c21, reversing changes made to 5f292ee. r? ghost
Rollup merge of #141650 - Zalathar:revert-unused-local-file, r=Zalathar coverage: Revert "unused local file IDs" due to empty function names The changes to coverage metadata generation in #140847 appear to be the most likely cause of the `function name is empty` errors reported in #141577. If that guess is correct, great. If not, no big deal. --- This reverts commit 3b22c21, reversing changes made to 5f292ee. r? ghost
The revert has been merged (#141650), so hopefully the failure will disappear in the next nightly. Please let me know whether or not that's the case. That said, I do intend to re-land similar changes at some point in the future. So without a self-contained repro (or at least knowing what actually happened here), there is a risk that this will break again. |
coverage: Revert "unused local file IDs" due to empty function names The changes to coverage metadata generation in rust-lang/rust#140847 appear to be the most likely cause of the `function name is empty` errors reported in rust-lang/rust#141577. If that guess is correct, great. If not, no big deal. --- This reverts commit 3b22c21dd8c30f499051fe7a758ca0e5d81eb638, reversing changes made to 5f292eea6d63abbd26f1e6e00a0b8cf21d828d7d. r? ghost
Looks like the revert did indeed fix the issue, zlib-rs CI is passing again https://github.com/trifectatechfoundation/zlib-rs/actions/runs/15338976180. zlib-rs is happy to be the canary in the coalmine here for future changes (that's kind of what nightly is for). I've still not been able to reproduce the issue locally, maybe @jan-ferdinand can make a smaller reproducing example? |
Uh oh!
There was an error while loading. Please reload this page.
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:
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
:Version with regression
rustc --version --verbose
:I have tried to run
cargo-bisect-rustc
but can't get the installation of the componentllvm-tools-preview
to work there, since the toolchainbisect-*
seems to be throwing something off. 😕The text was updated successfully, but these errors were encountered: