Opened 17 years ago
Last modified 15 years ago
#126 closed defect
CAPI GEOSGeom_getDimensions() segfaults operating on 'GEOMETRYCOLLECTION EMPTY'
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | C-API | Version: | main |
Severity: | Significant | Keywords: | imported, phpbugtracker |
Cc: | mloskot |
Description (last modified by )
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 }}} }}}
Change History (5)
comment:3 by , 16 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
Milestone: | imported → 3.0.0 |
Priority: | 3 → critical |
Severity: | Annoyance → Significant |
Version: | 3.0.0 → svn-trunk |
Note:
See TracTickets
for help on using tickets.