tendermint / tmkms

Key Management service for Tendermint Validator nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v0.6.0-rc1 panic on "tmkms yubihsm" invocation

mdyring opened this issue · comments

On v0.6.0-rc1 invoking "tmkms yubihsm" results in

tmkms yubihsm
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/mdyring/.cargo/registry/src/github.com-1ecc6299db9ec823/abscissa_core-0.2.0/src/command/usage.rs:157:78
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:70
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:58
             at src/libstd/panicking.rs:200
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:215
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:478
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:385
   6: rust_begin_unwind
             at src/libstd/panicking.rs:312
   7: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
   8: core::panicking::panic_bounds_check
             at src/libcore/panicking.rs:61
   9: abscissa_core::command::usage::Usage::print_error_and_exit
  10: abscissa_core::command::Command::from_args
  11: abscissa_core::application::Application::run
  12: abscissa_core::application::boot
  13: tmkms::main
  14: std::rt::lang_start::{{closure}}
  15: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:297
  16: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:87
  17: std::rt::lang_start_internal
             at src/libstd/panicking.rs:276
             at src/libstd/panic.rs:388
             at src/libstd/rt.rs:48
  18: main
  19: __libc_start_main
  20: _start

Btw, same behaviour seen with "tmkms softsign". I suppose this might also relate to ledger, but compiled without ledger support.

It's an Abscissa bug. PR to fix it here: iqlusioninc/abscissa#106

(note: the code for displaying usage info in Abscissa is a bit gross right now and I intend to rewrite it all soon, which among other things will make it easier to test)

Fixed upstream