Post
Topic
Re: Slimcoin | First Proof of Burn currency | Test v0.5 release candidates
by
aIA
on 20/08/2017, 16:38:55 UTC
Hi, i have been reading debug.log file trying identify why slimcoin daemon on raspbery pi (with raspbian) crash so frequently.

I have found that:

Code:
getblocks 253404 to 00000007281451e91875 limit 500
  getblocks stopping at limit 253903 0000000942578c720b5f (0 bytes)
getblocks 253404 to 3bfbb86e0474e8dfb756 limit 500
  getblocks stopping at limit 253903 0000000942578c720b5f (0 bytes)
getblocks 253404 to 64d9ae181c771879b0b2 limit 500
  getblocks stopping at limit 253903 0000000942578c720b5f (0 bytes)
getblocks 1 to 0000000f0c1baa5f2ec8 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000e63eee9fb2b62 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000c8f10b8c2133a limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000005a497af15e194 limit 262653
  likely old client, incrementing misbehaviour count.trying connection 180.155.8.122:41682 lastseen=-28024.5hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000169ff77e7e6903 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000181b4c9e912624 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000116f0c1e4a4b3c limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000b6916ce241de2 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000151a0612e299c2 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000ae4d14270f56f limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000b40a5a86708cb limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000005bc51aa13710 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001c0569ee0c51e1 limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
trying connection 65.94.75.10:41682 lastseen=-26622.2hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000b2cf653b4186c limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000002e91f0b23157a limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001b1f2ea040c19f limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000006f5e524cf638d limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001ce7f3b7b96930 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000f3d0605759654 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001b4ff5aa7723db limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000b7122fc28c93b limit 262653
  likely old client, incrementing misbehaviour count.trying connection 113.106.95.46:41682 lastseen=-389780.4hrs
connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001f5b5e3021be34 limit 262653
  likely old client, incrementing misbehaviour count.trying connection 151.232.214.142:41682 lastseen=-7552.2hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000001003f5885c5ed limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000464acf3dc4af5 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000e6d9a1b967a60 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000fc6ab6ddeff42 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000003f7005b0f096f limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000003a6b8f6398deb limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001335edd3b7d87e limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001733659d322a3d limit 262653
  likely old client, incrementing misbehaviour count.trying connection 118.126.8.18:41682 lastseen=-389780.4hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000009252e20c313ec limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000df096a276b3cc limit 262653
  likely old client, incrementing misbehaviour count.trying connection 130.204.61.171:41682 lastseen=-12147.9hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001198ca6e32ed61 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000009e5595a8b672d limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
trying connection 130.255.73.170:41682 lastseen=-389780.4hrs
connect() failed after select(): Connection refused
trying connection 149.169.122.151:41682 lastseen=-389780.4hrs
connection timeout
trying connection 87.161.65.18:41682 lastseen=-27845.4hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001038c5e534d4f3 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000001a252c674d117 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000019f1ab36c0c76b limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000018a382f520379d limit 262653
  likely old client, incrementing misbehaviour count.trying connection 149.169.123.98:41682 lastseen=-389780.4hrs
connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000016db4fc1502c06 limit 262653
  likely old client, incrementing misbehaviour count.trying connection 67.9.132.6:41682 lastseen=-28305.5hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001508e9f8256bcd limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000003c88f63ab7ac7 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001511c49242dbd8 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001942cbec784fcb limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001e091563c8f8b7 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000002a7c5e0e83da3 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000071b67c4b2ddad limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 000000015125fa4b53b1 limit 262653
  likely old client, incrementing misbehaviour count.connection timeout
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000014fdecd50e5f57 limit 262653
  likely old client, incrementing misbehaviour count.trying connection 161.53.40.94:41682 lastseen=-389780.4hrs
connected 161.53.40.94:41682
connection timeout
socket closed
disconnecting node 161.53.40.94:41682
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 00000000b6fe366a154d limit 262653
  likely old client, incrementing misbehaviour count.trying connection 175.195.8.141:41682 lastseen=-389780.4hrs
trying connection 86.52.165.68:41682 lastseen=-28077.6hrs
  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000fd4973700c114 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000001ce878a1225760 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)


************************
EXCEPTION: St9bad_alloc       
std::bad_alloc       
slimcoin in ThreadMessageHandler()       

At first lines you can read that getblock fuction is trying to get block on packets of 500. Suddlenly it reset the count and start again, from block 1... in this case packets of 262653 blocks. Here´s:

Code:
getblocks 253404 to 3bfbb86e0474e8dfb756 limit 500
  getblocks stopping at limit 253903 0000000942578c720b5f (0 bytes)
getblocks 253404 to 64d9ae181c771879b0b2 limit 500
  getblocks stopping at limit 253903 0000000942578c720b5f (0 bytes)
getblocks 1 to 0000000f0c1baa5f2ec8 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000e63eee9fb2b62 limit 262653
  likely old client, incrementing misbehaviour count.  getblocks stopping at limit 262653 0000000b2920ce6ec7c0 (0 bytes)
getblocks 1 to 0000000c8f10b8c2133a limit 262653

In few secons it consumes all memory (I have saw with htop how slimcoind got full about 600Mb of ram a 1024Mb of swap file just before throw the faliure and finally crash:

Code:
EXCEPTION: St9bad_alloc       
std::bad_alloc       
slimcoin in ThreadMessageHandler() 

I have been locking for the code that generate the getblock fuction... I think it´s that, in main.cpp

https://github.com/slimcoin-project/Slimcoin/blob/slimcoin/src/main.cpp#L3691

But my programmings skills are so limited, I don´t know c or c++ but i can read it hardly.

Somebody could read it to get an idea about the failure?