[postgis-users] shp2pgsql segfault and gdb

Amos Hayes ahayes at polkaroo.net
Fri Sep 30 08:56:56 PDT 2005


Yep. That got rid of the crash. Thank you.

Can you explain what occurs when the -W flag is specified? What do  
you get if you omit it? Does it affect how you might load it into the  
DB?

I had a peek in section 4.3.2 of the docs and I don't see the option  
documented. Sorry if it's a silly question... character sets,  
encoding, and display seem like voodoo to me.

--
Amos

On 30-Sep-05, at 4:47 AM, strk at refractions.net wrote:

> Index: shp2pgsql.c
> ===================================================================
> RCS file: /home/cvs/postgis/postgis/loader/shp2pgsql.c,v
> retrieving revision 1.88.2.7
> diff -U2 -r1.88.2.7 shp2pgsql.c
> --- shp2pgsql.c 29 Aug 2005 22:36:14 -0000      1.88.2.7
> +++ shp2pgsql.c 30 Sep 2005 08:45:42 -0000
> @@ -188,5 +188,5 @@
>
>  #ifdef USE_ICONV
> -       free(str);
> +       if ( encoding ) free(str);
>  #endif
>
> @@ -241,5 +241,5 @@
>
>  #ifdef USE_ICONV
> -       free(str);
> +       if ( encoding ) free(str);
>  #endif
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20050930/1ccb3cd7/attachment.html>


More information about the postgis-users mailing list