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 (core dumped) #1081
Comments
Are you using data files and osrm-datastore from the same release as osrm-routed version? If the errors are repeating, you could try to build debug version (
When it breaks with segfault, the details will be printed (if no, send |
Yes diferent machine but same osrm version El viernes, 13 de junio de 2014, alex85k notifications@github.com
Josep Ferrer IGGEOS |
@escurzo do I get this right, that some queries work fine and others fail? |
@DennisOSRM all queries have invalid results but only some queries prodices Segmentation fault This is the backtrace oper@osrm:~/Project-OSRM$ ./osrm-routed --sharedmemory=yes
[info] starting up engines, v0.4.1, compiled at Jun 13 2014, 16:35:01
[warn] exception: no leaf index file given. Is any data loaded into shared memory?
oper@osrm:~/Project-OSRM$ ./osrm-
osrm-datastore osrm-extract osrm-prepare osrm-routed
oper@osrm:~/Project-OSRM$ ./osrm-datastore ../data/planet-latest.osrm
[info] load names from: "../data/planet-latest.osrm.names"
[info] size: 5190126
[info] allocating shared memory of 26923646936 bytes
[warn] could not delete DATA_1
[warn] could not delete LAYOUT_1
[info] all data loaded
oper@osrm:~/Project-OSRM$ gdb ./osrm-routed
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./osrm-routed...(no debugging symbols found)...done.
(gdb) run --sharedmemory=yes
Starting program: /home/oper/Project-OSRM/osrm-routed --sharedmemory=yes
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[info] starting up engines, v0.4.1, compiled at Jun 13 2014, 16:35:01
[info] loaded plugin: table
[info] loaded plugin: hello
[info] loaded plugin: locate
[info] loaded plugin: nearest
[info] loaded plugin: timestamp
[info] loaded plugin: viaroute
[info] http 1.1 compression handled by zlib version 1.2.8
[New Thread 0x7ff9ae8b8700 (LWP 1092)]
[info] running and waiting for requests
[New Thread 0x7ff9ae0b7700 (LWP 1093)]
[New Thread 0x7ff9ad8b6700 (LWP 1094)]
[New Thread 0x7ff9ad0b5700 (LWP 1095)]
[New Thread 0x7ff9ac8b4700 (LWP 1096)]
[New Thread 0x7ff9a7fff700 (LWP 1097)]
[info] 16-06-2014 15:14:15 192.168.2.4 - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 /viaroute?z=14&output=json&loc=41.488070,2.067661&loc=41.475789,2.089376&instructions=false
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ff9ae0b7700 (LWP 1093)]
0x000000000045f5a8 in BasicRoutingInterface<BaseDataFacade<QueryEdge::EdgeData> >::UnpackEdge(unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int> >&) const ()
(gdb) backtrace
#0 0x000000000045f5a8 in BasicRoutingInterface<BaseDataFacade<QueryEdge::EdgeData> >::UnpackEdge(unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int> >&) const ()
#1 0x000000000046b62a in AlternativeRouting<BaseDataFacade<QueryEdge::EdgeData> >::operator()(PhantomNodes const&, RawRouteData&) ()
#2 0x00000000004794c6 in ViaRoutePlugin<BaseDataFacade<QueryEdge::EdgeData> >::HandleRequest(RouteParameters const&, http::Reply&) ()
#3 0x000000000047b0d0 in OSRM_impl::RunQuery(RouteParameters&, http::Reply&) ()
#4 0x000000000047c443 in RequestHandler::handle_request(http::Request const&, http::Reply&) ()
#5 0x000000000047d354 in http::Connection::handle_read(boost::system::error_code const&, unsigned long) ()
#6 0x000000000048ae97 in boost::asio::detail::completion_handler<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<std::shared_ptr<http::Connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, 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<std::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 const&, unsigned long) ()
#7 0x000000000048bbc8 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<std::shared_ptr<http::Connection> >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) ()
#8 0x000000000048cf34 in boost::asio::detail::epoll_reactor::descriptor_state::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) ()
#9 0x000000000048c6e7 in boost::asio::io_service::run() ()
#10 0x00007ffff63c4bf0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007ffff6a40182 in start_thread (arg=0x7ff9ae0b7700) at pthread_create.c:312
#12 0x00007ffff7b0f30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) |
looks like the data is broken. |
Looking at the log it seems that the generation of data worked well! Someone I can pass the planet data in OSRM format for to do some tests please? My OSRM version is v0.4.1, compiled at Jun 13 2014, 16:35:01 [info] generating edge-expanded edges |
What are the file sizes of your data files. |
-rw-rw-r-- 1 oper oper 22368465228 Jun 12 19:26 planet-latest.osrm Are correct? |
Did you try to run osrm-routed directly from file, not with datastore? |
oper@osrm:~/Project-OSRM$ ./osrm-routed ../data/planet-latest.osrm [info] 17-06-2014 10:45:25 192.168.2.4 - Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 /viaroute?z=14&output=json&loc=41.488070,2.067661&loc=41.475789,2.089376&instructions=false In my /var/log/syslog |
File sizes look ok, but running and preprocessing on different machines may have issues such as you are experiencing. Especially if you use a 32bit architecture somewhere. |
I was tested OSRM in the same machine that I have processes files and the process crash ubuntu@ip-172-31-27-7:~/Project-OSRM$ ./osrm-routed /data/planet-latest.osrm the system log shows There is an amazon i2.4xlarge instance with ubuntu 14.04 |
Revising logs during procesing files I can see |
rebuild with debug configuration. osrm-routed will then inspect the data files very thoroughly and report if they are broken (which I suspect). If they are broken then you need to check configuration of swap, /tmp as well as the stxxl files. |
inspection of input would be a nice option in the release version, ie:
|
Perhaps we could have this as a separate tool. |
would probably make sense |
This is now in develop branch. |
Hi,
I have this error
Same url https://router.project-osrm.org/viaroute?z=14&output=json&loc=41.488070,2.067661&loc=41.475789,2.089376&instructions=false works fine.
Some machine parameters
top - 18:44:27 up 21 min, 2 users, load average: 0.14, 0.09, 0.14
Tasks: 100 total, 1 running, 99 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 29355984 total, 29198168 used, 157816 free, 4856 buffers
KiB Swap: 16774140 total, 0 used, 16774140 free. 28801940 cached Mem
I use ubuntu 14.04
Thanks
The text was updated successfully, but these errors were encountered: