-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peer panic from fabric/gossip/util
#5119
Comments
This looks like a race that was caused by a topic collision. The below code should fix it. Do you want to give it a try?
|
I'm sure this fix will correct the error. There is no way to quickly check this, because there is no exact algorithm for reproducing it. But if the error happens again, I'll let you know. |
I've been looking at the code and trying to figure out how this happens.
As it seems to me, this can happen for the following reasons:
It seems to me that the first thing to do is to try the same experiment on version 2.5.10 and/or 3.0.0. They have a different version of go. Maybe the problem has already been fixed? |
Description
1-2 times a month my peers randomly crashed with the message
invalid memory address or nil pointer dereference
.The system uses more than 50 peers and 50 channels, so exchanges through gossip are very active.
Peers, Orderers v2.5.5
The section of code where the bug appears clearly requires adding a check for the existence of a map element.
Panic example 1
Panic example 2
Steps to reproduce
The text was updated successfully, but these errors were encountered: