[postgis-devel] [PostGIS] #1697: Crash in GiST index with empty MultiPolygons

PostGIS trac at osgeo.org
Fri Mar 23 14:24:57 PDT 2012


#1697: Crash in GiST index with empty MultiPolygons
---------------------------+------------------------------------------------
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  defect         |      Status:  new          
 Priority:  critical       |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by pramsey):

 Aha, I can now make the geometry ND index crash too, by putting an SRID on
 the geometry.
 {{{
 create table test (g geometry);
 create index gt on test using gist (g gist_geometry_ops_nd);
 insert into test (g) select st_setsrid('POLYGON EMPTY'::geometry,4326)
 from generate_series(1,300);
 }}}
 I still don't know why the crash happens, but the geography-vs-geometry
 part is gone, this is a problem with the ND index and empty gserialized
 that have srids on them.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1697#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list