[postgis-users] pgsql2shp segfault by multipolygon export

strk at refractions.net strk at refractions.net
Fri Jul 22 06:34:00 PDT 2005


I've made a test on a 64bit machine with 1.0 branch.
Dump of 32768 multipolygons worked fine.
I suspect the bug to be in the hexwkb output if the 0.9
backend possibly corrupted.

You might try undefining USE_WKB in your 0.9 version of
pgsql2shp.c to see if the error goes away. 

--strk;

On Fri, Jul 22, 2005 at 01:18:21PM +0200, strk at refractions.net wrote:
> Can you obtain a backtrace with gdb or a valgrind output ?
> --strk;
> 
> On Fri, Jul 22, 2005 at 07:14:20PM +0800, ch.grau at uni.de wrote:
> > hi all :-)
> > 
> > i have build postgis-1.0.2 but multipolygon export still does not work.
> > the error message
> > 
> > ./pgsql2shp -f test.shp -P test -u test_user test_db test_table
> > Initializing...
> > Done (postgis major version: 0).
> > Output shape: Polygon
> > Dumping: XSegmentation fault
> > 
> > kernel message:
> > 
> > pgsql2shp[14742]: segfault at 0000000000000000 rip 0000000000408817
> > rsp 0000007fbfffe670 error 6
> > 
> > thanks for help
> > 
> > christian grau
> > 
> > 
> > >I suggest you download and build postgis-1.0.2
> > >You should be able to use the pgsql2shp distributed with it
> > >against older databases. If the problem persists please let us know.
> > >
> > >--strk;
> > >
> > >On Thu, Jul 21, 2005 at 07:56:50PM +0800, ch.grau at uni.de wrote:
> > > hi all,
> > > 
> > > 
> > > i have a problem while exporting an multipolygon layer with pgsql2shp.
> > > exports of lines and points are ok
> > > 
> > > i'm using suse 9.2 / postgresql 8.0.2 and postgis-0.9.1 on 64bit
> > > 
> > > i get following error messeage
> > > 
> > > test:~ # /usr/local/pgsql/bin/pgsql2shp - f /var/pg_backup/shapes/test -P mutsave -u postgres test_db test_table
> > > Initializing... Done.
> > > Dumping: XSegmentation fault
> > > 
> > > thanks for help
> > > 
> > > christian grau
> > > 
> > > -- 
> > > _______________________________________________
> > > FreeMail und FreeSMS auf www.uni.de
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users at postgis.refractions.net
> > > http://postgis.refractions.net/mailman/listinfo/postgis-users
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> > 
> > 
> > -- 
> > _______________________________________________
> > FreeMail und FreeSMS auf www.uni.de
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> 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