DennisOSRM/Project-OSRM — Issue #34: "Segmentation fault: 11" when running osrm-prepare
Author: emiltin
Created: 2011-11-29 19:32:18+00:00
State: open

i'm using a small test file extracted from with osmosis:

~/code/osm$ osmosis --read-pbf file=denmark.osm.pbf --bounding-box top=55.6667 left=12.56713 bottom=55.65435 right=12.59742 --write-pbf file=bryggen.osm.pbf omitmetadata=true
Nov 29, 2011 8:22:17 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.39
Nov 29, 2011 8:22:17 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Nov 29, 2011 8:22:17 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Nov 29, 2011 8:22:17 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Nov 29, 2011 8:22:27 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
Nov 29, 2011 8:22:27 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 9977 milliseconds.

but osrm-extract works, but osrm-prepare segfaults:

~/code/osm$ osrm-extract bryggen.osm.pbf
[extractor] extracting data from input file bryggen.osm.pbf
[info extractor.cpp:107] Loading speed profiles
[info extractor.cpp:109] Found the following speed profiles:
[0]bike
[1]car
[info extractor.cpp:117] Using profile "bike"
[debug extractor.cpp:121] inserting footway=16
[debug extractor.cpp:121] inserting footpath=16
[debug extractor.cpp:121] inserting trunk=16
[debug extractor.cpp:121] inserting trunk_link=16
[debug extractor.cpp:121] inserting primary=16
[debug extractor.cpp:121] inserting primary_link=16
[debug extractor.cpp:121] inserting secondary=16
[debug extractor.cpp:121] inserting secondary_link=16
[debug extractor.cpp:121] inserting tertiary=16
[debug extractor.cpp:121] inserting unclassified=16
[debug extractor.cpp:121] inserting residential=16
[debug extractor.cpp:121] inserting living_street=16
[debug extractor.cpp:121] inserting service=16
[debug extractor.cpp:121] inserting track=16
[debug extractor.cpp:121] inserting cycleway=16
[debug extractor.cpp:121] inserting path=16
[debug extractor.cpp:121] inserting ferry=5
[debug extractor.cpp:121] inserting pier=5
[debug extractor.cpp:121] inserting obeyPollards=0
[debug extractor.cpp:121] inserting useRestrictions=0
[debug extractor.cpp:121] inserting accessTag=bicycle
[extractor] using 2 GB of RAM for buffers
[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
Parse Data Thread Finished
[info] blocks: 1
[info] groups: 3
[extractor] parsing finished after 0.079576 seconds
[extractor] Sorting used nodes ... ok, after 0.07075s
[extractor] Erasing duplicate nodes ... ok, after 0.00101399s
[extractor] Sorting all nodes ... ok, after 0.077153s
[extractor] Sorting used ways ... ok, after 0.0700879s
[extractor] Sorting restrctns. by from... ok, after 0.0701451s
[extractor] Fixing restriction starts ... ok, after 0.070153s
[extractor] Sorting restrctns. by to ... ok, after 1.19209e-05s
[extractor] Fixing restriction ends ... ok, after 2.14577e-06s
[extractor] Confirming used nodes ... ok, after 0.00279403s
[extractor] setting number of nodes ... ok
[extractor] Sorting edges by start ... ok, after 0.0784719s
[extractor] Setting start coords ... ok, after 0.00303388s
[extractor] Sorting edges by target ... ok, after 0.0637341s
[extractor] Setting target coords ... ok, after 0.00564885s
[extractor] setting number of edges ... ok
[extractor] writing street name index ... ok, after 0.000108004s
[extractor] finished.
~/code/osm$ osrm-prepare bryggen.osrm bryggen.osrm.restrictions
[info createHierarchy.cpp:66] Using restrictions from file: bryggen.osrm.restrictions
[info createHierarchy.cpp:76] Loaded 0 restrictions from file
[error] Failed to open file contractor.ini for reading.
preprocessing data from input file bryggen.osrm using STL serial mode
Importing n = 756 nodes ... and 911 edges ...[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
[warning] unresolved source NodeID: 754
ok
[info Contractor/EdgeBasedGraphFactory.cpp:78] Converted 873 node-based edges into 1675 edge-based nodes.
[info Contractor/EdgeBasedGraphFactory.cpp:96] Generating Edge based representation of input data
Segmentation fault: 11