[postgis-devel] lwg wkt parser kills postgres

Carl Anderson carl.anderson at vadose.org
Tue Jun 8 04:21:21 PDT 2004


On 06/08/2004 04:21:20 AM, strk wrote:
> On Mon, Jun 07, 2004 at 11:39:45PM +0000, Carl Anderson wrote:
> > On 06/07/2004 07:15:46 PM, David Blasby wrote:
> > >Carl Anderson wrote:
> > >
> > >>On 06/07/2004 05:28:01 PM, David Blasby wrote:
> > >>
> > >>>strk wrote:
> > >>>
> > >>>>bison-1.33 and bison-1.32
> > >>>>Both keep killing the backend.
> > >>>>
> > >>>>test=# select 'POINT()'::lwgeom::geometry;
> > >>>>server closed the connection unexpectedly
> > >>>>
> > >>>>What about flex Dave ?
> > >>>
> > >>>
> > >>>$ flex --version
> > >>>flex version 2.5.4
> > >>
> > >>
> > >>this patch will give a hint
> > >>with it all regression tests complete correctly for me.
> > >
> > >
> > >Looks like your lex/yacc were giving you an extra error() function
> 
> > >that was being incorrectly called instead of the "real" one.
> > >
> > >
> > Excuse my ignorance but grepping for "error\(" shows only the
> instance
> > in lwgparse.c
> > ../../../src/Makefile.global
> 
> It could be defined in some compiled library.
> 
> >
> > another hint
> >
> > edit
> > ../../../src/Makefile.global
> > set CFLAGS to not have -O2
> > ie from
> >  CFLAGS = -O2 -fno-strict-aliasing
> > to
> >  CFLAGS = -fno-strict-aliasing
> >
> > and use EXACTLY what is in CVS
> 
> Don't think its nice to require this.
> Your 'static' specifier works for me as well, and it
> seems to be the right thing.
> 
> Committed.
> 
> --strk;
>

Sorry was not meant as a fix, only to show that code reduction as part  
of optimization changed things.  (will be clearer if we ever walk this  
way again)

> >
> >
> > >dave
> > >_______________________________________________
> > >postgis-devel mailing list
> > >postgis-devel at postgis.refractions.net
> > >http://postgis.refractions.net/mailman/listinfo/postgis-devel
> > >
> >
> > _______________________________________________
> > postgis-devel mailing list
> > postgis-devel at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-devel
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
> 
> 





More information about the postgis-devel mailing list