-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
-Zprofile broken in nightly? #50203
Comments
It would be great if we could bisect this, to know what caused the regression. |
Thanks. It still breaks on the latest nightly.
This feature is really important to get a proper code coverage profile. |
I'm trying to bisect manually. |
2017-12-24 is working. 2017-12-25 is broken. |
I guess we should have added parsing of gcda as part of this test: https://github.com/rust-lang/rust/blob/master/src/test/run-make-fulldeps/profile/Makefile. |
@alexcrichton is the range from #50203 (comment) correct? I guess there's a precise way to tell what commit a given Nightly build correspons to? |
The regression happens between 1699293...c284f88 PRs in this range:
Fast PR-by-PR bisection is impossible at this point since the artifacts have been deleted. |
It is caused by incremental compilation.
|
Almost done. |
325d739 is the culprit. |
325d739 updated Cargo from 930f9d949b384fde9b0d7b9cc590515933f194c0 to e08f310188cc0d101550c21b3d88877cfba7e5e1, here's the list of commits that landed between the two: rust-lang/cargo@930f9d9...e08f310. |
So I guess it's simply rust-lang/cargo#4817. |
Well so we're back to square one 😞. Maybe inc. comp. is simply incompatible with -Zprofile. |
We could disable incremental compilation when profile is enabled, like for LTO. |
I've opened #51645 to do this. |
…michaelwoerister Raise an error if gcov profiling and incremental compilation are both enabled Fixes #50203.
The same problem reappeared in 1.60.0-nightly (09cb29c 2022-02-15)
See https://github.com/wllenyj/dragonball-sandbox/runs/5212083346 for details. |
I am using
-Zprofile
to use gcov. However, the results are corrupted.Here are my info.
Reproduce the issue:
It works when using older version:
I don't know if this issue related with kennytm/cov#18
Also: ping #42524
The text was updated successfully, but these errors were encountered: