citp/BlockSci

Always Segmentation fault (core dumped) at 36xxxx/678615 block

xmurobi opened this issue · 1 comments

Please provide a clear and concise description of the problem.

Run:

blocksci_parser bitcoin.conf update

Always:
...
12.63% done, Block 369861/678615
Updating spent outputs
99.99% doneSegmentation fault (core dumped)

Check /var/log/syslog:

...
kernel: [788431.862247] blocksci_parser[21779]: segfault at 4bc ip 00007f55a019cb54 sp 00007f55227fb288 error 6 in libc-2.27.so[7f55a000e000+1e7000]
...

bitcoin.conf:

{
    "chainConfig": {
        "coinName": "bitcoin",
        "dataDirectory": "/home/linshu/github/blocksci-test/bitcoin-bsd",
        "pubkeyPrefix": [
            0
        ],
        "scriptPrefix": [
            5
        ],
        "segwitActivationHeight": 481824,
        "segwitPrefix": "bc"
    },
    "parser": {
        "disk": {
            "blockMagic": 3652501241,
            "coinDirectory": "/home/linshu/github/bitcoind-data",
            "hashFuncName": "doubleSha256"
        },
        "maxBlockNum": 678615
    },
    "version": 5
}

ulimit -Ha

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 513915
max locked memory       (kbytes, -l) 16384
max memory size         (kbytes, -m) unlimited
open files                      (-n) 940000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) 513915
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

ulimit -Sa

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 513915
max locked memory       (kbytes, -l) 16384
max memory size         (kbytes, -m) unlimited
open files                      (-n) 940000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 513915
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

System Information

Using AMI: no
BlockSci version: 0.7.0
Blockchain: Bitcoin
Parser: Disk
Total memory: 128 GB

Hi @xmurobi how did you solve this problem? I am facing the same error while parsing. Thanks.