-
-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault while importing diff with tiles expire option #651
Comments
This works for me:
I had to first load some data into the DB so did that with
|
Can you provide the backtrace for the segmentation fault? |
@lonvia Sorry - forget most important think... Log for 'current.osc_old1' Sat Nov 19 00:20:01 CET 2016 Using built-in tag processing pipeline Reading in file: current.osc Processing: Node(0k 0.0k/s) Way(1k 0.50k/s) Relation(0 0.00/s) Going over pending ways... Using 1 helper-processes Finished processing 905 ways in 1 s 905 Pending ways took 1s at a rate of 905.00/s Going over pending relations... Using 1 helper-processes Finished processing 23 relations in 0 s Committing transaction for planet_osm_point Log ends here, and via mail from cron I'm getting this: /home/osm/scripts/osm/replication_update.sh: line 43: 20672 Segmentation fault (core dumped) /usr/local/bin/osm2pgsql --number-processes 1 -v -C 2000 -G -K -j -x -s -S ./default.style --append -d osm2pgsql --bbox 13.50,48.50,24.50,55.50 --expire-tiles 5-17 --expire-output /home/osm/scripts/osm/expire_list_tmp current.osc >> $logpath$logfile 2>&1 Of course database is not empty - running few months without problems. All started when I've installed mod_tile and edited script so it returns expire tiles list. Here is map made from this data by geoserver. Attached full script and style file. |
First thought - what has changed (osm2pgsql version, mod_tile tile expiry script, machine environment or data)? I did notice a few problems with tile expiry (running out of memory) when I was looking at increasing zoom levels supported by rendering - see https://wiki.openstreetmap.org/wiki/User:SomeoneElse/mod_tile_28 and the links from there - but I'd be surprised if zoom level 17 was enough to cause the problem. |
@jendrusk That's quite helpful, so it segfaults while cleaning up. I'd still like to have a look at the backtrace: your log says 'Segmentation fault (core dumped)', so somewhere there must be a file called 'core'. Linux normally writes it into the current working directory, I'm not sure where that would be on your system, most likely in |
@lonvia - as radiotelegraphists say 'SRI IM LID'
Is it OK? |
Thanks Sarah, I'll do it stright away :) |
In some cases (not always) osm2pgsql is rising segmentation fault error.
4808 Segmentation fault (core dumped)
Full command is:
Version of osm2pgsql:
System:
The same command without --expire-tiles and --expire-output options working fine
Attached two diff files (made by osmosis) causing error
current.zip
The text was updated successfully, but these errors were encountered: