pocketnetteam / pocketnet.core

Decentralized social network based on the blockchain
https://pocketnet.app
Apache License 2.0
115 stars 28 forks source link

Core v0.20.16 segmentation fault #124

Closed dmaltsiniotis closed 2 years ago

dmaltsiniotis commented 2 years ago

Describe the bug After an uptime of a couple of days, the pocketcoind process died with a segmentation fault.

This was in /var/log/messages:

Dec 22 23:06:19 pocket-01-node-vm kernel: [406366.709590] pocketcoind[23474]: segfault at 1e0 ip 00007f9afa165580 sp 00007f9a7d1ed7d8 error 4 in libstdc++.so.6.0.25[7f9afa14b000+ac000]
Dec 22 23:06:19 pocket-01-node-vm kernel: [406366.742715] Code: 48 89 46 08 c3 0f 1f 44 00 00 48 89 f8 0f 1f 44 00 00 48 8b 10 48 8b 48 08 48 89 50 08 48 89 08 48 89 d0 48 39 d7 75 ea c3 90 <48> 8b 46 08 48 89 37 48 89 47 08 48 8b 46 08 48 89 38 48 89 7e 08

The last few lines in the debug log do not indicate any kind of overt error:

2021-12-22T23:04:48Z Available coins count 26 BestHeader: 1494286 fa2e36d89613243b46b61372ea84e5cac25bacb679a5b062c0c89c9661c15fd2
2021-12-22T23:04:55Z --- Block indexed: 1494287 BH: 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:04:56Z +++ Block connected to chain: 1494287 BH: 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:05:04Z Available coins count 26 BestHeader: 1494287 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:05:20Z Available coins count 26 BestHeader: 1494287 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:05:36Z Available coins count 26 BestHeader: 1494287 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:05:52Z Available coins count 26 BestHeader: 1494287 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:06:08Z Available coins count 26 BestHeader: 1494287 628d378a3554b95ec074468cdc0c44f932cee65d2a2825973f932ec9cdaf29d4
2021-12-22T23:06:18Z --- Block indexed: 1494288 BH: 1cef7c42ef45faf8617319c93834a53955036a753df8a4823567ac111e85a054
2021-12-22T23:06:18Z +++ Block connected to chain: 1494288 BH: 1cef7c42ef45faf8617319c93834a53955036a753df8a4823567ac111e85a054

System information:

Version Info

pocketcoind --version
0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Pocketnet Core Daemon version v0.20.16.0-b4e18d9
Copyright (C) 2018-2021 The Pocketnet developers

I'm not really sure how to reproduce this yet, so the usefulness of this report is in question. If there's a debug version available, or if I can compile the 0.20.16 version with debug enabled from source, I will try to catch it again with stack trace information.

tawmaz commented 2 years ago

Possibly this issue which is a segmentation fault and often is not accompanied by any log errors: https://github.com/pocketnetteam/pocketnet.core/issues/108

andyoknen commented 2 years ago

https://github.com/pocketnetteam/pocketnet.core/issues/119