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

Depending on a bad version of generic_array #4

Open
riking opened this issue Feb 28, 2024 · 0 comments
Open

Depending on a bad version of generic_array #4

riking opened this issue Feb 28, 2024 · 0 comments

Comments

@riking
Copy link

riking commented Feb 28, 2024

panic: attempted to leave type generic_array::GenericArray<ubiquity::state::ArchiveEntryPerReplica, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>> uninitialized, which is invalid

https://asan.saethlin.dev/ub?crate=ubiquity&version=0.2.0

stack backtrace:
   0: rust_begin_unwind
             at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/panicking.rs:597:5
   1: core::panicking::panic_nounwind_fmt
             at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:106:14
   2: core::panicking::panic_nounwind
             at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:136:5
   3: core::mem::uninitialized
             at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs:692:9
   4: generic_array::ArrayBuilder<T,N>::new
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/generic-array-0.13.3/src/lib.rs:187:38
   5: <generic_array::GenericArray<T,N> as core::iter::traits::collect::FromIterator<T>>::from_iter
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/generic-array-0.13.3/src/lib.rs:299:35
   6: ubiquity::detect::util::scan_directory_contents::{{closure}}
             at ./src/detect/util.rs:94:25
   7: std::collections::hash::map::Entry<K,V>::or_insert_with
             at /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/collections/hash/map.rs:2560:43
   8: ubiquity::detect::util::scan_directory_contents
             at ./src/detect/util.rs:91:17
   9: ubiquity::detect::find_updates
             at ./src/detect/mod.rs:208:9
  10: lib::test_changes_are_detected
             at ./tests/lib.rs:84:18
  11: lib::test_changes_are_detected::{{closure}}
             at ./tests/lib.rs:78:31

Try updating to v1.0.0 of generic_array.

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

1 participant