Skip to Content.
Sympa Menu

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: Roland Olbricht <>
  • To:
  • Subject: Re: [overpass] Segmentation fault (core dumped) when trying to start dispatcher
  • Date: Tue, 17 Dec 2019 21:37:03 +0100

The software is in principle compatible to any underyling POSIX
compatible OS (Linux, FreeBSD, MacOS). At the moment I simply do not
have enough information to give any helpful advice and need to
investigate until I have so.

There is a missing stone in the puzzle. Things I have seen in the past
include weird file permissions including an intervening AppArmor (or
similar tools), running short of disk storage, a bug in the OS, of
course several times non-obvious bugs in the software, and so on.

To help me to ensure that the crash location is where I suppose it is,
please replace in the file
the source from line 470 on with

Logger logger(db_dir);
Default_Dispatcher_Logger disp_logger(logger);
if (max_allowed_space <= 0)
max_allowed_space = areas ? area_settings().total_available_space
: osm_base_settings().total_available_space;
if (max_allowed_time_units <= 0)
max_allowed_time_units = areas ?
: osm_base_settings().total_available_time_units;
std::ostringstream out;
out<<"DEBUG A "<<areas<<' '<<area_settings().max_num_processes<<'
Dispatcher dispatcher
(areas ? area_settings().shared_name :
"", db_dir + (areas ? "areas_shadow" : "osm_base_shadow"), db_dir,
areas ? area_settings().max_num_processes :
areas ? area_settings().purge_timeout :
files_to_manage, &disp_logger);
logger.annotated_log("DEBUG B");
if (rate_limit > -1)
catch (File_Error e)
std::cout<<"File_Error "<<strerror(e.error_number)<<'
'<<e.error_number<<' '<<e.filename<<' '<<e.origin<<'\n';

return 0;

This adds two extra debug statements. I hope I can that way more
precisely determine the crash location and circumstances. Saving this to and an on-the-fly patch like

{ head -n 469 overpass_api/dispatch/; cat
$DIR/; } >_; mv _ overpass_api/dispatch/

should do the job.

What is Segment fault trying to communicate in this context?

Segment indicate that the program has run into an illegal state. Usually
it emans as much as knowing that the program has somehow crashed.

Best regards,


Archive powered by MHonArc 2.6.19+.

Top of Page