[postgis-devel] [PostGIS] #179: ST_MakeLine and ST_MakeLine_Garry crash server with null arrays

PostGIS trac at osgeo.org
Wed Oct 7 04:50:38 PDT 2009


#179: ST_MakeLine and ST_MakeLine_Garry crash server with null arrays
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  pramsey      
      Type:  defect   |      Status:  reopened     
  Priority:  medium   |   Milestone:  postgis 1.3.7
 Component:  postgis  |     Version:  1.3.X        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by robe):

 Yap this particular one only exhibits itself if you have more than one
 NULL in the table.  Now that I have added a multi null table to garden of
 geometries.  It crashes with this.  Still broken in trunk.

 psql:torturetest150_subset.sql:46749: ERROR:  function 68F0C770 returned
 NULL
 psql:torturetest150_subset.sql:46760: NOTICE:  No points in input array
 psql:torturetest150_subset.sql:46760: ERROR:  function 68F0C770 returned
 NULL
 psql:torturetest150_subset.sql:46771: server closed the connection
 unexpectedly

 The final killer is.

 {{{
         SELECT ST_MakeLine(foo1.the_geom)

                         FROM ((SELECT CAST(Null As geometry) As the_geom
 FROM generate_series(1,4) As foo)) As foo1
                         LIMIT 3;
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/179#comment:22>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list