Closed thomersch closed 11 years ago
What does your server.ini look like?
namesData=/home/osrm/planetfiles/sachsen.osrm.restrictions
should be
namesData=/home/osrm/planetfiles/sachsen.osrm.names
osrm could perhaps check the extension of the files it loads
Damn - the second I posted the last comment I realized that I chose the wrong server.ini. The correct one is of course
Threads = 1
IP = 0.0.0.0
Port = 5111
hsgrData=/home/osrm/planetfiles/sachsen.osrm.hsgr
nodesData=/home/osrm/planetfiles/sachsen.osrm.nodes
edgesData=/home/osrm/planetfiles/sachsen.osrm.edges
ramIndex=/home/osrm/planetfiles/sachsen.osrm.ramIndex
fileIndex=/home/osrm/planetfiles/sachsen.osrm.fileIndex
namesData=/home/osrm/planetfiles/sachsen.osrm.names
And the error I meant happens here:
[info Server/DataStructures/QueryObjectsStorage.cpp:62] Loading names index
[info Server/DataStructures/QueryObjectsStorage.cpp:80] All query data structures loaded
[handler] registering plugin hello
[handler] registering plugin locate
[handler] registering plugin nearest
[handler] registering plugin timestamp
[handler] registering plugin viaroute
[server] running and waiting for requests
Stacktrace
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd938646000
mprotect(0x7fd938646000, 4096, PROT_NONE) = 0
clone(child_stack=0x7fd938e45f70, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fd938e469d0, tls=0x7fd938e46700, child_tidptr=0x7fd938e469d0) = 26106
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT QUIT TERM], NULL, 8) = 0
write(1, "[server] running and waiting for"..., 42[server] running and waiting for requests
) = 42
rt_sigtimedwait([INT QUIT TERM], NULL, NULL, 8 <unfinished ...>
+++ killed by SIGSEGV +++
I have a bunch of questions:
git clone https://github.com/DennisOSRM/Project-OSRM.git
Checkout the latest source from the develop branch and retry with that.
I deleted all the files, pulled the "develop" branch, extracted and prepared the files, customized the server.ini and at least it fails at a different step
./osrm-routed
[server] starting up engines, saved at Tue Feb 12 20:01:56 2013
[server] http 1.1 compression handled by zlib version 1.2.7
[info Server/DataStructures/QueryObjectsStorage.cpp:26] loading graph data
[info Server/DataStructures/QueryObjectsStorage.cpp:34] Data checksum is 3347887039
[info Server/DataStructures/QueryObjectsStorage.cpp:52] Loading auxiliary information
[info Server/DataStructures/QueryObjectsStorage.cpp:62] Loading names index
[info Server/DataStructures/QueryObjectsStorage.cpp:80] All query data structures loaded
[handler] registering plugin hello
[handler] registering plugin locate
[handler] registering plugin nearest
[handler] registering plugin timestamp
[handler] registering plugin viaroute
Segmentation fault
Or with stacktrace
close(7) = 0
close(8) = 0
write(1, "[info Server/DataStructures/Quer"..., 89[info Server/DataStructures/QueryObjectsStorage.cpp:80] All query data structures loaded
) = 89
write(1, "[handler] registering plugin hel"..., 35[handler] registering plugin hello
) = 35
write(1, "[handler] registering plugin loc"..., 36[handler] registering plugin locate
) = 36
write(1, "[handler] registering plugin nea"..., 37[handler] registering plugin nearest
) = 37
write(1, "[handler] registering plugin tim"..., 39[handler] registering plugin timestamp
) = 39
write(1, "[handler] registering plugin via"..., 38[handler] registering plugin viaroute
) = 38
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
Can I provide you any further information or shall I try something else in order to get this thing running? Thanks in forward.
Not sure what the issue actually is as multiple systems just run fine here. Could you rebuild in debug mode with
scons --build=debug
and run it in GDB. It shall provide you with a stack trace.
you could also try running the cuke tests
I have managed to solve the problem :) @DennisOSRM @emiltin thanks a lot for your assistance, it was very kind of you to help me.
For all who also encounter such problems as well:
I had some mismatch with the libboost-libraries. I removed them via apt-get and perfomed a rm /usr/lib/libboost*
Caution - if you break dependencies, some software may not run anymore!
After this I reinstalled all the libboost libraries as instructed in the installation manual. And boom, it worked.
For future development maybe you should consider checking the versions of loaded libraries. On some systems there are old files lying around in /usr/lib and some improper symlinks (which might happen on distribution upgrades etc.) which break OSRM without giving very useful error messages.
Thanks for the update.
Running debian updated to wheezy, all packages are up-to-date. 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux
My installed libraries
After extracting and preparing the osm files I am trying to run osrm-routed. This fails at "Loading names index".
After that, I ran a stack trace and got the following:
I have the correct permissions set to /planetfiles/ and for sachsen.osrm.restrictions as well. At this point I have no idea what is causing the problem in there.