[postgis-devel] lwg wkt parser kills postgres (was: NULL geometries)

strk strk at keybit.net
Mon Jun 7 11:02:58 PDT 2004


I've reverted the change in lwg_parse_yyerror(), so we can all try
to figure out what the problem is. FYI my YACC is:
	bison (GNU Bison) 1.875a
Carl has the same problem, what yacc Carl?

--strk;

On Mon, Jun 07, 2004 at 07:47:04PM +0200, strk wrote:
> On Mon, Jun 07, 2004 at 10:36:08AM -0700, David Blasby wrote:
> > strk wrote:
> > >lwgparse.c:lwg_parse_yyerror() called an undefined error() function
> > >instead of the registered error_func().
> > >I dunno how did it work for you...  I've fixed this now, can you
> > >check if you have problems now ?
> > 
> > error() is defined as (about like 717):
> > 
> > void error(const char* err){
> >     error_func(err);
> >     ferror_occured=1;
> > }
> > 
> > 
> > I havent updated my version for a while - what is everyone doing to the 
> > code???
> > 
> > I just looked in the CVS - its at line 773.
> 
> You are right. It's there.
> Nonetheless calling it kills the backend, while directly
> calling error_func() does not (on my machine).
> I'll do some valgrinding...
> 
> --strk;
> 
> > 
> > 
> > >By 'postgis supports' I meant it parses that WKT.
> > >Internally it converts to GEOMETRYCOLLECTION(EMPTY) but accepts
> > >ANYTYPE (EMPTY).
> > 
> > okay - I understand.
> > 
> > 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



More information about the postgis-devel mailing list