-
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
Segmentation fault #416
Comments
If this is reproducable, please recompile with build information ( |
Yes, it is indeed reproducable. This currently causes an outage of our web application. Any help would be much appreciated! Here's the more verbose stack trace: #0 0x00007f92a6cac3a5 in raise () from /lib/x86_64-linux-gnu/libc.so.6 |
Can you give me a link to the source osm data and the corresponding query? |
Trying to reproduce this one issue as of now. |
Cannot reproduce this one my installation. Also works on the demo site (http://map.project-osrm.org/1m0). Both locations get matched to the same point in the road network. |
Further investigation of the stack trace shows that it is complaining about a way segment without any length. This should not happen at all. Are the data files generated with the same version than osrm-routed? |
The problem does not immedately occur, only if I do requests several times in a row. I will make sure I use the same version for generating the osrm files as the osrm-routed executable. |
Rather strange. I have been hammering the same request for a couple 1000 times now at the test installation and it did not crash. |
You were right. I somehow had some osrm files that have been created by and old OSRM installation around. But now I have a different issue. For certain coordinates, I get an internal server error when I use viaroute. Example: [server error] code: vector::_M_range_check, uri: /viaroute?loc=47.237777,8.824555&loc=47.232532,8.828761 What's the issue here? Do you need a stacktrace? |
Works on my end, too. A stacktrace may be of help. Could you give me your list of queries? |
Here are some more examples: /viaroute?loc=47.236349,8.824212&loc=47.232853,8.826519 They all result in an internal server error: [info Server/RequestHandler.h:61] 18-09-2012 13:40:15 - curl/7.27.0 /viaroute?loc=47.236349,8.824212&loc=47.232853,8.826519 And here is one that at least yields a status message: curl "viaroute?loc=47.236787,8.830005&loc=47.237530,8.821991" What do you think? |
Sorry, still not able to reproduce this bug. |
what OS are you on? |
Ubuntu 11.10. It's really strange. I did not experience any issues when I was working with an older version of OSRM (the one with the old interface "/viaroute&start=47.236349,8.824212&dest=47.236349,8.824212")... |
On 18.09.2012 14:15, Michael Rüegg wrote:
Just to verify, the binaries are compiled from the latest and greatest |
Yes, from last Thursday: $ git log -1
|
did you try downloading fresh osm data? |
Yes. I've just pulled the latest changes from master, got the latest osm file, and did the OSRM stuff again. Any ideas? Any help is much appreciated! $ git pull $ ./osrm-prepare switzerland.osrm switzerland.osrm.restrictions $ kill $(ps -ef | grep [Rr]outed | grep -v grep | awk '{print $2}') $ ./osrm-routed $ curl "http://localhost:5000/viaroute?loc=47.236349,8.824212&loc=47.232853,8.826529" <title>Internal Server Error</title>500 Internal Server Error[server] running and waiting for requests |
Could you make either the OSM input file you used available or the .osrm data files you have been using? |
The OSM file I use is publicly available from http://download.geofabrik.de/osm/europe/switzerland.osm.pbf |
Could you make your .osrm files available? |
what's in your server.ini file? |
My server.ini looks like this: Threads = 8 hsgrData=switzerland.osrm.hsgr |
If it helps I can also provide the osrm files. But they are around ~100 MB big... |
is your server.ini file not missing the edges file? edgesData=switzerland.osrm.edges |
Michael Rüegg [email protected] writes:
|
You're right. With edgesData it works. Thank you very much! Might be something that could be circumvented by yielding an appropriate error message. |
openen an issue reagaring error messages. see #420 |
I occasionally get segmentation faults with OSRM (commit-id 7965e29, Sep 17, 2012) when I execute requests like '/viaroute?loc=lat1,lon1&loc=lat2,lon2' recently. Here's the stacktrace of the coredump:
Program terminated with signal 11, Segmentation fault.
#0 0x000000000042cc26 in AlternativeRouting<SearchEngineData<QueryEdge::EdgeData, StaticGraphQueryEdge::EdgeData > >::operator()(PhantomNodes const&, RawRouteData&) ()
(gdb) bt
#0 0x000000000042cc26 in AlternativeRouting<SearchEngineData<QueryEdge::EdgeData, StaticGraphQueryEdge::EdgeData > >::operator()(PhantomNodes const&, RawRouteData&) ()
#1 0x0000000000430f5b in ViaRoutePlugin::HandleRequest(RouteParameters const&, http::Reply&) ()
#2 0x000000000041e5ef in http::RequestHandler::handle_request(http::Request const&, http::Reply&) ()
#3 0x0000000000426378 in http::Connection::handleRead(boost::system::error_code const&, unsigned long) ()
#4 0x0000000000432563 in void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl&, boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::_bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> >, boost::system::error_code, unsigned long>) ()
#5 0x000000000043303f in void boost::asio::detail::strand_service::dispatch<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > > >(boost::asio::detail::strand_service::strand_impl&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::_bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >) ()
#6 0x0000000000433475 in void boost::asio::detail::asio_handler_invoke<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >, boost::system::error_code, unsigned long>, boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >(boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >, boost::system::error_code, unsigned long> const&, boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > >*) ()
#7 0x00000000004335fe in boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::bi::bind_t<void, boost::mfi::mf2<void, http::Connection, boost::system::error_code const&, unsigned long>, boost::bi::list3boost::bi::value<boost::shared_ptr<http::Connection >, boost::arg<1> ()(), boost::arg<2> ()()> > > >::do_complete(boost::asio::detail::task_io_service, boost::asio::detail::task_io_service_operation, boost::system::error_code, unsigned long) ()
#8 0x00000000004136e0 in boost::asio::detail::task_io_service::run(boost::system::error_code&) ()
#9 0x00000000004138d5 in boost::asio::io_service::run() ()
#10 0x00007ffe8fbfaba9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#11 0x00007ffe90026efc in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#12 0x00007ffe8ed7d89d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x0000000000000000 in ?? ()
The text was updated successfully, but these errors were encountered: