[geos-devel] CVS PrecisionModel segfault on Windows MSVC 7.1

strk at refractions.net strk at refractions.net
Thu Jan 26 12:39:49 EST 2006

On Mon, Jan 23, 2006 at 03:54:17PM -0600, Howard Butler wrote:
> All,
> I'm having trouble with a MSVC 7.1- compiled version of GEOS where 
> I'm attempting to buffer a geometry that was defined with this wkt:
> LINESTRING (2.000000000000 1.000000000000, 1.000000000000 3.000000000000)
> I am using 30.0 as my buffer distance (using 3.0 also causes a 
> segfault in the same spot).
> Here is the stack trace of my segfault:


> and when I inspect modelType with the debugger.  It isn't 
> anything.  Grepping through the source code, I noticed that a lot of 
> the modelType==FOO throughout PrecisionModel.cpp have been commented 
> out.  The CVS log doesn't show that anything has changed much in 
> quite a while though.  Anyone have any idea what might be going on so 
> that modelType isn't initialized?

Can it be you deleted it ?
PrecisionModels are inside GeometryFactories, which must
keep alive for the whole lifetime of geometries created with it.


 | Fight against software patents in EU!  |
 | www.ffii.org www.nosoftwarepatents.org |

More information about the geos-devel mailing list