pijul_org / pijul

#17 pijul record: capacity overflow

Opened by lthms, on March 25, 2017
Closed
lthms commented on March 25, 2017

See the following backtrace

λ RUST_BACKTRACE=1 pijul record                                                                                        /home/lethom/Repos/lkn
thread 'main' panicked at 'capacity overflow', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcore/option.rs:715
stack backtrace:
   1:     0x558b3389a81c - std::sys::imp::backtrace::tracing::imp::write::hf33ae72d0baa11ed
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:42
   2:     0x558b3389f5ae - std::panicking::default_hook::{{closure}}::h59672b733cc6a455
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:351
   3:     0x558b3389f1b4 - std::panicking::default_hook::h1670459d2f3f8843
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:367
   4:     0x558b3389f9eb - std::panicking::rust_panic_with_hook::hcf0ddb069e7beee7
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:555
   5:     0x558b3389f884 - std::panicking::begin_panic::hd6eb68e27bdf6140
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:517
   6:     0x558b3389f7a9 - std::panicking::begin_panic_fmt::hfea5965948b877f8
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:501
   7:     0x558b3389f737 - rust_begin_unwind
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:477
   8:     0x558b338cc8ed - core::panicking::panic_fmt::hc0f6d7b2c300cdd9
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcore/panicking.rs:69
   9:     0x558b338cc97d - core::option::expect_failed::h43c73e9bd7dbebbc
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcore/option.rs:715
  10:     0x558b33592632 - libpijul::optimal_diff::<impl libpijul::backend::T<A, R>>::diff::heaefdaa4026a1fe2
  11:     0x558b335b6c6d - libpijul::record::<impl libpijul::backend::T<A, R>>::diff_with_binary::h2c8c1d4b591adef2
  12:     0x558b335b673c - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  13:     0x558b335b64ad - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  14:     0x558b335b64ad - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  15:     0x558b335b64ad - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  16:     0x558b335b64ad - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  17:     0x558b335b64ad - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  18:     0x558b335b64ad - libpijul::record::<impl libpijul::backend::T<A, R>>::record_all::h09ca016ad7ab29b5
  19:     0x558b335b5211 - libpijul::record::<impl libpijul::backend::T<sanakirja::transaction::MutTxn<'env, ()>, T>>::record::hbea90eb179b21d80
  20:     0x558b33680bcd - pijul::commands::record::run::h16fd783895f636cd
  21:     0x558b3369a203 - pijul::main::hccd444a6f7f0c700
  22:     0x558b338a6a5a - __rust_maybe_catch_panic
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libpanic_unwind/lib.rs:98
  23:     0x558b338a0156 - std::rt::lang_start::hd7c880a37a646e81
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panicking.rs:436
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/panic.rs:361
                        at /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/rt.rs:57
  24:     0x7ffa1a274510 - __libc_start_main
  25:     0x558b33495369 - _start
  26:                0x0 - <unknown>
lthms commented on March 25, 2017

Once again, I’ve been able to record with pijul 0.3, here is the patch.

lthms commented on March 28, 2017

If I am not wrong, AX3bWxWYh47_HUftUFsLL7KJ_fSGT66IzzG_3rh27h0q6xvcXV1z5xkZa6lT2csiwUA35gDwvfHFIazEt_GMuZ8 solves that.