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

panic on package cleanup #8173

Closed
Byter09 opened this issue Apr 28, 2020 · 1 comment
Closed

panic on package cleanup #8173

Byter09 opened this issue Apr 28, 2020 · 1 comment
Labels
C-bug Category: bug

Comments

@Byter09
Copy link

Byter09 commented Apr 28, 2020

Problem

The original problem happened after we updated to Rust 1.43. The new builder image of course also includes the new cargo, rustfmt, etc.

Apart from the usual fixes like the new clippy lints, the kcov job started to fail.
Thanks to @Nemo157 on Discord it turned out the problem isn't kcov but an internal call to clean up.

Steps

That's kind of tricky because this is a proprietary project and I can not reproduce this using new and empty projects. I will continue trying it when nothing else comes up but otherwise all I can do is report this as good as I can and then continue doing other work related tasks. Anyway, here are the steps using the redacted project names from the log file at the end of the issue:

  1. cd <redacted-project1>/rusty (this is our rust component)
  2. cargo clean --package rusty
    and you're greeted by thread 'main' panicked at 'assertion failed: self.host', src/tools/cargo/src/cargo/core/profiles.rs:920:13

Possible Solution(s)

Notes

Output of cargo version:
cargo 1.43.0 (3532cf738 2020-03-17)

$ rustc --version
rustc 1.43.0 (4fb7144ed 2020-04-20)
$ uname -a
Linux BTR-PC 5.6.7-1-MANJARO #1 SMP PREEMPT Thu Apr 23 10:50:31 UTC 2020 x86_64 GNU/Linux
$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu

Note for the above: We're also building for other toolchains but I don't have them installed because we use the CI for that - it shouldn't matter though, as this happens in kcov which uses stable-x86_64-unknown-linux-gnu.

Here's the output from CARGO_LOG=debug cargo clean --package rusty:
redacted.log

@Byter09 Byter09 added the C-bug Category: bug label Apr 28, 2020
@ehuss
Copy link
Contributor

ehuss commented Apr 28, 2020

Thanks, this is a known issue, closing as a duplicate of #8149.

@ehuss ehuss closed this as completed Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants