The sound distributed version control system

#784 [TAG, DEBUG, CRASH] assertion failed: `(left == right)`

Closed on March 18, 2024
tankf33der on March 22, 2023
$ pijul init p5
$ cd p5
$ touch a
$ pijul add a
$ pijul rec -am"."
Hash: NLUEVPRCAIINRSDYYZX6YA46VUHGSHJVPED2DL4R34VPWWKE7LGQC
$ piju tag
# EMPTY
$ pijul tag create
JDOCPAWQRRXSM3OEK54BPSDQ6XDWWDBNW3XS3G6NA3Q66EH3R4MQC
$ pijul tag checkout JD
Tag JDOCPAWQRRXSM3OEK54BPSDQ6XDWWDBNW3XS3G6NA3Q66EH3R4MQC restored as channel JDOCPAWQRRXSM3OEK54BPSDQ6XDWWDBNW3XS3G6NA3Q66EH3R4MQC
$ pijul channel switch JDOCPAWQRRXSM3OEK54BPSDQ6XDWWDBNW3XS3G6NA3Q66EH3R4MQC
Outputting repository ←                                                                                        
Reset given paths to last recorded change
$ pijul channel switch main
Outputting repository ←                                                                                        
Reset given paths to last recorded change
$ echo "2" >> a
$ pijul rec -am"."
Hash: HII4OCETWMJIY2JGP442R5WLYKJ7QIKGC5Y3WHCTG2LNSZFMHABAC
$ pijul tag
State JDOCPAWQRRXSM3OEK54BPSDQ6XDWWDBNW3XS3G6NA3Q66EH3R4MQC
Author: [Author({"key": "GP89YRSwsaxJaQa18BsedGSwcEtmzsN5CJ1PL3wWe38P"})]
Date: 2023-03-22 06:26:14.755648183 UTC
$ pijul tag create
JIJB56B5IHTFESUE2GYMXPTR7TAQW6PVQEYDC54HKOZYRWJOFFMAC
$ pijul debug
# CRASH
$ cat /tmp/report-5f4eac39-f5da-4ad7-ae8f-625c8233e796.toml
name = "pijul"
operating_system = "Manjaro 22.0.5 (Sikaris) [64-bit]"
crate_version = "1.0.0-beta.4"
explanation = """
Panic occurred in file 'libpijul/src/pristine/merkle.rs' at line 208
"""
cause = """
assertion failed: `(left == right)`
  left: `0`,
 right: `1`"""
method = "Panic"
backtrace = """

   0: 0x5614f7b3feaf - core::panicking::assert_failed_inner::h3843cc94596771f9
   1: 0x5614f7b251db - core::panicking::assert_failed::h24c3f79ee86a1592
   2: 0x5614f82e4044 - <&T as core::fmt::Debug>::fmt::he62c8719ccb33cfb
   3: 0x5614f864642e - core::fmt::builders::DebugStruct::field::{{closure}}::h4c910f40c9df8aa4
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/fmt/builders.rs:141
                 - core::result::Result<T,E>::and_then::h77622d2ac525e20a
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/result.rs:1371
                 - core::fmt::builders::DebugStruct::field::h210e1df57efd3ee8
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/fmt/builders.rs:124
   4: 0x5614f8649154 - core::fmt::Formatter::debug_struct_field2_finish::ha52ede9ffe644b78
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/fmt/mod.rs:2012
   5: 0x5614f82e422f - <&T as core::fmt::Debug>::fmt::hf3b90376f030cace
   6: 0x5614f864810e - core::fmt::write::h93e2f5923c7eca08
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/fmt/mod.rs:1213
   7: 0x5614f839dff5 - std::io::Write::write_fmt::hfac58d7bea0ed553
   8: 0x5614f83abe86 - sanakirja::debug::print_page::h5e5c0153166ad177
   9: 0x5614f83b8f7d - sanakirja::debug::debug::hde297c63c83043b6
  10: 0x5614f831fe24 - <sanakirja_core::btree::Db_<K,V,P> as sanakirja::debug::Check>::add_refs::h197628d9a33022eb
  11: 0x5614f835b946 - libpijul::pristine::sanakirja::GenericTxn<sanakirja::environment::Txn<alloc::sync::Arc<sanakirja::environment::Env>>>::check_database::h286aa30e5d3cbb47
  12: 0x5614f7e2cb5d - pijul::commands::debug::Debug::run::hcd86e69dacdb6642
  13: 0x5614f7bd39b0 - tokio::runtime::park::CachedParkThread::block_on::h0f683a1159a06dfc
  14: 0x5614f7cbf259 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::he3a921def6b5c1fc
  15: 0x5614f7d123ee - tokio::runtime::runtime::Runtime::block_on::h65e9c6b99d1a3036
  16: 0x5614f7deb8cf - pijul::main::h25783630ee108922
  17: 0x5614f7c98403 - std::sys_common::backtrace::__rust_begin_short_backtrace::h74bdd1790f05fc9e
  18: 0x5614f7cee269 - std::rt::lang_start::{{closure}}::hf77fe313dabad966
  19: 0x5614f86116dc - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h699977d052768608
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/ops/function.rs:287
                 - std::panicking::try::do_call::h4e121e623c70f903
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:483
                 - std::panicking::try::hf9d919e062bc178a
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:447
                 - std::panic::catch_unwind::h7a7b12272684cb97
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panic.rs:140
                 - std::rt::lang_start_internal::{{closure}}::hd96b0eb4844b8762
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/rt.rs:148
                 - std::panicking::try::do_call::h1af1f88f4f92a22c
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:483
                 - std::panicking::try::hf20d7abea7f0f097
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:447
                 - std::panic::catch_unwind::hb0e084c3a9c042e4
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panic.rs:140
                 - std::rt::lang_start_internal::hca9d5c7277f5b67c
                at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/rt.rs:148
  20: 0x5614f7deb9a5 - main
  21: 0x5a6a8a83790 - <unresolved>
  22: 0x5a6a8a8384a - __libc_start_main
  23: 0x5614f7b401b5 - _start
  24:        0x0 - <unresolved>"""
$
pmeunier added a change on May 21, 2023
TDCDBT6XVI5N654HPVJW2IEYCK2PFCMAV52V24NHVBYY5GDMR7YQC
main
tankf33der on March 18, 2024

fixed. closing.

tankf33der closed this discussion on March 18, 2024