The sound distributed version control system

#264 lock on existing file crashes

Closed on January 14, 2021
tankf33der on January 14, 2021

crates’s pijul:

<SKIP>
$ pijul diff --short
$ pijul ls
a
$ pijul lock a
CRASH
$ cat /tmp/report-55fa09c3-7076-4e28-8135-7f68a2795c10.toml
name = 'pijul'
operating_system = 'unix:Manjaro'
crate_version = '1.0.0-alpha.33'
explanation = '''
Panic occurred in file '/home/mpech/.cargo/registry/src/github.com-1ecc6299db9ec823/pijul-1.0.0-alpha.33/src/commands/lock.rs' at line 32
'''
cause = 'called `Result::unwrap()` on an `Err` value: Os { code: 98, kind: AddrInUse, message: "Address already in use" }'
method = 'Panic'
backtrace = '''

   0: 0x59406a9cab83 - core::option::expect_none_failed::h1a6f64ce49780e5b
                at /build/rust/src/rustc-1.48.0-src/library/core/src/option.rs:1234
   1: 0x59406a208e6a - pijul::run::{{closure}}::hc2262c135fa5642d
   2: 0x59406a1aca6b - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h65ed4fc67d0d7159
   3: 0x59406a2687d2 - tokio::runtime::thread_pool::ThreadPool::block_on::hdf27b1f2b9fdf391
   4: 0x59406a3871d0 - tokio::runtime::Runtime::block_on::hcc006e041f16ec64
   5: 0x59406a30f486 - pijul::main::h980561b7c559d3c6
   6: 0x59406a255ca3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h1368f3d8774115b0
   7: 0x59406a2c6b79 - std::rt::lang_start::{{closure}}::hefe72f963cc76b76
   8: 0x59406a9a7cf7 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hba2eeded6e43561f
                at /build/rust/src/rustc-1.48.0-src/library/core/src/ops/function.rs:259
                 - std::panicking::try::do_call::h2d2f9a7ece5d85e2
                at /build/rust/src/rustc-1.48.0-src/library/std/src/panicking.rs:381
                 - std::panicking::try::he67fa7d0004e7010
                at /build/rust/src/rustc-1.48.0-src/library/std/src/panicking.rs:345
                 - std::panic::catch_unwind::h61fcdf94f063131b
                at /build/rust/src/rustc-1.48.0-src/library/std/src/panic.rs:382
                 - std::rt::lang_start_internal::h0c3b9dc1678c8c77
                at /build/rust/src/rustc-1.48.0-src/library/std/src/rt.rs:51
   9: 0x59406a30f542 - main
  10: 0x7e76d97a5152 - __libc_start_main
  11: 0x59406a1482be - _start
  12:        0x0 - <unresolved>'''
$
pmeunier added a change on January 14, 2021
7U24EGSTEGROEZY5UG25ZSDR4OOWSWX6RRJM4PISIVY5CBI4TJTQC
pmeunier on January 14, 2021

Thanks for the report. I’ve hidden pijul lock, as it’s not meant to be used directly. I’ve also independently fixed the panic.

pmeunier closed this discussion on January 14, 2021
pmeunier added a change on January 14, 2021
64M73LNCB2V57AWAAKHK2NNERXANMV5V3XI3TFC4XR7FLJNCDCRQC
main