[postgis-devel] SimpleGeometryPrecisionReducer

strk at refractions.net strk at refractions.net
Wed Dec 22 00:28:50 PST 2004


On Tue, Dec 21, 2004 at 03:50:46PM -0500, Carl Anderson wrote:
> 
> While building a precision reducer function for PostGIS
> I connected to SimpleGeometryPrecisionReducer in geos
> 
> I got Signal 11's from time to time.

Try commenting out line 162 of geom/util/GeometryEditor.cpp
--strk;


> 
> valgrind reports
> 
> ==11070== malloc/free: in use at exit: 61100 bytes in 106 blocks.
> ==11070== malloc/free: 279 allocs, 173 frees, 178407 bytes allocated.
> ==11070== For a detailed leak analysis,  rerun with: --leak-check=yes
> ==11070== For counts of detected errors, rerun with: -v
> ==11072== Invalid read of size 4
> ==11072==    at 0x34F13D24: 
> geos::GeometryEditor::editGeometryCollection(geos::GeometryCollection 
> const*, geos::GeometryEditorOperation*) (typeinfo:104)
> ==11072==    by 0x34F139F6: geos::GeometryEditor::edit(geos::Geometry 
> const*, geos::GeometryEditorOperation*) (GeometryEditor.cpp:103)
> ==11072==    by 0x34F21078: 
> geos::SimpleGeometryPrecisionReducer::reduce(geos::Geometry const*) 
> (SimpleGeometryPrecisionReducer.cpp:99)
> ==11072==    by 0x34E8AA3B: GEOSSimplePrecisionReducer 
> (lwgeom_geos_wrapper.cpp:1676)
> ==11072==  Address 0x34270E18 is 0 bytes inside a block of size 24 free'd
> ==11072==    at 0x3414A96F: operator delete(void*) 
> (vg_replace_malloc.c:156)
> ==11072==    by 0x34F08AE9: 
> geos::GeometryCollection::~GeometryCollection() 
> (GeometryCollection.cpp:266)
> ==11072==    by 0x34F13D23: 
> geos::GeometryEditor::editGeometryCollection(geos::GeometryCollection 
> const*, geos::GeometryEditorOperation*) (GeometryEditor.cpp:162)
> ==11072==    by 0x34F139F6: geos::GeometryEditor::edit(geos::Geometry 
> const*, geos::GeometryEditorOperation*) (GeometryEditor.cpp:103)ction() 
> (GeometryCollection.cpp:266)
> ==11072==    by 0x34F13D23: 
> geos::GeometryEditor::editGeometryCollection(geos::GeometryCollection 
> const*, geos::GeometryEditorOperation*) (GeometryEditor.cpp:162)
> ==11072==    by 0x34F139F6: geos::GeometryEditor::edit(geos::Geometry 
> const*, geos::GeometryEditorOperation*) (GeometryEditor.cpp:103)
> 
> 
> C.
> 
> -- 
> Carl Anderson
> GIS Manager Fulton County, Georgia
> carl.anderson at co.fulton.ga.us
> 404.730.8026
> 
> 
> -----------------------------------------------------
> This message has been scanned for viruses and
> dangerous content for Fulton County by DefendMail, and is
> believed to be clean.
> 
> _______________________________________________
> 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