Opened 3 years ago

Last modified 3 years ago

#64889 new defect

tealdeer @1.5.0: Thread panic at cache update

Reported by: herrbischoff (Marcel Bischoff) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: herbygillot (Herby Gillot)
Port: tealdeer

Description

Attempting to initially update the local cache for tldr information leads to the application crashing. Since this is required to actually use the application, I consider this broken for the time being.

Here's the full backtrace:

$ RUST_BACKTRACE=full tldr --update
thread 'main' panicked at 'Client::new(): reqwest::Error { kind: Builder, source: MissingOrMalformedExtensions }', /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_tealdeer/tealdeer/work/.home/.cargo/macports/reqwest-0.11.8/src/blocking/client.rs:798:38
stack backtrace:
   0:        0x10e685718 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3f6c67686edecf39
   1:        0x10e4cf59b - core::fmt::write::hff834863a5b3044e
   2:        0x10e67f99a - std::io::Write::write_fmt::hd31e381c0493437f
   3:        0x10e681725 - std::panicking::default_hook::{{closure}}::h950b42ae6eb53c9e
   4:        0x10e682401 - std::panicking::rust_panic_with_hook::hd8618b0e276f4721
   5:        0x10e685efa - std::panicking::begin_panic_handler::{{closure}}::had94d844a03b1eef
   6:        0x10e685e79 - std::sys_common::backtrace::__rust_end_short_backtrace::h587724d0ec62e9d9
   7:        0x10e681a75 - _rust_begin_unwind
   8:        0x10e74d1ff - core::panicking::panic_fmt::h70f2ab4e46e3f444
   9:        0x10e74d7a5 - core::result::unwrap_failed::he77217c81c388563
  10:        0x10e6a8443 - tldr::cache::Cache::update::h089e9d8f77fce042
  11:        0x10e6bc943 - tldr::main::h6605aa406defc1b7
  12:        0x10e6b36e6 - std::sys_common::backtrace::__rust_begin_short_backtrace::he2eeed6f507caf6a
  13:        0x10e6b92db - _main

Change History (2)

comment:1 Changed 3 years ago by herbygillot (Herby Gillot)

I'm unable to reproduce:

➜  ~ RUST_BACKTRACE=full tldr --update
Successfully updated cache.

What are your environment details? macOS version? MacPorts version? port installed tealdeer?

comment:2 Changed 3 years ago by herrbischoff (Marcel Bischoff)

Ah, please excuse me. Should have added this information initially of course.

$ port installed tealdeer
The following ports are currently installed:
  tealdeer @1.5.0_0 (active)
$ sw_vers
ProductName:    macOS
ProductVersion: 11.6.5
BuildVersion:   20G527
$ port version
Version: 2.7.2
Note: See TracTickets for help on using tickets.