{"action":"created","issue":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2089","repository_url":"https://api.github.com/repos/Project-OSRM/osrm-backend","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2089/labels{/name}","comments_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2089/comments","events_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2089/events","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/2089","id":140395260,"number":2089,"title":"Conditional jump or move depends on uninitialised value(s)","user":{"login":"mdenhoedt","id":3847508,"avatar_url":"https://avatars.githubusercontent.com/u/3847508?v=3","gravatar_id":"","url":"https://api.github.com/users/mdenhoedt","html_url":"https://github.com/mdenhoedt","followers_url":"https://api.github.com/users/mdenhoedt/followers","following_url":"https://api.github.com/users/mdenhoedt/following{/other_user}","gists_url":"https://api.github.com/users/mdenhoedt/gists{/gist_id}","starred_url":"https://api.github.com/users/mdenhoedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdenhoedt/subscriptions","organizations_url":"https://api.github.com/users/mdenhoedt/orgs","repos_url":"https://api.github.com/users/mdenhoedt/repos","events_url":"https://api.github.com/users/mdenhoedt/events{/privacy}","received_events_url":"https://api.github.com/users/mdenhoedt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-12T16:00:48Z","updated_at":"2016-03-14T15:54:01Z","closed_at":null,"body":"[This](https://github.com/Project-OSRM/osrm-backend/commit/47d56676f173d2ea7ab5192d26590b22cf26519f) is the latest commit I have. I am running Ubuntu 14.04 LTS. \r\n\r\n\r\nValgrind is giving me the following error:\r\n\r\n```\r\n==6091== Conditional jump or move depends on uninitialised value(s)\r\n==6091==    at 0x48801D: osrm::engine::RouteNames osrm::engine::extractRouteNames<osrm::engine::datafacade::BaseDataFacade<osrm::contractor::QueryEdge::EdgeData>, osrm::engine::detail::Segment>(std::vector<osrm::engine::detail::Segment, std::allocator<osrm::engine::detail::Segment> >&, std::vector<osrm::engine::detail::Segment, std::allocator<osrm::engine::detail::Segment> >&, osrm::engine::datafacade::BaseDataFacade<osrm::contractor::QueryEdge::EdgeData> const*) \r\n==6091==    by 0x48A232: osrm::engine::ApiResponseGenerator<osrm::engine::datafacade::BaseDataFacade<osrm::contractor::QueryEdge::EdgeData> >::DescribeRoute(osrm::engine::RouteParameters const&, osrm::engine::InternalRouteResult const&, osrm::util::json::Object&) \r\n==6091==    by 0x48D314: osrm::engine::plugins::ViaRoutePlugin<osrm::engine::datafacade::BaseDataFacade<osrm::contractor::QueryEdge::EdgeData> >::HandleRequest(osrm::engine::RouteParameters const&, osrm::util::json::Object&) \r\n==6091==    by 0x498BBE: osrm::engine::Engine::RunQuery(osrm::engine::RouteParameters const&, osrm::util::json::Object&)\r\n```\r\n\r\nMy code looks just like the `example/example.cpp`:\r\n\r\n```\r\nosrm::EngineConfig engine_config;\r\nengine_config.server_paths[\"ramindex\"] = OSRM_FILE + \".ramIndex\";\r\nengine_config.server_paths[\"fileindex\"] = OSRM_FILE + \".fileIndex\";\r\nengine_config.server_paths[\"hsgrdata\"] = OSRM_FILE + \".hsgr\";\r\nengine_config.server_paths[\"nodesdata\"] = OSRM_FILE + \".nodes\";\r\nengine_config.server_paths[\"edgesdata\"] = OSRM_FILE + \".edges\";\r\nengine_config.server_paths[\"coredata\"] = OSRM_FILE + \".core\";\r\nengine_config.server_paths[\"geometries\"] = OSRM_FILE + \".geometry\";\r\nengine_config.server_paths[\"timestamp\"] = OSRM_FILE + \".timestamp\";\r\nengine_config.server_paths[\"namesdata\"] = OSRM_FILE + \".names\";\r\nengine_config.use_shared_memory = false;\r\n\r\nosrm::OSRM *machine = new osrm::OSRM(engine_config);\r\nosrm::RouteParameters route_parameters;\r\nroute_parameters.service = \"viaroute\";\r\nroute_parameters.geometry = false;\r\nroute_parameters.AddCoordinate(this->latitude, this->longitude);\r\nroute_parameters.AddCoordinate(other.latitude, other.longitude);\r\nosrm::json::Object json_result;\r\n\r\nmachine->RunQuery(route_parameters, json_result);\r\n```\r\n\r\nWhat am I missing?"},"comment":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/comments/196380765","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/2089#issuecomment-196380765","issue_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/2089","id":196380765,"user":{"login":"daniel-j-h","id":527241,"avatar_url":"https://avatars.githubusercontent.com/u/527241?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-j-h","html_url":"https://github.com/daniel-j-h","followers_url":"https://api.github.com/users/daniel-j-h/followers","following_url":"https://api.github.com/users/daniel-j-h/following{/other_user}","gists_url":"https://api.github.com/users/daniel-j-h/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-j-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-j-h/subscriptions","organizations_url":"https://api.github.com/users/daniel-j-h/orgs","repos_url":"https://api.github.com/users/daniel-j-h/repos","events_url":"https://api.github.com/users/daniel-j-h/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-j-h/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T15:54:01Z","updated_at":"2016-03-14T15:54:01Z","body":"Definitely turn off alternatives, that's probably the most expensive one. You will probably only seeing improvements when doing a massive amount of queries. In that case, just play around with it a bit and profile!\r\n\r\nIn case you're doing incremental queries you can get a hint which you have to provide for subsequent queries. This skips the geospatial lookup for locations for which you provide hints."}}