-
Notifications
You must be signed in to change notification settings - Fork 953
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
"netlink socket stream shut down" infinite loop #4287
Comments
Related: #3390. |
Related: #2591. |
This happens when during Substrate node initialization I press Ctrl+C, so it has to shut down before it even started properly, in this case above errors are printed until process is killed extrenally. |
I am almost certain that this would be fixed by #2591 because that would move the IO off the main task which is typically the one running in |
I just ran into the same issue. I think i tracked it down to the mdns polling if_watch in a loop.
|
Actually I don't see it in the latest version of libp2p anymore. Are you on older version by any chance? |
I'm on latest:
This happend to me in an unittest which runs very quickly. When i run this test on linux it blocks forever but runs fine on macOS. The if_watch poll never returns Poll::Pending so the while loop in mdns can never complete when the netlink socket is closed. |
It does return |
will close this for now as @nazar-pc mentions it doesn't reproduce anymore. |
Summary
I have not yet identify how exactly, but when doing early shutdown of an application I see this printed forever with Ctrl+C not working, so looks like in the main thread somehow:
I think the solution here might be to be prepared for runtime shutdown at any time.
Version
0.52.1, but I observed this on previous versions too
Would you like to work on fixing this bug?
Maybe
The text was updated successfully, but these errors were encountered: