Re: Bug#311732: [postgis] shp2pgsql segaults on quotes in dbf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Bug#311732: [postgis] shp2pgsql segaults on quotes in dbf

alex bodnaru
hi flo, list

i am forwarding this bug report here, in the hope it may be better
discussed.

alex

On Fri, 2005-06-03 at 01:35 +0200, Florian Lohoff wrote:

> Package: postgis
> Version: 1.0.0-1
>
> Hi,
> i am running postgis on Debian/Sarge and i am just trying to import some
> shape files. The second shape segfaulted on me. Here is a gdb backtrace.
> It seems there is something broken with quotes vs doubleqoutes etc ...
>
> (gdb) bt
> #0  0xb7f1cb1b in memset () from /lib/tls/libc.so.6
> #1  0xb7f1532a in calloc () from /lib/tls/libc.so.6
> #2  0x0804fc76 in protect_quotes_string (str=0xbfffeb10 "Schmid's Wies") at shp2pgsql.c:230
> #3  0x0805003a in Insert_attributes (hDBFHandle=0x80553b0, row=61861) at shp2pgsql.c:335
> #4  0x0805070d in LoadData () at shp2pgsql.c:623
> #5  0x08050176 in main (ARGC=4, ARGV=0xbffff004) at shp2pgsql.c:401
>
> Flo
_______________________________________________
postgis-devel mailing list
[hidden email]
http://postgis.refractions.net/mailman/listinfo/postgis-devel
Reply | Threaded
Open this post in threaded view
|

RE: Re: Bug#311732: [postgis] shp2pgsql segaults onquotes in dbf

Mark Cave-Ayland
Hi Alex,

There was an escaping bug in shp2pgsql which has been fixed in 1.0.1 (see
http://postgis.refractions.net/pipermail/postgis-users/2005-April/007762.htm
l) - could you ask Flo to try 1.0.1 and see if this solves the problem?


Kind regards,

Mark.

------------------------
WebBased Ltd
South West Technology Centre
Tamar Science Park
Plymouth
PL6 8BT

T: +44 (0)1752 797131
F: +44 (0)1752 791023
W: http://www.webbased.co.uk
 

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On
> Behalf Of alex bodnaru
> Sent: 03 June 2005 02:52
> To: Florian Lohoff; PostGIS Development Discussion
> Subject: [postgis-devel] Re: Bug#311732: [postgis] shp2pgsql
> segaults onquotes in dbf
>
>
> hi flo, list
>
> i am forwarding this bug report here, in the hope it may be
> better discussed.
>
> alex
>
> On Fri, 2005-06-03 at 01:35 +0200, Florian Lohoff wrote:
> > Package: postgis
> > Version: 1.0.0-1
> >
> > Hi,
> > i am running postgis on Debian/Sarge and i am just trying to import
> > some shape files. The second shape segfaulted on me. Here is a gdb
> > backtrace. It seems there is something broken with quotes vs
> > doubleqoutes etc ...
> >
> > (gdb) bt
> > #0  0xb7f1cb1b in memset () from /lib/tls/libc.so.6
> > #1  0xb7f1532a in calloc () from /lib/tls/libc.so.6
> > #2  0x0804fc76 in protect_quotes_string (str=0xbfffeb10 "Schmid's
> > Wies") at shp2pgsql.c:230 #3  0x0805003a in Insert_attributes
> > (hDBFHandle=0x80553b0, row=61861) at shp2pgsql.c:335 #4  
> 0x0805070d in
> > LoadData () at shp2pgsql.c:623 #5  0x08050176 in main (ARGC=4,
> > ARGV=0xbffff004) at shp2pgsql.c:401
> >
> > Flo
> _______________________________________________
> postgis-devel mailing list [hidden email]
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>


_______________________________________________
postgis-devel mailing list
[hidden email]
http://postgis.refractions.net/mailman/listinfo/postgis-devel