idena-network / idena-go

Idena node
https://idena.io
GNU Lesser General Public License v3.0
151 stars 50 forks source link

Mac (Catalina) kernel panic corresponding idena-go proccess #590

Open almostdesign opened 3 years ago

almostdesign commented 3 years ago

It's happening to me several times (more than 7) after I update my SO to MacOS 10.15.7 Catalina. My macbook suddenly shuts off and, after rebooting, I check the logs and it was because something went wrong with idena-go proccess.

kernel-panic-idena-go.txt

ridenaio commented 3 years ago

Hi! That's strange. Might be some issues with networking. Feel free to re-open if you have more details.

nonatomiclabs commented 3 years ago

This still happens with v0.25.0, the log is identical to what has been attached here.

ridenaio commented 3 years ago

Please attach all node log files.

nonatomiclabs commented 3 years ago

I fear the logs don't contain anything useful 😕 Here's an excerpt of datadir/logs/output.log:

INFO [03-25|22:46:21.281] Start loop                               round=2650863 head=0x120f63ecd00c499ad67d974ab36526c12a9152e8f37c9a072419d30e8b44a8bf peers=8  online-nodes=4707 network=6192
INFO [03-25|22:46:31.284] Selected proposer                        proposer=0x04f62d238023d54B2f14150D251e4B34c3Bf9cB3
INFO [03-25|22:46:31.288] Wait for block proposal 
INFO [03-25|22:46:31.288] Reduction started                        block=0x5c0c1e82ffe908d249c29385576b7fbb6349c8fa53626810e0d2874e45d60581
INFO [03-25|22:46:32.196] Reduction completed                      block=0x5c0c1e82ffe908d249c29385576b7fbb6349c8fa53626810e0d2874e45d60581 isEmpty=false
INFO [03-25|22:46:32.196] binaryBa started                         block=0x5c0c1e82ffe908d249c29385576b7fbb6349c8fa53626810e0d2874e45d60581
INFO [03-25|22:46:33.585] Reached FINAL                            block=0x5c0c1e82ffe908d249c29385576b7fbb6349c8fa53626810e0d2874e45d60581 txs=0
INFO [03-25|22:46:33.586] Node is synchronized                     component=downloader
INFO [03-25|22:46:41.253] Start loop                               round=2650864 head=0x5c0c1e82ffe908d249c29385576b7fbb6349c8fa53626810e0d2874e45d60581 peers=8  online-nodes=4707 network=6192
INFO [03-25|22:46:51.256] Selected proposer                        proposer=0x869aa6D978bF4a4A596BCF480ceB1e4Aa3CEeeA1
INFO [03-25|22:46:51.260] Wait for block proposal 
INFO [03-25|22:46:51.260] Reduction started                        block=0x1def7b9d213e5f0fb268737a043fad83fe5faf74719c6adb6bcf7e129cd3cb0f
INFO [03-25|22:46:52.170] Reduction completed                      block=0x1def7b9d213e5f0fb268737a043fad83fe5faf74719c6adb6bcf7e129cd3cb0f isEmpty=false
INFO [03-25|22:46:52.170] binaryBa started                         block=0x1def7b9d213e5f0fb268737a043fad83fe5faf74719c6adb6bcf7e129cd3cb0f
INFO [03-25|22:46:53.667] Reached FINAL                            block=0x1def7b9d213e5f0fb268737a043fad83fe5faf74719c6adb6bcf7e129cd3cb0f txs=0
INFO [03-25|22:46:53.667] Node is synchronized                     component=downloader
INFO [03-25|22:47:02.253] Start loop                               round=2650865 head=0x1def7b9d213e5f0fb268737a043fad83fe5faf74719c6adb6bcf7e129cd3cb0f peers=8  online-nodes=4707 network=6192
INFO [03-25|22:47:12.256] Selected proposer                        proposer=0x01EA00623Bf1B00587Fa9CB8b7cC803e4E199aDe
INFO [03-25|22:47:12.261] Wait for block proposal 
INFO [03-25|22:47:12.261] Reduction started                        block=0xedc48afedfa4f445bf0d7b21ad65ec437fe6e06737eeb4c9112904b4813679eb
INFO [03-25|22:47:13.171] Reduction completed                      block=0xedc48afedfa4f445bf0d7b21ad65ec437fe6e06737eeb4c9112904b4813679eb isEmpty=false
INFO [03-25|22:47:13.171] binaryBa started                         block=0xedc48afedfa4f445bf0d7b21ad65ec437fe6e06737eeb4c9112904b4813679eb
INFO [03-25|22:47:14.830] Reached FINAL                            block=0xedc48afedfa4f445bf0d7b21ad65ec437fe6e06737eeb4c9112904b4813679eb txs=1
INFO [03-25|22:47:14.830] Node is synchronized                     component=downloader
INFO [03-25|22:47:22.241] Start loop                               round=2650866 head=0xedc48afedfa4f445bf0d7b21ad65ec437fe6e06737eeb4c9112904b4813679eb peers=8  online-nodes=4707 network=6192
INFO [03-26|07:45:30.473] Idena node is starting                   version=0.25.0

The last line shows the beginning of the log once I restart the node, after which everything goes fine.

The kernel panic yields some log, that's identical to the kernel-panic-idena-go.txt file attached by the OP.

Seems like another project using go had a similar issue, but sadly didn't investigate any further.

Do you have any idea on how to investigate it?

lazy-luo commented 2 years ago

This maybe a bug in MacOS 10.15.x Catalina. When I use the tool ‘wrk’ to test the HTTPS performance of my MBP, the same error occurs. If the same test is HTTP, there is no problem. Therefore, it is suspected that the problem is caused by SSL related modules