Skip to content

Jcli panics when priting to stdout #882

@mmahut

Description

@mmahut

Describe the bug

#  jcli rest v0 leaders logs get  -h http://127.0.0.1:8443/api|less
thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', src/libstd/io/stdio.rs:792:9
stack backtrace:
   0:     0x56443e992601 - std::sys_common::backtrace::print::h74e8383011c48ac1
   1:     0x56443e983a44 - std::panicking::default_hook::{{closure}}::hc989d29eac1bf07a
   2:     0x56443e9837d3 - std::panicking::default_hook::h999474d3b9874310
   3:     0x56443e984150 - std::panicking::rust_panic_with_hook::h8ac69ca134e1594e
   4:     0x56443e983cd2 - std::panicking::continue_panic_fmt::ha458e61c9ee535d1
   5:     0x56443e983c1f - std::panicking::begin_panic_fmt::h21166bd127fc249a
   6:     0x56443e9915d5 - std::io::stdio::_print::h2d56082d59d2e96c
   7:     0x56443e4ac6ec - jcli::jcli_app::rest::v0::leaders::Leaders::exec::h67d74929ace96763
   8:     0x56443e52ac0d - jcli::jcli_app::rest::v0::V0::exec::hea96bd2f0572ded3
   9:     0x56443e5935f8 - jcli::jcli_app::JCli::exec::h1f1831e630c4453e
  10:     0x56443e52ceeb - jcli::main::h76017846829305d3
  11:     0x56443e434433 - std::rt::lang_start::{{closure}}::h61b7bb1eacf86412
  12:     0x56443e983b53 - std::panicking::try::do_call::h0c14233a80d9596c
  13:     0x56443e99419a - __rust_maybe_catch_panic
  14:     0x56443e986cb9 - std::rt::lang_start_internal::h34c921f5951345b4
  15:     0x56443e5338f5 - main
  16:     0x7fed4be45b8e - __libc_start_main
  17:     0x56443e3cf1ba - _start
  18:                0x0 - <unknown>

Mandatory Information

  1. jcli --full-version output;
    jcli 0.5.4 (, release, linux [x86_64]) - [rustc 1.38.0] (from NixOS)
  2. jormungandr --full-version output;
    jormungandr 0.5.4 (, release, linux [x86_64]) - [rustc 1.38.0] (from NixOS)

To Reproduce
Steps to reproduce the behavior:

  1. jcli rest v0 leaders logs get -h http://127.0.0.1:8443/api|less
  2. Quit less

Expected behavior
No panic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions