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

Cargo hangs with 100% CPU usage #2376

Closed
MagaTailor opened this issue Feb 9, 2016 · 3 comments
Closed

Cargo hangs with 100% CPU usage #2376

MagaTailor opened this issue Feb 9, 2016 · 3 comments

Comments

@MagaTailor
Copy link

Trying to cargo build https://github.com/swiboe/swiboe prints:

 Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/carllerche/mio.git`
    Updating git repository `https://github.com/carllerche/nix-rust`
    Updating git repository `https://github.com/alexcrichton/wio`
    Updating git repository `https://github.com/carllerche/bytes`

and then after more than 10 minutes (arm) of cargo using 100% cycles:

failed to select a version for `libc` (required by `rand`):
all possible versions conflict with previously selected versions of `libc`
  version 0.1.0 in use by libc v0.1.0
  possible versions to select: 0.1.12, 0.1.10, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1

After modifying Cargo.toml to use newer libc it seems to just hang, but using the cargo-bake command suddenly printed this:

no matching package named `wio` found (required by `mio`)
location searched: https://github.com/alexcrichton/wio
version required: *

It doesn't reproduce since then. Nice non-determinism!

@alexcrichton
Copy link
Member

I think that this is a dupe of #2090, so closing in favor of that, but thanks for the report!

@MagaTailor
Copy link
Author

Using -j 1 shows it hangs doing exactly this:

Updating git repository `https://github.com/alexcrichton/wio`

The swiboe repo is abandoned at the moment so maybe this dependency shouldn't even be there?

@alexcrichton
Copy link
Member

The -j flag doesn't affect the resolution step, and it's likely not hanging on actually updating the git repo, that was just the last error message printed. It's likely stuck in resolve and not making progress nearly as quickly as it should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants