Skip to content

Routing points causes SEGFAULT in libOSRM.so #941

@mitchless

Description

@mitchless

Executing the same query against router.project-osrm.org returns good results.

Running the query against a debug build of osrm-routed did not segfault.

Fetching the route using wget:

[info] 10-03-2014 13:58:49 71.67.114.6 - Wget/1.14 (darwin12.4.0) /viaroute?z=15&output=json&loc=39.155524,-84.388721&loc=39.113904,-84.513575&instructions=true

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffe27fff700 (LWP 22809)]
0x00007ffff6bde1d1 in BasicRoutingInterface<BaseDataFacade<QueryEdge::EdgeData> >::UnpackPath(std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<_PathData, std::allocator<_PathData> >&) const
    () from /data/osrm/build/libOSRM.so
(gdb) bt
#0  0x00007ffff6bde1d1 in BasicRoutingInterface<BaseDataFacade<QueryEdge::EdgeData> >::UnpackPath(std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<_PathData, std::allocator<_PathData> >&) const () from /data/osrm/build/libOSRM.so
#1  0x00007ffff6be20bd in AlternativeRouting<BaseDataFacade<QueryEdge::EdgeData> >::operator()(PhantomNodes const&, RawRouteData&) () from /data/osrm/build/libOSRM.so
#2  0x00007ffff6be3bf5 in ViaRoutePlugin<BaseDataFacade<QueryEdge::EdgeData> >::HandleRequest(RouteParameters const&, http::Reply&) () from /data/osrm/build/libOSRM.so
#3  0x00007ffff6bbed67 in OSRM::RunQuery(RouteParameters&, http::Reply&) () from /data/osrm/build/libOSRM.so
#4  0x0000000000464918 in RequestHandler::handle_request(http::Request const&, http::Reply&) ()
#5  0x000000000046a45c in http::Connection::handle_read(boost::system::error_code const&, unsigned long) ()
#6  0x0000000000477e0b 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::list3<boost::_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::list3<boost::_bi::value<boost::shared_ptr<http::Connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>) ()
#7  0x0000000000478927 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::list3<boost::_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::list3<boost::_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::list3<boost::_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::list3<boost::_bi::value<boost::shared_ptr<http::Connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >) ()
#8  0x0000000000478d95 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::list3<boost::_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::list3<boost::_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::list3<boost::_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::list3<boost::_bi::value<boost::shared_ptr<http::Connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >*) ()
#9  0x0000000000478f1e 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::list3<boost::_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) ()
#10 0x0000000000449f50 in boost::asio::detail::task_io_service::run(boost::system::error_code&) [clone .constprop.3201] ()
#11 0x00000000004584f5 in boost::asio::io_service::run() ()
#12 0x00007ffff702bce9 in thread_proxy () from /usr/lib/libboost_thread.so.1.46.1
#13 0x00007ffff6e09e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#14 0x00007ffff5c9b3fd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#15 0x0000000000000000 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions