[Bug 269953] lang/rust: cargo(1) panic

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Mar 2023 00:10:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269953

            Bug ID: 269953
           Summary: lang/rust: cargo(1) panic
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: vermaden@interia.pl
             Flags: maintainer-feedback?(rust@FreeBSD.org)
          Assignee: rust@FreeBSD.org

Hi.

Not sure if I do something wrong or is it really a bug.

... but just in case submitting it.

Its about cargo(1) command.



  % pkg which -o $( which cargo )
  /usr/local/bin/cargo was installed by package lang/rust



I wanted to update the cargo(1) packages and it panicked.

... so I gathered the 'backtraces' as the command suggested.




  % cargo install-update -a                                                     
      Updating registry 'https://github.com/rust-lang/crates.io-index'          

  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
    "package rldd not found"',
/home/vermaden/.cargo/registry/src/github.com-1ecc6299db9ec
    823/cargo-update-11.0.0/src/ops/mod.rs:216:149
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace




  % export RUST_BACKTRACE=1                                                  
  % cargo install-update --list
      Updating registry 'https://github.com/rust-lang/crates.io-index'

  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
    "package rldd not found"',
/home/vermaden/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-update-11.0.0/src/ops/mod.rs:216:149
  stack backtrace:
     0: rust_begin_unwind
     1: core::panicking::panic_fmt
     2: core::result::unwrap_failed
     3: cargo_update::ops::RegistryPackage::pull_version
     4: cargo_install_update::actual_main
     5: cargo_install_update::main
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose
backtrace.




  % export RUST_BACKTRACE=full 
  % cargo install-update --list
      Updating registry 'https://github.com/rust-lang/crates.io-index'

  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
    "package rldd not found"',
/home/vermaden/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-update-11.0.0/src/ops/mod.rs:216:149
  stack backtrace:
     0:          0x13b632c -
<std::sys_common::backtrace::_print::DisplayBacktrace as
core::fmt::Display>::fmt::hf9bca0a54f465bd9
     1:          0x13cd36e - core::fmt::write::hdf9e1b7bc0c7ef23
     2:          0x138fcf1 - std::io::Write::write_fmt::h6e00616d8cf5d394
     3:          0x13a0745 -
std::panicking::default_hook::{{closure}}::ha5a1e37665f439d8
     4:          0x13a03ae - std::panicking::default_hook::h791a251cba6fed5f
     5:          0x13a0d58 -
std::panicking::rust_panic_with_hook::h184324b56212ec2b
     6:          0x13b6c67 -
std::panicking::begin_panic_handler::{{closure}}::hdd7dccc960a25e4f
     7:          0x13b6444 -
std::sys_common::backtrace::__rust_end_short_backtrace::h1fb3000d64dd03f0
     8:          0x13a0a02 - rust_begin_unwind
     9:          0x13cfab3 - core::panicking::panic_fmt::hc3aba48bba555f86
    10:          0x13d0c13 - core::result::unwrap_failed::hb64f9d366cb13a63
    11:          0x11b787c -
cargo_update::ops::RegistryPackage::pull_version::h60d319c24d327d77
    12:          0x1182fb0 -
cargo_install_update::actual_main::h068ed47e27ba3b8c
    13:          0x1181bd6 - cargo_install_update::main::h6008ace6d9a29c67
    14:          0x118f8b3 -
std::sys_common::backtrace::__rust_begin_short_backtrace::h53657e7a72ae2385
    15:          0x117c6f9 -
std::rt::lang_start::{{closure}}::h589beb3458bfbe1d
    16:          0x138e9e1 - std::rt::lang_start_internal::h1d0782bd0a0efa37
    17:          0x1185632 - main



Regards.

-- 
You are receiving this mail because:
You are the assignee for the bug.