Opened 17 years ago
Last modified 15 years ago
#126 closed defect
CAPI GEOSGeom_getDimensions() segfaults operating on 'GEOMETRYCOLLECTION EMPTY' — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | C-API | Version: | main |
Severity: | Significant | Keywords: | imported, phpbugtracker |
Cc: | mloskot |
Description
The following code causes a segmentation fault: GEOSGeometry* geom = GEOSGeomFromWKT("GEOMETRYCOLLECTION EMPTY"); int ndims = GEOSGeom_getDimensions(geom); A backtrace for it looks like: #0 0xb7d0940a in geos::geom::GeometryCollection::getGeometryN (this=0x804a900, n=0) at GeometryCollection.cpp:132 No locals. #1 0xb7eedcdf in GEOSGeom_getDimensions (g=0x804a900) at geos_c.cpp:1796 My system is: $ uname -a Linux 2.6.17-gentoo-r7 #2 PREEMPT Thu Sep 7 12:29:51 BST 2006 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux and GEOS CAPI 3.0.0rc2-CAPI-1.3.0 with: $ gcc-config -c i686-pc-linux-gnu-4.1.1
Note:
See TracTickets
for help on using tickets.