User reported crash in assertion failure in net.cpp
User "sam rock" on telegram reported that his node crashed with an assertion failure in net.cpp. This is his log extract:
My spv node attempting to connect a local bchn chipnet node.
2024-05-19T12:19:47.539Z INFO p2p Peer connection attempt to 0.0.0.0:48334 failed with Connection refused (os error 61)
2024-05-19T12:19:49.540Z INFO p2p Peer connection attempt to 0.0.0.0:48334 failed with Connection refused (os error 61)
2024-05-19T12:19:55.542Z INFO p2p Peer connection attempt to 0.0.0.0:48334 failed with Connection refused (os error 61)
2024-05-19T12:20:03.542Z INFO p2p Peer connection attempt to 0.0.0.0:48334 failed with Connection refused (os error 61)
2024-05-19T12:20:19.543Z INFO p2p Peer connection attempt to 0.0.0.0:48334 failed with Connection refused (os error 61)
bchn logs:
2024-05-19T02:32:51Z UpdateTip: new best=000000005e5afbd1e58dc917e0ef5ec0c8584de75485ac7df0eb844e9f3bd512 height=201242 version=0x20000000 log2_work=56.478465 tx=492608 date='2024-05-19T02:32:51Z' progress=1.000000 cache=0.0MiB(5txo)
2024-05-19T03:02:47Z UpdateTip: new best=000000006de4fb7676584168f6e7df095c874a1d7c8dd661ec818efd22197e97 height=201243 version=0x20000000 log2_work=56.478465 tx=492609 date='2024-05-19T03:01:53Z' progress=1.000000 cache=0.0MiB(6txo)
2024-05-19T03:06:03Z socket recv error Connection reset by peer (54)
2024-05-19T03:06:03Z socket recv error Connection reset by peer (54)
2024-05-19T03:06:03Z socket recv error Connection reset by peer (54)
2024-05-19T03:06:03Z socket recv error Connection reset by peer (54)
2024-05-19T03:06:03Z socket recv error Connection reset by peer (54)
Assertion failed: (data.size() > pnode->nSendOffset), function SocketSendData, file ../src/net.cpp, line 733.
[1] 69020 abort ./bitcoind -rest
EDIT: More info from user:
It's an M1 mac. I downloaded the dmg from bitcoincashnode.org/en/download.
Bchn boot logs look good to me:
https://pastebin.mozilla.org/V3QQENuB#L24
Seems like a super edge case. I'm not sure If I can reproduce. I was at a starbucks, The wifi was blocked by mullvad vpn until I reset it. Then I noticed the Abort after coming online.
Also, I was experimenting with an spv node sending merkle block request to the bchn node.
This is the whole logs from the spv node if it helps:
https://pastebin.mozilla.org/jh3RnPnD
You can ignore the "Filter header chain" and "cfheahers", thats bip158 stuff and deactivated so it does nothing.
Edited by Calin Culianu