osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

osrm-extract core

Open petrihelenius opened this issue 13 years ago • 6 comments

While using profiles for car and cycling work fine, osrm-extract for foot aborts:

build/osrm-extract finland-latest.osm.pbf profiles/foot.lua [info] Using script profiles/foot.lua [info] extracting data from input file finland-latest.osm.pbf [STXXL-MSG] STXXL v1.3.1 (release) [STXXL-ERRMSG] Warning: no config file found. [STXXL-ERRMSG] Using default disk configuration. [STXXL-MSG] 1 disks are allocated, total space: 1000 MiB [info] Ignoring turn restrictions [info] Found 1 exceptions to turn restriction [info] foot [info] Parsing in progress.. terminate called after throwing an instance of 'luabind::error' what(): lua runtime error Abort (core dumped)

petrihelenius avatar Sep 29 '13 16:09 petrihelenius

Hi,

Same error with last version of master or with 0.3.6 tagged vesion:

Project-OSRM-v0.3.6$ ./osrm-extract ../../cantal-rectangle.osm.pbf [info] Input file: cantal-rectangle.osm.pbf [info] Profile: profile.lua [info] Threads: 8 [info] Using script profile.lua terminate called recursively terminate called recursively terminate called recursively Abandon (core dumped)

Project-OSRM-last$ ./osrm-extract cantal-rectangle.osm.pbf [info] Input file: cantal-rectangle.osm.pbf [info] Profile: profile.lua [info] Threads: 8 [info] Using script profile.lua terminate called after throwing an instance of 'OSRMException' terminate called recursively Abandon (core dumped)

Precision: I've built OSRM on a Ubuntu 13.04 (if it can helps) with lua 5.1.5-4, libstxxl 1.3.1-4 and libboost 1.49.0

NicolasDumoulin avatar Oct 17 '13 13:10 NicolasDumoulin

I've recompiled v0.3.6 with debug mode, and here is the trace: $ gdb ./osrm-extract GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu Copyright (C) 2013 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". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from Project-OSRM/build/osrm-extract...done. (gdb) run ../../cantal-rectangle.osm.pbf Starting program: Project-OSRM/build/osrm-extract ../../cantal-rectangle.osm.pbf warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [info] Input file: cantal-rectangle.osm.pbf [info] Profile: profile.lua [info] Threads: 8 [info] Using script profile.lua [New Thread 0x7ffff2cc0700 (LWP 13859)] [New Thread 0x7ffff24bf700 (LWP 13860)] [New Thread 0x7ffff1cbe700 (LWP 13861)] terminate called after throwing an instance of 'terminate called recursively OSRMException'

Program received signal SIGABRT, Aborted. [Switching to Thread 0x7ffff1cbe700 (LWP 13861)] 0x00007ffff50ba037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt full #0 0x00007ffff50ba037 in raise () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x00007ffff50bd698 in abort () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #2 0x00007ffff5bd5e65 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. #3 0x00007ffff5bd3f76 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. #4 0x00007ffff5bd3089 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. #5 0x00007ffff5bd3bc1 in __gxx_personality_v0 () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. #6 0x00007ffff545a15b in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1 No symbol table info available. #7 0x00007ffff545a3fd in _Unwind_RaiseException () from /lib/x86_64-linux-gnu/libgcc_s.so.1 No symbol table info available. #8 0x00007ffff5bd41d1 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 No symbol table info available. #9 0x000000000054d27c in ScriptingEnvironment::ScriptingEnvironment(char const*) clone ._omp_fn.0 at Project-OSRM/Extractor/ScriptingEnvironment.cpp:103 (anonymous namespace)::_1 = {} (anonymous namespace)::_2 = {} (anonymous namespace)::_3 = {} (anonymous namespace)::4 = {} (anonymous namespace)::5 = {} (anonymous namespace)::6 = {} (anonymous namespace)::7 = {} (anonymous namespace)::8 = {} (anonymous namespace)::9 = {} boost::spirit::ascii::cntrl = {static proto_arity_c = , child0 = {boost::spirit::tag::char_code_baseboost::spirit::tag::cntrl = {}, boost::spirit::tag::char_encoding_baseboost::spirit::char_encoding::ascii = {}, }} boost::spirit::delimit = {<boost::proto::exprns::extends<boost::proto::exprns::expr<boost::proto::tagns::tag::terminal, boost::proto::argsns::termboost::spirit::tag::delimit, 0l>, boost::spirit::terminalboost::spirit::tag::delimit, boost::proto::domainns::default_domain, 0l>> = {proto_expr = {static proto_arity_c = ,

NicolasDumoulin avatar Oct 17 '13 14:10 NicolasDumoulin

A couple of questions:

  • whats your exact command line?
  • did you copy the binaries to another directory
  • did you compile any of the dependencies yourself?

another thing: please put longer logs into gists and link them here. helps readability.

DennisOSRM avatar Oct 17 '13 14:10 DennisOSRM

Hi Dennis,

My command line is: ./osrm-extract ../../cantal-rectangle.osm.pbf No, I don't have copied the binary, I'm working in the build directory I don't have compile anything else than OSRM, using your list of packages in your documentation (thanks).

I will give you extra log later (should leave my computer right now)

Thanks

NicolasDumoulin avatar Oct 17 '13 14:10 NicolasDumoulin

ok, found the issue. The work around is easy: copy the binaries to the main directory (the one that has routed.cpp) and try again.

DennisOSRM avatar Oct 17 '13 14:10 DennisOSRM

Well done, it works! thanks a lot Dennis

NicolasDumoulin avatar Oct 18 '13 06:10 NicolasDumoulin