-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
"Invalid argument" error in osrm-routed causes hang #4506
Comments
@xnyhps thanks for flagging the issue! OSRM server should at least log errors. Please could you check OSRM with dtrace (strace) to find failed syscalls? |
Ah, good idea. I've followed it with Line 29 appears to be the line where the error 22 happens, in |
And here's one with a backtrace for the failing call: https://gist.github.com/xnyhps/26a2bb1368e223a46cac849dccefa440 Socket option Searching specifically for |
@xnyhps thanks for analysis! On my side i have no OSX to reproduce and fix the issue.
|
Stale. |
Helllo,
I'm using osrm-routed on macOS and in the last few days I've run into a problem with it hanging, accepting new connections but never sending any HTTP response.
At first I thought it was overloaded doing some intensive queries but Activity Monitor on macOS showed the process completely idle. Interestingly, it was also showing up as having only 1 thread, while it was initially running with the default number of threads (8).
After adding some debugging code to the server code I noticed the following:
HandleAccept
(https://github.com/Project-OSRM/osrm-backend/blob/master/include/server/server.hpp#L94) is called with an error (error code 22), which causes the acceptor to not accept any new connections. I'd expect the program to shut itself down after that (due to thethread->join()
), but this appears to not happen.I think
HandleAccept
should either be modified to ensure that the server shuts down when an accept call fails, or to log the error and continue. I'm not sure which is the best in this situation, as I can't figure out what causes this error. The message is "Invalid argument", but I have no idea to what function call an argument is invalid. If you want me to get more logging to figure out why exactly the error happens, let me know.The text was updated successfully, but these errors were encountered: