-
Notifications
You must be signed in to change notification settings - Fork 697
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
panic in BgpServer.AddNeighbor? #1551
Comments
I can't reproduce. Always happens? What argument is passed to AddNeighbor()? |
thanks @fujita for your response. Its actually simple call. It does not happen always. I am not sure if its GoBGP issue, but irrespective as caller of the function, it would be ideal if the function returns gracefully with error. I can easily recreate the error. Let me know if you need other informatin. |
Problem turned out to be somewhere else. Sorry for the noise. |
That's good to hear. Out of curiosity, what was the problem? |
@fujita basically i have hit this issue basically i had map to hold current set of BGP neighbours and two go routines which update this map go func() {
// go routine 1
// lock the mutex
// update the map
// call gobgp add nieghbour call
} go func() {
// go routine 2
// lock the mutex
// update the map
// call gobgp add nieghbour call
} Strangley panic was always shown to be inside gobgp library in stack trace. which lead to opening this issue. |
Kube-router project use GoBGP as library. We ran into an issue where AddNeighbor() call seems resulting in panic. We are currently using v1.23
Appriciate any help any pointers to figure out whats going wrong.
The text was updated successfully, but these errors were encountered: