Trouble with AsText(ExteriorRing()) Re: [postgis-users] IsSimple terminating connection

strk at refractions.net strk at refractions.net
Fri Nov 25 14:22:37 PST 2005


So, you get a segfault with:
	- GEOS-2.1.4
	- postgis-1.0.5
	- postgres-8.0.4
What architecture ?
Do regression tests give you a segfault as well ?
Can you see libstdc++ linked to liblwgeom.so ?

--strk;

On Fri, Nov 25, 2005 at 08:53:41PM +0100, Diez B. Roggisch wrote:
> Diez B. Roggisch wrote:
> >david techer wrote:
> >
> >>Hi
> >>? Strange, very strange ?
> >>
> >>I did the tests with geos 2.1.4/proj4.4.9/postgis-1.0.4/postgresql-8.0.3
> >
> >
> >I also tried postgres 8.0.4 - and the new postgis 1.0.5. Same result.
> >
> >Is there anything I can do to enable more debug logging?
> 
> Ok, after some googling I found ways to attach myself to the PG for 
> debugging. Whilst doing so I also "accidentially" installed a newer 
> version of geos - version is now 2.1.4
> 
> 
> That made my program run, also over the IsSimple - until this statement:
> 
> SELECT AsText(ExteriorRing(shore)) FROM lakes  WHERE name = 'Blue Lake';
> 
> 
> It gave me this in the debugger:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0822e6ec in pfree (pointer=0x8371b70) at mcxt.c:586
> 586             (*header->context->methods->free_p) (header->context, 
> pointer);
> 
> 
> The bt is somewhat unhelpful, no idea why no symbols are delivered:
> 
> #0  0x0822e6ec in pfree (pointer=0x8371b70) at mcxt.c:586
> #1  0x410c4acc in ?? ()
> #2  0x08371b70 in ?? ()
> #3  0x08371c7c in ?? ()
> #4  0xbfffde88 in ?? ()
> #5  0x410b851a in ?? ()
> #6  0x00000080 in ?? ()
> #7  0x410f0264 in ?? ()
> #8  0xbfffde68 in ?? ()
> #9  0x410c493f in ?? ()
> #10 0x08371b70 in ?? ()
> #11 0x08371c60 in ?? ()
> #12 0xbfffde98 in ?? ()
> #13 0x410c4ca7 in ?? ()
> #14 0x08371c60 in ?? ()
> #15 0x410f0264 in ?? ()
> #16 0xbfffde98 in ?? ()
> #17 0x410b88c3 in ?? ()
> #18 0x08371b70 in ?? ()
> #19 0x08371bf8 in ?? ()
> #20 0x00000002 in ?? ()
> #21 0x410b889e in ?? ()
> #22 0x00000002 in ?? ()
> #23 0x00000000 in ?? ()
> #24 0x00000069 in ?? ()
> #25 0x410f0264 in ?? ()
> #26 0x40828fd8 in ?? ()
> #27 0x08371bf8 in ?? ()
> #28 0xbfffdec8 in ?? ()
> #29 0x410c6fa6 in ?? ()
> #30 0x08371bf8 in ?? ()
> #31 0x08371b70 in ?? ()
> #32 0x08371c30 in ?? ()
> #33 0x0836fd00 in ?? ()
> #34 0xbfffdef8 in ?? ()
> #35 0x08371bf8 in ?? ()
> #36 0x08371c78 in ?? ()
> #37 0x00000000 in ?? ()
> #38 0x08370190 in ?? ()
> #39 0xbfffe168 in ?? ()
> #40 0xbfffe128 in ?? ()
> #41 0x0812da99 in ExecMakeFunctionResult (fcache=0x40828fd8, 
> econtext=0x8371c60, isNull=0xbfffde98 
> "ÈÞÿ¿¦o\fAø\0337\bp\0337\b0\0347\b", isDone=0x8371bf8)
>     at execQual.c:1096
> Previous frame inner to this frame (corrupt stack?)
> 
> 
> Any suggestions?
> 
> Regards,
> 
> Diez
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for open standards
  X     No HTML/RTF in email
 / \    No M$ Word docs in email




More information about the postgis-users mailing list