id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 126,CAPI GEOSGeom_getDimensions() segfaults operating on 'GEOMETRYCOLLECTION EMPTY',hrz@…,strk@…,"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 }}}",defect,closed,critical,,C-API,main,Significant,,"imported,phpbugtracker",mloskot