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

strk at refractions.net strk at refractions.net
Thu Apr 21 02:08:05 PDT 2005


Your patch committed. Thanks.
This was introduced fixing the "missed escape of first char" bug.

I'm afraid this is bad enough to make 1.0.1 closer, as the segfault
is pending on *every* import. Can you check current CVS (1.0 branch) ?

--strk;

On Thu, Apr 21, 2005 at 12:56:36AM -0700, Ron Mayer wrote:
> 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:
> 
>   http://edcftp.cr.usgs.gov/pub/data/nationalatlas/citiesx020.tar.gz
> 
> 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.
> 
>   Ron
> 
> =====================================
> 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... 152.61.128.3
> Connecting to edcftp.cr.usgs.gov[152.61.128.3]: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 -
> citiesx020.dbf
> citiesx020.shp
> citiesx020.shx
> citiesx020.txt
> fli-lin1 tmp/shp> shp2pgsql citiesx020.shp usgs.citiesx020 > 3
> Shapefile type: Point
> Postgis type: POINT[2]
> Segmentation fault
> fli-lin1 tmp/shp>
> 
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list