[postgis-tickets] [PostGIS] #3485: ST_ClusterKMeans garden crash - not empty geometry safe

PostGIS trac at osgeo.org
Tue Mar 1 15:56:52 PST 2016


#3485: ST_ClusterKMeans garden crash - not empty geometry safe
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  blocker  |  Milestone:  PostGIS 2.3.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 {{{
 SELECT ST_ClusterKMeans(foo1.the_geom, 3)OVER()  As result
                                                         FROM ((SELECT
 ST_GeomFromText('POINT EMPTY',4326) As the_geom
                         UNION ALL SELECT ST_GeomFromText('MULTIPOINT
 EMPTY',4326) As the_geom
                         UNION ALL SELECT ST_GeomFromText('MULTIPOLYGON
 EMPTY',4326) As the_geom
                         UNION ALL SELECT ST_GeomFromText('LINESTRING
 EMPTY',4326) As the_geom
                         UNION ALL SELECT ST_GeomFromText('MULTILINESTRING
 EMPTY',4326) As the_geom ) ) As foo1 LIMIT 3;
 }}}

 Do this and server hits the sac.

 Simplified also crashes
 {{{
 SELECT ST_ClusterKMeans(foo1.the_geom, 1)OVER()  As result
         FROM (SELECT ST_GeomFromText('POINT EMPTY',4326) As the_geom) As
 foo1;
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3485>
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-tickets mailing list