Bug 269953 - lang/rust: cargo(1) panic
Summary: lang/rust: cargo(1) panic
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: FreeBSD Rust Team
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2023-03-04 00:10 UTC by Slawomir Wojciech Wojtczak
Modified: 2023-12-09 19:47 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (rust)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slawomir Wojciech Wojtczak 2023-03-04 00:10:23 UTC
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.
Comment 1 Piotr Kubaj freebsd_committer freebsd_triage 2023-03-04 00:40:08 UTC
"package rldd not found"
Comment 2 Slawomir Wojciech Wojtczak 2023-03-04 01:45:23 UTC
(In reply to Piotr Kubaj from comment #1)

Yes. I installed package 'rlld' some time ago - but I was able to upgrade it last time. Its strange that it panics and its not even able to list or update packages. I have about 7 other packages that needs to be updated.

I do not use 'rlld' and it can be removed ... but cargo(1) just panics and nothing more can be done.

I can of course remove ~/.cargo dir and start over ...

Regards.
Comment 3 Mikael Urankar freebsd_committer freebsd_triage 2023-12-09 15:38:42 UTC
is it still an issue?
Comment 4 Slawomir Wojciech Wojtczak 2023-12-09 19:47:18 UTC
(In reply to Mikael Urankar from comment #3)

I removed ~/.cargo dir and installed all packages fresh and the problem disappeared so I think we can close this one - if there is no better idea what to do here.

Regards,
vermaden