[ gpsdrive ] osm2pgsql errors

Alex Cruz elmonogrande at gmail.com
Sun Oct 14 17:06:34 AKDT 2007


On Sunday 14 October 2007, Joerg Ostertag wrote:
> ...
>
> > Writing way(66k)mapnik-osm-updater.sh: line 318:   677 Segmentation fault
> > sudo -u "$osm_username" osm2pgsql --database "$database_name"
> > $planet_file
> >
> > Any thoughts as to why this is happening?
>
> Not really :-(
>
> Here are just some random guesses:
> 	- you are using the most recent osm2pgsql?
> 	- the last "svn up" returned without errors?
> 	- and compiled it on you machine?
> 	- you do have enough memory?
> 	- Downloading the planet file worked without errors?
>
> If nothing of the above helps, could you plese use gdb to get more
> information and send this to the dev at osm list or to artem-pavlenko and
> john-burges

Ok so, here are the results from your suggestions:
 -Yes, I am using the most recent osm2pgsql (checked it out today)
 -svn up updated with no errors
 -compiled osm2pgsql with no errors
 -I have 2GB of RAM
 -downloaded the planet file (several times)

What I have noticed is that regardless if the planet file is compressed or 
uncompressed (I didn't realize it was 12GB uncompressed), the process always 
dies when it hits the "Writing way(66k)". Also, regardless if it's the only 
process running, it consumes all available RAM and starts to swap a little, 
too. The -s option didn't work either. 

Since I have never used gdb to debug, what parameters should I use to capture 
the information? Thanks.

-alex


More information about the GPSdrive mailing list