The sound distributed version control system

#699 [DEBUG, CRASH] wrong ROOT

Opened by tankf33der on July 18, 2022
tankf33der on July 18, 2022

pijul debug crashes on any ROOT:

$ pijul debug MIKE
# CRASH
$ cat /tmp/report-cfc0a380-2e3d-44a5-8b3b-54d1bad3ed62.toml
name = 'pijul'
operating_system = 'unix:Manjaro'
crate_version = '1.0.0-beta.2'
explanation = '''
Panic occurred in file 'pijul/src/commands/debug.rs' at line 45
'''
cause = 'called `Result::unwrap()` on an `Err` value: FsNotFound("MIKE")'
method = 'Panic'
backtrace = '''

   0: 0x5ca4fb626eb3 - core::result::unwrap_failed::h995262f85f9c4e2c
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/result.rs:1785
   1: 0x5ca4fb685630 - core::result::Result<T,E>::unwrap::hf0c87ea03e65b54d
   2: 0x5ca4fb69d935 - pijul::commands::debug::Debug::run::h19b81aaf77576dca
   3: 0x5ca4fb92ee2f - pijul::run::{{closure}}::h673f6bb9fe9e80b1
   4: 0x5ca4fb8f6890 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h3835acb6d4682965
   5: 0x5ca4fb66cbfd - std::thread::local::LocalKey<T>::with::h709a9a2ff76738fe
   6: 0x5ca4fb87022a - tokio::park::thread::CachedParkThread::block_on::h26a32a5e1755e2fd
   7: 0x5ca4fb7c6194 - tokio::runtime::thread_pool::ThreadPool::block_on::h1b996c6caa6e0e15
   8: 0x5ca4fb709532 - tokio::runtime::Runtime::block_on::hc4ef6ebdf8161556
   9: 0x5ca4fb73a903 - pijul::main::h94c2822d53ea8db8
  10: 0x5ca4fb85e4e3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h2d1afe683d9c1a03
  11: 0x5ca4fb6a3429 - std::rt::lang_start::{{closure}}::habbd99bcfa5c0404
  12: 0x5ca4fbe77c6e - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hf833e7144973d4be
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/ops/function.rs:280
                 - std::panicking::try::do_call::h79761d203bfb6b46
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:492
                 - std::panicking::try::h0561cbbe1722251d
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:456
                 - std::panic::catch_unwind::hbca347ddd031b141
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panic.rs:137
                 - std::rt::lang_start_internal::{{closure}}::h0492050ad281ec32
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/rt.rs:128
                 - std::panicking::try::do_call::h3ebce69871996bb3
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:492
                 - std::panicking::try::hbed537d20e728475
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:456
                 - std::panic::catch_unwind::h4185e2024c6a5d05
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panic.rs:137
                 - std::rt::lang_start_internal::h1899cfd715ca6829
                at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/rt.rs:128
  13: 0x5ca4fb73a9d2 - main
  14: 0x136bebbde290 - <unresolved>
  15: 0x136bebbde34a - __libc_start_main
  16: 0x5ca4fb627065 - _start
                at /build/glibc/src/glibc/csu/../sysdeps/x86_64/start.S:115
  17:        0x0 - <unresolved>'''
$