[postgis-users] Segfault in shp2pgsql? Or did I mess up compiling.

Ron Mayer rm_postgis at cheapcomplexdevices.com
Thu Apr 21 00:56:36 PDT 2005

I just tried installing postgis1.0.0 on SuSE 9.2 and seem to be getting a
segmentation fault with some of the shp2pgsql imports.  This shapefile:


is one of the ones crashing.  (entire sequence of steps shown below)
I don't recall having this problem with one of the earlier RC's, but
can't remember exactly which one.

If someone can try this shp2pgsql on that shapefile and tell me if it
works for them, I'll try to figure out what's wrong with my environment;
or if someone can point me in the right direction what to try next, I'll
be happy to try it.


fli-lin1 tmp/shp> wget -x -p http://edcftp.cr.usgs.gov/pub/data/nationalatlas/citiesx020.tar.gz
--00:46:01--  http://edcftp.cr.usgs.gov/pub/data/nationalatlas/citiesx020.tar.gz
            => `edcftp.cr.usgs.gov/pub/data/nationalatlas/citiesx020.tar.gz'
Resolving edcftp.cr.usgs.gov...
Connecting to edcftp.cr.usgs.gov[]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,186,226 [application/x-gzip]

100%[====================================>] 1,186,226    483.75K/s

00:46:04 (482.19 KB/s) - `edcftp.cr.usgs.gov/pub/data/nationalatlas/citiesx020.tar.gz' saved [1186226/1186226]

FINISHED --00:46:04--
Downloaded: 1,186,226 bytes in 1 files
fli-lin1 tmp/shp> gunzip -c ../mapdata/edcftp.cr.usgs.gov/pub/data/nationalatlas/citiesx020.tar.gz   | tar xvf -
fli-lin1 tmp/shp> shp2pgsql citiesx020.shp usgs.citiesx020 > 3
Shapefile type: Point
Postgis type: POINT[2]
Segmentation fault
fli-lin1 tmp/shp>

More information about the postgis-users mailing list