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 install/build failing with latest nightly #40631

Closed
sophiajt opened this issue Mar 18, 2017 · 6 comments
Closed

cargo install/build failing with latest nightly #40631

sophiajt opened this issue Mar 18, 2017 · 6 comments

Comments

@sophiajt
Copy link
Contributor

On Windows, trying to do a cargo install:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\libcore\option.rs:323
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
   0: git_openssl_set_locking

Seems to be okay with nightly-2017-03-03 but recent nightly seems to have issues.

@Arzte
Copy link
Contributor

Arzte commented Mar 18, 2017

Seems to be completly broken, for example our travis builds for nightly crash on
cargo --version.

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:323
stack backtrace:
   0:     0x555a754c3ac3 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::hf9ed9ccfd9f14c2b
                               at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1:     0x555a754bfdf4 - std::sys_common::backtrace::_print::hd8a1b72dcf3955ef
                               at /checkout/src/libstd/sys_common/backtrace.rs:71
   2:     0x555a754cb6bc - std::panicking::default_hook::{{closure}}::h5ff605bba7612658
                               at /checkout/src/libstd/sys_common/backtrace.rs:60
                               at /checkout/src/libstd/panicking.rs:355
   3:     0x555a754cb284 - std::panicking::default_hook::h9bc4f6dfee57d6bd
                               at /checkout/src/libstd/panicking.rs:371
   4:     0x555a754cbb0b - std::panicking::rust_panic_with_hook::hdc01585dc2bf7122
                               at /checkout/src/libstd/panicking.rs:549
   5:     0x555a754cb9e4 - std::panicking::begin_panic::hf84f4975d9f9b642
                               at /checkout/src/libstd/panicking.rs:511
   6:     0x555a754cb919 - std::panicking::begin_panic_fmt::hcc3f360b2ba80419
                               at /checkout/src/libstd/panicking.rs:495
   7:     0x555a754cb8a7 - rust_begin_unwind
                               at /checkout/src/libstd/panicking.rs:471
   8:     0x555a754f801d - core::panicking::panic_fmt::h795d9a9608ddc2bb
                               at /checkout/src/libcore/panicking.rs:69
   9:     0x555a754f7f54 - core::panicking::panic::hcab3e0dfa81beee9
                               at /checkout/src/libcore/panicking.rs:49
  10:     0x555a7517a6de - cargo::version::haea7e89a3b191e3c
                               at /checkout/src/libcore/macros.rs:21
                               at /checkout/cargo/src/cargo/lib.rs:263
  11:     0x555a74f2c7eb - cargo::execute::h38e6c27236d82ec3
                               at /checkout/cargo/src/bin/cargo.rs:156
  12:     0x555a74f24701 - cargo::call_main_without_stdin::hde98a839d8ab6c0f
                               at /checkout/cargo/src/cargo/lib.rs:128
  13:     0x555a74f2c2e1 - cargo::main::h2cff0d0817bf7ef6
                               at /checkout/cargo/src/bin/cargo.rs:91
                               at /checkout/cargo/src/bin/cargo.rs:84
  14:     0x555a754cb805 - std::panicking::try::do_call::h689a21caeeef92aa
                               at /checkout/src/libstd/panicking.rs:454
  15:     0x555a754d2aca - __rust_maybe_catch_panic
                               at /checkout/src/libpanic_unwind/lib.rs:98
  16:     0x555a754cc2a6 - std::rt::lang_start::hf63d494cb7dd034c
                               at /checkout/src/libstd/panicking.rs:433
                               at /checkout/src/libstd/panic.rs:361
                               at /checkout/src/libstd/rt.rs:57
  17:     0x7fb9e3e8f7ec - __libc_start_main
  18:     0x555a74f13b4c - <unknown>

cargo install cargo-update

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /checkout/src/libcore/option.rs:323
stack backtrace:
   0:     0x55f0d4951ac3 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::hf9ed9ccfd9f14c2b
                               at /checkout/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1:     0x55f0d494ddf4 - std::sys_common::backtrace::_print::hd8a1b72dcf3955ef
                               at /checkout/src/libstd/sys_common/backtrace.rs:71
   2:     0x55f0d49596bc - std::panicking::default_hook::{{closure}}::h5ff605bba7612658
                               at /checkout/src/libstd/sys_common/backtrace.rs:60
                               at /checkout/src/libstd/panicking.rs:355
   3:     0x55f0d4959284 - std::panicking::default_hook::h9bc4f6dfee57d6bd
                               at /checkout/src/libstd/panicking.rs:371
   4:     0x55f0d4959b0b - std::panicking::rust_panic_with_hook::hdc01585dc2bf7122
                               at /checkout/src/libstd/panicking.rs:549
   5:     0x55f0d49599e4 - std::panicking::begin_panic::hf84f4975d9f9b642
                               at /checkout/src/libstd/panicking.rs:511
   6:     0x55f0d4959919 - std::panicking::begin_panic_fmt::hcc3f360b2ba80419
                               at /checkout/src/libstd/panicking.rs:495
   7:     0x55f0d49598a7 - rust_begin_unwind
                               at /checkout/src/libstd/panicking.rs:471
   8:     0x55f0d498601d - core::panicking::panic_fmt::h795d9a9608ddc2bb
                               at /checkout/src/libcore/panicking.rs:69
   9:     0x55f0d4985f54 - core::panicking::panic::hcab3e0dfa81beee9
                               at /checkout/src/libcore/panicking.rs:49
  10:     0x55f0d46086de - cargo::version::haea7e89a3b191e3c
                               at /checkout/src/libcore/macros.rs:21
                               at /checkout/cargo/src/cargo/lib.rs:263
  11:     0x55f0d459d8cf - cargo::ops::registry::http_handle::h3e076e6b4e3144ec
                               at /checkout/cargo/src/cargo/ops/registry.rs:227
  12:     0x55f0d45c6e19 - <cargo::sources::registry::remote::RemoteRegistry<'cfg> as cargo::sources::registry::RegistryData>::update_index::h282902cfa6380402
                               at /checkout/cargo/src/cargo/sources/registry/remote.rs:63
  13:     0x55f0d45cc6c7 - cargo::sources::registry::RegistrySource::do_update::h07f4b56389efd3cc
                               at /checkout/cargo/src/cargo/sources/registry/mod.rs:309
  14:     0x55f0d45cc986 - <cargo::sources::registry::RegistrySource<'cfg> as cargo::core::source::Source>::update::h790227a7871fecb4
                               at /checkout/cargo/src/cargo/sources/registry/mod.rs:353
  15:     0x55f0d4526ff2 - cargo::ops::cargo_install::install::ha102628dcbc73b48
                               at /checkout/cargo/src/cargo/core/source.rs:64
                               at /checkout/cargo/src/cargo/ops/cargo_install.rs:273
                               at /checkout/cargo/src/cargo/ops/cargo_install.rs:80
  16:     0x55f0d43cf96e - cargo::try_execute_builtin_command::h117b1963a08549be
                               at /checkout/cargo/src/bin/install.rs:148
                               at /checkout/cargo/src/cargo/lib.rs:128
                               at /checkout/cargo/src/bin/cargo.rs:259
  17:     0x55f0d43bb714 - cargo::execute::h38e6c27236d82ec3
                               at /checkout/cargo/src/bin/cargo.rs:223
  18:     0x55f0d43b2701 - cargo::call_main_without_stdin::hde98a839d8ab6c0f
                               at /checkout/cargo/src/cargo/lib.rs:128
  19:     0x55f0d43ba2e1 - cargo::main::h2cff0d0817bf7ef6
                               at /checkout/cargo/src/bin/cargo.rs:91
                               at /checkout/cargo/src/bin/cargo.rs:84
  20:     0x55f0d4959805 - std::panicking::try::do_call::h689a21caeeef92aa
                               at /checkout/src/libstd/panicking.rs:454
  21:     0x55f0d4960aca - __rust_maybe_catch_panic
                               at /checkout/src/libpanic_unwind/lib.rs:98
  22:     0x55f0d495a2a6 - std::rt::lang_start::hf63d494cb7dd034c
                               at /checkout/src/libstd/panicking.rs:433
                               at /checkout/src/libstd/panic.rs:361
                               at /checkout/src/libstd/rt.rs:57
  23:     0x7f8ea52457ec - __libc_start_main
  24:     0x55f0d43a1b4c - <unknown>

@devunt
Copy link

devunt commented Mar 18, 2017

Same error occured in nightly on Windows.
Occured when running cargo +nightly install and also cargo +nightly --version too.

Detailed traceback:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\libcore\option.rs:323
stack backtrace:
   0:     0x7ff752fbf995 - <unknown>
   1:     0x7ff752fcd9a7 - <unknown>
   2:     0x7ff752fcd289 - <unknown>
   3:     0x7ff752fcdf01 - <unknown>
   4:     0x7ff752fcdd68 - <unknown>
   5:     0x7ff752fcdcc1 - <unknown>
   6:     0x7ff752fcdc39 - <unknown>
   7:     0x7ff752fd7e47 - <unknown>
   8:     0x7ff752fd7d8c - <unknown>
   9:     0x7ff752e511a0 - <unknown>
  10:     0x7ff752dc8fbd - <unknown>
  11:     0x7ff752e01c2e - <unknown>
  12:     0x7ff752e05ad8 - <unknown>
  13:     0x7ff752cdfc01 - <unknown>
  14:     0x7ff752cac23d - <unknown>
  15:     0x7ff752d6f73e - <unknown>
  16:     0x7ff752d6999b - <unknown>
  17:     0x7ff752d68e44 - <unknown>
  18:     0x7ff752da2e68 - <unknown>
  19:     0x7ff752d21269 - <unknown>
  20:     0x7ff752d3340e - <unknown>
  21:     0x7ff752b92ec3 - <unknown>
  22:     0x7ff752b7d24b - <unknown>
  23:     0x7ff752b732ab - <unknown>
  24:     0x7ff752b7ba80 - <unknown>
  25:     0x7ff752fcf2b1 - <unknown>
  26:     0x7ff752fce4fa - <unknown>
  27:     0x7ff7530d0378 - git_openssl_set_locking
  28:     0x7ff9e4d28363 - BaseThreadInitThunk

@46bit
Copy link

46bit commented Mar 18, 2017

This seems not to be a Windows issue - I'm seeing this on Arch Linux as well.

@devunt
Copy link

devunt commented Mar 18, 2017

Using nightly-2017-03-16 seems to be solving the problem. I guess only nightly-2017-03-17 is broken.

$ cargo +nightly --version
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src\libcore\option.rs:323
note: Run with `RUST_BACKTRACE=1` for a backtrace.

$ cargo +nightly-2017-03-16 --version
cargo 0.18.0-nightly (4a3c0a63b 2017-03-12)

@devunt
Copy link

devunt commented Mar 18, 2017

Found a issue in cargo repo here: rust-lang/cargo#3844.
It also indicates the issue was fixed: rust-lang/cargo#3844 (comment), so closing this issue will be enough.

@alexcrichton
Copy link
Member

Duplicate of rust-lang/cargo#3844, but thanks for the report!

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

5 participants