[postgis-devel] SimpleGeometryPrecisionReducer

Carl Anderson carl.anderson at co.fulton.ga.us
Tue Dec 21 12:50:46 PST 2004


While building a precision reducer function for PostGIS
I connected to SimpleGeometryPrecisionReducer in geos

I got Signal 11's from time to time.

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.




More information about the postgis-devel mailing list