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

PostGIS trac at osgeo.org
Tue Mar 27 08:07:58 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):

 Regarding memory and so on, bbox_out isn't returned, a gist entry is
 returned, and in cases where a box is embedded in the gist entry as a key,
 the box is copied before returning. I carefully set this up to avoid
 global allocations, don't worry about that stuff. The problem is not
 there, it's in how we handle empties in the compress routines.

 Regarding fixing, now that I know where the problem is, fixing becomes
 quite possible, but will take some time to try different things and test.
 As noted before, this problem has existed in 1.5 for a long time in the
 geography type, so I don't think we should necessarily block on it unless
 we really really want to.

 What surprises me is when I try to return an empty gist entry, aping the
 null handling, I get a crash, so I must be doing something wrong in my
 aping.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1697#comment:14>
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