Skip to content

Segfault soon after run start #16

@yuvadm

Description

@yuvadm

Soon after startup got this:

$ cargo run --release --bin bitcoin-indexer
    Finished release [optimized] target(s) in 0.42s
     Running `target/release/bitcoin-indexer`
Block 0H: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Block 1000H: 00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09
Block 2000H: 00000000dfd5d65c9d8561b4b8f60a63018fe3933ecb131fb37f905f87da951a
Block 3000H: 000000004a81b9aa469b11649996ecb0a452c16d1181e72f9f980850a1c5ecce
...
Block 70000H: 00000000002b8cd0faa58444df3ba2a22af2b5838c7e4a5b687444f913a575c2
Block 71000H: 00000000003eea76022498376477294a921cfabeee70f0630ce0fd45dc22179b
Block 72000H: 0000000000eb357d4c6fef6ad9a6fade126985ad36042a99cf215a4454545977
thread '<unnamed>' panicked at 'attempted to leave type `nodrop::NoDrop<(epoch::Epoch, garbage::Bag)>` uninitialized, which is invalid', /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/mem/mod.rs:659:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault (core dumped)

Running plain vanilla Ubuntu 20.04 with latest stable rust 1.49.0:

$ uname -a
Linux ip-172-31-36-91 5.4.0-1029-aws #30-Ubuntu SMP Tue Oct 20 10:06:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/ubuntu/snap/rustup/common/rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.49.0 (e1884a8e3 2020-12-29)

Might be similar to openethereum/openethereum#157 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions