witness_node segfault when enable several sidechain #457

Closed
opened 2022-09-27 08:22:27 +00:00 by vampik · 11 comments
vampik commented 2022-09-27 08:22:27 +00:00 (Migrated from gitlab.com)

Due to multithreading in SON process, witness_node segfault when enable several sidechain.
Need to implement thread safe push_block to database.

Due to multithreading in SON process, **witness_node** segfault when enable several sidechain. Need to implement thread safe **push_block** to database.
vampik commented 2022-09-27 08:22:28 +00:00 (Migrated from gitlab.com)

assigned to @vampik

assigned to @vampik
vampik commented 2022-09-29 10:09:16 +00:00 (Migrated from gitlab.com)

mentioned in commit c78d0fa6eb0047351df8392ff6ba25b620c77472

mentioned in commit c78d0fa6eb0047351df8392ff6ba25b620c77472
vampik commented 2022-09-30 08:07:00 +00:00 (Migrated from gitlab.com)

mentioned in commit cb6aa6637410fe21cb9a03a40d028a9bef3721f9

mentioned in commit cb6aa6637410fe21cb9a03a40d028a9bef3721f9
vampik commented 2022-09-30 08:13:21 +00:00 (Migrated from gitlab.com)

mentioned in commit b40da88059a66e951fb9affe7e6b2249074815ea

mentioned in commit b40da88059a66e951fb9affe7e6b2249074815ea
vampik commented 2022-09-30 10:04:31 +00:00 (Migrated from gitlab.com)

mentioned in merge request !160

mentioned in merge request !160
vampik commented 2022-09-30 10:05:01 +00:00 (Migrated from gitlab.com)

assigned to @serkixenos

assigned to @serkixenos
serkixenos commented 2022-10-03 17:20:56 +00:00 (Migrated from gitlab.com)

assigned to @prandnum and @wsalloum

assigned to @prandnum and @wsalloum
vampik commented 2022-10-06 11:08:02 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
prandnum commented 2022-10-06 17:05:14 +00:00 (Migrated from gitlab.com)

@vampik please provide the test steps. If the docker env can be brought up without issues and the blockchain continues to run without issues, can we consider this issues as closed?

CC: @serkixenos

@vampik please provide the test steps. If the docker env can be brought up without issues and the blockchain continues to run without issues, can we consider this issues as closed? CC: @serkixenos
vampik commented 2022-10-06 17:07:40 +00:00 (Migrated from gitlab.com)

If you enable all sidechains and everything works fine, the issue is resolved.

Previously, witness_node get crashed when SONs start process.

If you enable all sidechains and everything works fine, the issue is resolved. Previously, `witness_node` get crashed when SONs start process.
prandnum commented 2022-10-07 15:21:32 +00:00 (Migrated from gitlab.com)

All witnesses are working fine with bitcoin,ethereum,hive sidechains. hence clsing this ticket.

CONTAINER ID   IMAGE                    COMMAND                  CREATED        STATUS                    PORTS                                                                                                                                                   NAMES
9d9472343bb6   peerplays07              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8096->8090/tcp, :::8096->8090/tcp, 0.0.0.0:9783->9777/tcp, :::9783->9777/tcp                                                            peerplays-qa-environment_peerplays07_1
226b8981e327   peerplays15              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8104->8090/tcp, :::8104->8090/tcp, 0.0.0.0:9791->9777/tcp, :::9791->9777/tcp                                                            peerplays-qa-environment_peerplays15_1
f34bc726a4d2   peerplays12              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8101->8090/tcp, :::8101->8090/tcp, 0.0.0.0:9788->9777/tcp, :::9788->9777/tcp                                                            peerplays-qa-environment_peerplays12_1
fa8be04f3c7a   peerplays14              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8103->8090/tcp, :::8103->8090/tcp, 0.0.0.0:9790->9777/tcp, :::9790->9777/tcp                                                            peerplays-qa-environment_peerplays14_1
bda49a376e41   peerplays05              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8094->8090/tcp, :::8094->8090/tcp, 0.0.0.0:9781->9777/tcp, :::9781->9777/tcp                                                            peerplays-qa-environment_peerplays05_1
118b71cbde6f   peerplays09              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8098->8090/tcp, :::8098->8090/tcp, 0.0.0.0:9785->9777/tcp, :::9785->9777/tcp                                                            peerplays-qa-environment_peerplays09_1
a52cd8aa71de   peerplays03              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8092->8090/tcp, :::8092->8090/tcp, 0.0.0.0:9779->9777/tcp, :::9779->9777/tcp                                                            peerplays-qa-environment_peerplays03_1
61ecfbf59f73   peerplays01              "./witness_node -d .…"   21 hours ago   Up 21 hours               0.0.0.0:8090->8090/tcp, :::8090->8090/tcp, 22/tcp, 0.0.0.0:9777->9777/tcp, :::9777->9777/tcp                                                            peerplays-qa-environment_peerplays01_1
75a91de810cf   peerplays08              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8097->8090/tcp, :::8097->8090/tcp, 0.0.0.0:9784->9777/tcp, :::9784->9777/tcp                                                            peerplays-qa-environment_peerplays08_1
957829c0ea27   peerplays06              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8095->8090/tcp, :::8095->8090/tcp, 0.0.0.0:9782->9777/tcp, :::9782->9777/tcp                                                            peerplays-qa-environment_peerplays06_1
bf2647ab30b0   peerplays13              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8102->8090/tcp, :::8102->8090/tcp, 0.0.0.0:9789->9777/tcp, :::9789->9777/tcp                                                            peerplays-qa-environment_peerplays13_1
cb25863b9a85   peerplays02              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8091->8090/tcp, :::8091->8090/tcp, 0.0.0.0:9778->9777/tcp, :::9778->9777/tcp                                                            peerplays-qa-environment_peerplays02_1
3cd8633b85cd   peerplays16              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8105->8090/tcp, :::8105->8090/tcp, 0.0.0.0:9792->9777/tcp, :::9792->9777/tcp                                                            peerplays-qa-environment_peerplays16_1
1f0fe37a62af   peerplays04              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8093->8090/tcp, :::8093->8090/tcp, 0.0.0.0:9780->9777/tcp, :::9780->9777/tcp                                                            peerplays-qa-environment_peerplays04_1
ff10719f8dbe   peerplays10              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8099->8090/tcp, :::8099->8090/tcp, 0.0.0.0:9786->9777/tcp, :::9786->9777/tcp                                                            peerplays-qa-environment_peerplays10_1
79b2cc174e9a   peerplays11              "./witness_node -d .…"   21 hours ago   Up 21 hours               22/tcp, 0.0.0.0:8100->8090/tcp, :::8100->8090/tcp, 0.0.0.0:9787->9777/tcp, :::9787->9777/tcp                                                            peerplays-qa-environment_peerplays11_1
81548785c048   peerplays-base           "bash"                   21 hours ago   Exited (0) 21 hours ago                                                                                                                                                           peerplays-qa-environment_peerplays-base_1
f656028a92d1   hive-for-peerplays       "./hived -d ./hived_…"   22 hours ago   Up 22 hours               22/tcp, 0.0.0.0:28090-28091->28090-28091/tcp, :::28090-28091->28090-28091/tcp                                                                           peerplays-qa-environment_hive-for-peerplays_1
c450c500327e   ethereum-for-peerplays   "./geth --config ./n…"   22 hours ago   Up 22 hours               0.0.0.0:6060->6060/tcp, :::6060->6060/tcp, 22/tcp, 0.0.0.0:8545->8545/tcp, :::8545->8545/tcp, 8546/tcp, 0.0.0.0:30303->30303/tcp, :::30303->30303/tcp   peerplays-qa-environment_ethereum-for-peerplays_1
18a044902ee0   bitcoin-for-peerplays    "./bitcoind -datadir…"   22 hours ago   Up 22 hours               0.0.0.0:8332->8332/tcp, :::8332->8332/tcp, 0.0.0.0:11111->11111/tcp, :::11111->11111/tcp, 22/tcp, 0.0.0.0:18444->18444/tcp, :::18444->18444/tcp         peerplays-qa-environment_bitcoin-for-peerplays_1
fcd1afc3370c   ubuntu-for-peerplays     "bash"                   22 hours ago   Exited (0) 21 hours ago                                                                                                                                                           peerplays-qa-environment_ubuntu-for-peerplays_1
kiran@warpspeed:~/PBSA/16/peerplays-utils/peerplays-qa-environment$ 
All witnesses are working fine with bitcoin,ethereum,hive sidechains. hence clsing this ticket. ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9d9472343bb6 peerplays07 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8096->8090/tcp, :::8096->8090/tcp, 0.0.0.0:9783->9777/tcp, :::9783->9777/tcp peerplays-qa-environment_peerplays07_1 226b8981e327 peerplays15 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8104->8090/tcp, :::8104->8090/tcp, 0.0.0.0:9791->9777/tcp, :::9791->9777/tcp peerplays-qa-environment_peerplays15_1 f34bc726a4d2 peerplays12 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8101->8090/tcp, :::8101->8090/tcp, 0.0.0.0:9788->9777/tcp, :::9788->9777/tcp peerplays-qa-environment_peerplays12_1 fa8be04f3c7a peerplays14 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8103->8090/tcp, :::8103->8090/tcp, 0.0.0.0:9790->9777/tcp, :::9790->9777/tcp peerplays-qa-environment_peerplays14_1 bda49a376e41 peerplays05 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8094->8090/tcp, :::8094->8090/tcp, 0.0.0.0:9781->9777/tcp, :::9781->9777/tcp peerplays-qa-environment_peerplays05_1 118b71cbde6f peerplays09 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8098->8090/tcp, :::8098->8090/tcp, 0.0.0.0:9785->9777/tcp, :::9785->9777/tcp peerplays-qa-environment_peerplays09_1 a52cd8aa71de peerplays03 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8092->8090/tcp, :::8092->8090/tcp, 0.0.0.0:9779->9777/tcp, :::9779->9777/tcp peerplays-qa-environment_peerplays03_1 61ecfbf59f73 peerplays01 "./witness_node -d .…" 21 hours ago Up 21 hours 0.0.0.0:8090->8090/tcp, :::8090->8090/tcp, 22/tcp, 0.0.0.0:9777->9777/tcp, :::9777->9777/tcp peerplays-qa-environment_peerplays01_1 75a91de810cf peerplays08 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8097->8090/tcp, :::8097->8090/tcp, 0.0.0.0:9784->9777/tcp, :::9784->9777/tcp peerplays-qa-environment_peerplays08_1 957829c0ea27 peerplays06 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8095->8090/tcp, :::8095->8090/tcp, 0.0.0.0:9782->9777/tcp, :::9782->9777/tcp peerplays-qa-environment_peerplays06_1 bf2647ab30b0 peerplays13 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8102->8090/tcp, :::8102->8090/tcp, 0.0.0.0:9789->9777/tcp, :::9789->9777/tcp peerplays-qa-environment_peerplays13_1 cb25863b9a85 peerplays02 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8091->8090/tcp, :::8091->8090/tcp, 0.0.0.0:9778->9777/tcp, :::9778->9777/tcp peerplays-qa-environment_peerplays02_1 3cd8633b85cd peerplays16 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8105->8090/tcp, :::8105->8090/tcp, 0.0.0.0:9792->9777/tcp, :::9792->9777/tcp peerplays-qa-environment_peerplays16_1 1f0fe37a62af peerplays04 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8093->8090/tcp, :::8093->8090/tcp, 0.0.0.0:9780->9777/tcp, :::9780->9777/tcp peerplays-qa-environment_peerplays04_1 ff10719f8dbe peerplays10 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8099->8090/tcp, :::8099->8090/tcp, 0.0.0.0:9786->9777/tcp, :::9786->9777/tcp peerplays-qa-environment_peerplays10_1 79b2cc174e9a peerplays11 "./witness_node -d .…" 21 hours ago Up 21 hours 22/tcp, 0.0.0.0:8100->8090/tcp, :::8100->8090/tcp, 0.0.0.0:9787->9777/tcp, :::9787->9777/tcp peerplays-qa-environment_peerplays11_1 81548785c048 peerplays-base "bash" 21 hours ago Exited (0) 21 hours ago peerplays-qa-environment_peerplays-base_1 f656028a92d1 hive-for-peerplays "./hived -d ./hived_…" 22 hours ago Up 22 hours 22/tcp, 0.0.0.0:28090-28091->28090-28091/tcp, :::28090-28091->28090-28091/tcp peerplays-qa-environment_hive-for-peerplays_1 c450c500327e ethereum-for-peerplays "./geth --config ./n…" 22 hours ago Up 22 hours 0.0.0.0:6060->6060/tcp, :::6060->6060/tcp, 22/tcp, 0.0.0.0:8545->8545/tcp, :::8545->8545/tcp, 8546/tcp, 0.0.0.0:30303->30303/tcp, :::30303->30303/tcp peerplays-qa-environment_ethereum-for-peerplays_1 18a044902ee0 bitcoin-for-peerplays "./bitcoind -datadir…" 22 hours ago Up 22 hours 0.0.0.0:8332->8332/tcp, :::8332->8332/tcp, 0.0.0.0:11111->11111/tcp, :::11111->11111/tcp, 22/tcp, 0.0.0.0:18444->18444/tcp, :::18444->18444/tcp peerplays-qa-environment_bitcoin-for-peerplays_1 fcd1afc3370c ubuntu-for-peerplays "bash" 22 hours ago Exited (0) 21 hours ago peerplays-qa-environment_ubuntu-for-peerplays_1 kiran@warpspeed:~/PBSA/16/peerplays-utils/peerplays-qa-environment$ ```
prandnum (Migrated from gitlab.com) closed this issue 2022-10-07 15:21:59 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#457
No description provided.