Code Monkey home page Code Monkey logo

Comments (9)

andr3w321 avatar andr3w321 commented on August 15, 2024

Try running

dmesg

afterwards and see if you ran out of memory

from blockparser.

 avatar commented on August 15, 2024

dmesg tells me the following:

[ 8865.765301] parser[27351]: segfault at 10 ip 000000000046556a sp 00007fff38d00790 error 6 in parser[400000+96000]

i wasn't able to find out what "error 6" means.
my machine has 8gb of ram, would you say this is insufficient to dump the chain?

from blockparser.

andr3w321 avatar andr3w321 commented on August 15, 2024

Not sure. Runs fine for me with 8 gigs, but it does take awhile. It's possible you are running out of swap memory and need more. Try running

watch -d free -m

While you run the command and see what you get. This will show your ram allocation in real time in MBs. Do the other commands run fine for you?

./parser stats
./parser allBalances -a 100
./parser allBalances -a 230000

You could also try downloading valgrind http://www.valgrind.org/downloads/current.html to get some more info on what's going on.

valgrind ./parser sqldump

from blockparser.

DavidCWGA avatar DavidCWGA commented on August 15, 2024

I'm having what I guess is the same problem.

$ ./parser stats

info: starting command "simpleStats"
Segmentation fault

dmesg:

parser[4600]: segfault at 10 ip 0000000000450ae3 sp 00007fff0a547050 error 6 in parser[400000+92000]

from blockparser.

andr3w321 avatar andr3w321 commented on August 15, 2024

I had this issue recently and I found that updating bitcoind version and rebooting made it go away. apt-get install bitcoind on ubuntu. You can also try running some bitcoind commands to see if it's working properly. bitcoind getinfo

from blockparser.

murich avatar murich commented on August 15, 2024

[3027241.587691] parser[25537]: segfault at 0 ip 00000000004054b7 sp 00007fffb529b520 error 4 in parser[400000+79000]
What is the meaning of error 4?

I am running it on 4gb RAM machine

$ valgrind ./parser simpleStats
==26897== Memcheck, a memory error detector
==26897== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==26897== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==26897== Command: ./parser simpleStats
==26897==

info: starting command "simpleStats"
==26897== Invalid read of size 8
==26897== at 0x4054B7: ??? (in /root/blockparser/parser)
==26897== by 0x574CEC4: (below main) (libc-start.c:287)
==26897== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26897==
==26897==
==26897== Process terminating with default action of signal 11 (SIGSEGV)
==26897== Access not within mapped region at address 0x0
==26897== at 0x4054B7: ??? (in /root/blockparser/parser)
==26897== by 0x574CEC4: (below main) (libc-start.c:287)
==26897== If you believe this happened as a result of a stack
==26897== overflow in your program's main thread (unlikely but
==26897== possible), you can try to increase the size of the
==26897== main thread stack using the --main-stacksize= flag.
==26897== The main thread stack size used in this run was 8388608.
==26897==
==26897== HEAP SUMMARY:
==26897== in use at exit: 531,468 bytes in 111 blocks
==26897== total heap usage: 241 allocs, 130 frees, 539,361 bytes allocated
==26897==
==26897== LEAK SUMMARY:
==26897== definitely lost: 0 bytes in 0 blocks
==26897== indirectly lost: 0 bytes in 0 blocks
==26897== possibly lost: 2,865 bytes in 64 blocks
==26897== still reachable: 528,603 bytes in 47 blocks
==26897== suppressed: 0 bytes in 0 blocks
==26897== Rerun with --leak-check=full to see details of leaked memory
==26897==
==26897== For counts of detected and suppressed errors, rerun with: -v
==26897== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)

from blockparser.

znort987 avatar znort987 commented on August 15, 2024

Try to see if latest still has this problem.
Given that blockparser does not use mmap anymore, this is likely going to be fixed.
Also blockparser i snow much faster.

from blockparser.

privatenode avatar privatenode commented on August 15, 2024

[71549.799128] show_signal_msg: 15 callbacks suppressed
[71549.799131] parser[1894]: segfault at 7ff1bede7414 ip 0000000000430d22 sp 00007ffdcdc12170 error 4 in parser[400000+47000]

from blockparser.

reppolice avatar reppolice commented on August 15, 2024

I've got a 15GB machine and it shows 90% of RAM goes to the parser and it will be running for many hours, hope the memory will not increase any further but I can see why my 8GB machine also segfaults

from blockparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.