Skip to Content.

overpass - Re: [overpass] Segmentation fault (core dumped) when trying to start dispatcher

Subject: Overpass API developpement

List archive


Re: [overpass] Segmentation fault (core dumped) when trying to start dispatcher


Chronological Thread 
  • From: Brian Vogelgesang <>
  • To: "" <>, Roland Olbricht <>
  • Subject: Re: [overpass] Segmentation fault (core dumped) when trying to start dispatcher
  • Date: Mon, 16 Dec 2019 21:41:27 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=rightpoint.com; dmarc=pass action=none header.from=rightpoint.com; dkim=pass header.d=rightpoint.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RofH76RTx3YeyWCv2SK4o4s1fgZgIQT7dmpu8galbLk=; b=hDnYcbkMbPFWquHHAwzXsoFDOFDpd01jlzrmVn68tcyB7YqA/y+lrfrLls4pHBWYtHizbfU9nrtN4rU0KqLDK/6Tqqk7SVUeTdagrZ7AC6pO/INPjdYa8/5iyAP1UuHRxHG8X5mJDjT+L9St7xdbrw4WP6gEVIbEWd0GC8JKx9nrvckXtTjjFW6TStwpyJ0N52HPM7az1rGaQPuUms/ETL5rFbLdPNZXel0oOC2KhUKrws3kZY09RnMUSfyFSpyi+aNS4A0wi8wzDEFehgNUrcU2iRuV3gQqdJkyYQI7y3R1YwKUnlj2l9VktlrUfze1sFHwyKB711xGZp+M2FzbYw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tk6pCshHoJe7OsJHzU57X1pUOSxRI1i8sGE2NCZuxurORWDwIawqKYsqTc3k1/+qREN1Mk3bSC4RMf+4qMi2QDtUfn3m7kRxTvim71+P4jUBeK9+LDvSWySwL0V96fnDtp4eMicEVkj0Zxglm2LfssT7R7tNduDoyXKGWE0v52h+A9hWDzlWkymVNTeI2enpGZYB/jO1TmDU5u5+GcvnqwLWxjjHeaEw/Nk+QvfLFvpIKJiCu83loLWPmiQz3247TV6s/OSjV7lUHq9qEuiMpxd27fE9mPRt02t9oUdzboiw5zIrZN6NwxmFFjemT1gPkO+VresodpJAXIewYb532g==
  • Authentication-results: spf=none (sender IP is ) ;

I created a new machine with Ubuntu 18.04 and I still receive the segment
fault when I try to start the dispatcher. Below are the prompts I run to get
osm3_query setup on my machine. Note that the database files have already
been downloaded with bin/download_clone.sh to a separate SSD disk that is
attached to the machine

cd ~/
# Install necessary libraries
sudo sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
sudo apt-get update && \
sudo apt-get -y upgrade && \
sudo apt-get install -y build-essential && \
sudo apt-get install -y software-properties-common && \
sudo apt-get install -y byobu curl git htop man unzip vim wget && \
sudo apt-get install -y g++ make expat libexpat1-dev zlib1g-dev && \
sudo apt-get install nginx && \
sudo apt-get install fcgiwrap && \
sudo service nginx start && \
sudo service fcgiwrap start && \
sudo service fcgiwrap restart && \
sudo service nginx restart

# Create a separate SSD Disk (150GB), format it, mount it and set permissions
# Also follow instructions for auto mounting the disk on boot
# Follow instructions here:
https://www.cloudbooklet.com/attach-and-mount-disks-to-vm-instance-in-google-cloud/
# Disk should be mounted to: ~/mnt/osm-db-disk/

# Set DB_DIR Env
export DB_DIR=~/mnt/osm-db-disk

# Download, unpack and cleanup OSM application
sudo wget http://dev.overpass-api.de/releases/osm-3s_v0.7.55.7.tar.gz
tar -zxvf osm-3s_v0.7.55.7.tar.gz
rm osm-3s_v0.7.55.7.tar.gz

# Make folder for OSM to be executed from & set EXEC_DIR env
mkdir osm_exec_files
export EXEC_DIR=~/osm_exec_files

# Compile OSM Application
cd osm-3s_v0.7.55 && ./configure CXXFLAGS="-O2" --prefix=$EXEC_DIR && make
install

# Remove Install Files and set execution permissions
cd ~/ && rm -rf ~/osm-3s_v0.7.55

# Test that you can run queries
$EXEC_DIR/bin/osm3s_query --db-dir=$DB_DIR

# Start dispatcher
nohup $EXEC_DIR/bin/dispatcher --osm-base --db-dir=$DB_DIR &

# This is where it fails and I get segment fault

On 12/16/19, 12:57 PM,
"
on behalf of Brian Vogelgesang"
<
on behalf of
>
wrote:

I used to have a reason to be using an older version of Ubuntu, I'm glad
to update. What is the most recent supported version of Ubuntu?

Permissions:
srw-rw-rw- 1 bvogelgesang bvogelgesang 0 Dec 16 19:53
osm3s_v0.7.55_osm_base
rw-rw-rw- 1 bvogelgesang bvogelgesang 105 Dec 16 20:53
/dev/shm/osm3s_v0.7.55_osm_base

Sometimes I get an error File_Error Connection refused 111
/home/bvogelgesang/mnt/osm-db-disk//osm3s_v0.7.55_osm_base Unix_Socket::7

Transaction.log
2019-12-16 19:36:42 [1894] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 19:37:07 [1901] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 19:37:14 [1912] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 19:41:03 [2049] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 19:41:40 [2082] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 19:52:56 [1837] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 19:53:35 [1868] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:17:14 [2104] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:48:54 [2577] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:51:25 [2660] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:51:42 [2677] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:52:10 [2702] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:53:12 [2756] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.
2019-12-16 20:55:59 [2906] Dispatcher version 0.7.55.7
8b86ff77bcd2f1199f5e81ea28aac25fa5f84436 just started.

On 12/16/19, 12:46 PM, "Roland Olbricht"
<>
wrote:

Hi,

> Does anyone have any pointers on what might be causing this?
>
> I'm running Ubuntu 14.04

We have December 2019. Ubuntu 14.04 has fallen out of maintenance for
some months. Unless you have an important reason to run a five year
old
OS, I strongly advise against that.

Other than that: Please check
- is there a file /dev/shm/osm3s_v0.7.55_osm_base
and which permissions does it have?
- is there a file $DB_DIR/osm3s_v0.7.55_osm_base
and which permissions does it have?
- What is the content of the file $DB_DIR/transactions.log ?

Best
Roland







Archive powered by MHonArc 2.6.19+.

Top of Page