Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Attempted to Leave Type linked_hashmap::Node<_> Uninitialized #136

Open
johnwstanford opened this issue Feb 27, 2022 · 0 comments
Open

Attempted to Leave Type linked_hashmap::Node<_> Uninitialized #136

johnwstanford opened this issue Feb 27, 2022 · 0 comments

Comments

@johnwstanford
Copy link

When I follow the build instructions and run the executable, I get the following panic. This is on Ubuntu 21.04 with Rust 1.58.

thread 'main' panicked at 'attempted to leave type `linked_hash_map::Node<primitives::hash::H256, db::kv::transaction::KeyState<chain::block_header::BlockHeader>>` uninitialized, which is invalid', /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/linked-hash-map-0.4.2/src/lib.rs:174:52
stack backtrace:
   0: rust_begin_unwind
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:107:14
   2: core::panicking::panic
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:48:5
   3: core::mem::uninitialized
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/mem/mod.rs:676:9
   4: linked_hash_map::LinkedHashMap<K,V,S>::ensure_guard_node
             at /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/linked-hash-map-0.4.2/src/lib.rs:174:52
   5: linked_hash_map::LinkedHashMap<K,V,S>::insert
             at /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/linked-hash-map-0.4.2/src/lib.rs:305:9
   6: lru_cache::LruCache<K,V,S>::insert
             at /home/john/.cargo/registry/src/github.com-1ecc6299db9ec823/lru-cache-0.1.1/src/lib.rs:119:23
   7: <db::kv::cachedb::CacheDatabase<T> as db::kv::db::KeyValueDatabase>::write
             at ./db/src/kv/cachedb.rs:27:6
   8: db::block_chain_db::BlockChainDatabase<T>::insert
             at ./db/src/block_chain_db.rs:306:3
   9: <db::block_chain_db::BlockChainDatabase<T> as storage::block_chain::BlockChain>::insert
             at ./db/src/block_chain_db.rs:684:3
  10: pzec::util::init_db
             at ./pzec/util.rs:34:4
  11: pzec::commands::start::start
             at ./pzec/commands/start.rs:87:2
  12: pzec::run
             at ./pzec/main.rs:71:8
  13: pzec::main
             at ./pzec/main.rs:48:20
  14: core::ops::function::FnOnce::call_once
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/function.rs:227:5
@johnwstanford johnwstanford changed the title Attempted to Leave Type linked_hashmap::Node<_> Uninitialize Attempted to Leave Type linked_hashmap::Node<_> Uninitialized Feb 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant