[postgis-users] Re: Segfault in shp2pgsql? Or did I mess up compiling.
Ron Mayer
rm_postgis at cheapcomplexdevices.com
Thu Apr 21 01:45:06 PDT 2005
Sorry, I think I had the patch reversed...and there seems to be a similar
case a few lines away. I think this is the patch I intended.
fli-lin1 postgis-1.0.0/loader> cat shp2pgsql.c.patch
--- shp2pgsql.c.~1~ 2005-04-14 05:58:59.000000000 -0700
+++ shp2pgsql.c 2005-04-21 01:39:41.170471328 -0700
@@ -174,7 +174,7 @@
size = ptr-str+toescape;
- result = calloc(1, size);
+ result = calloc(1, size+1);
optr=result;
ptr=str;
@@ -227,7 +227,7 @@
size = ptr-str+toescape;
- result = calloc(1, size);
+ result = calloc(1, size+1);
optr=result;
ptr=str;
fli-lin1 postgis-1.0.0/loader>
Ron Mayer wrote:
> 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
More information about the postgis-users
mailing list