Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on init #196

Open
kevincox opened this issue Apr 20, 2021 · 4 comments
Open

Crash on init #196

kevincox opened this issue Apr 20, 2021 · 4 comments

Comments

@kevincox
Copy link

% rdedup -v
rdedup 3.1.1
...
% RUST_BACKTRACE=1 RDEDUP_PASSPHRASE=test rdedup -d ~/d init
Using passphrase set in RDEDUP_PASSPHRASE
thread 'main' panicked at 'attempted to leave type `linked_hash_map::Node<yaml_rust::yaml::Yaml, yaml_rust::yaml::Yaml>` uninitialized, which is invalid', /build/rustc-1.51.0-src/library/core/src/mem/mod.rs:671:9
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: linked_hash_map::LinkedHashMap<K,V,S>::insert
   4: <serde_yaml::ser::SerializeStruct as serde::ser::SerializeStruct>::serialize_field
   5: rdedup_lib::config::Repo::write
   6: rdedup::run
   7: rdedup::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@dpc
Copy link
Owner

dpc commented Apr 23, 2021

WAT? :D

That's weird. Looks like ... serialization error? A bug in yaml_rust maybe? I'll try to investigate if I find time.

@dywedir
Copy link
Contributor

dywedir commented Apr 24, 2021

It seems to be related to contain-rs/linked-hash-map#100

@dpc
Copy link
Owner

dpc commented Apr 25, 2021

So, cargo update should fix it?

@dywedir
Copy link
Contributor

dywedir commented Aug 9, 2021

Oops, it totally slipped my mind, sorry!
This should already be fixed in 5b4b5fd (2020)
Unfortunately, the last version of rdedup was released before that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants