[postgis-devel] [PostGIS] #210: segmentation faults in lwgeom_geos.c:pgis_union_geometry_array

PostGIS trac at osgeo.org
Fri Jun 26 04:12:37 PDT 2009


#210: segmentation faults in lwgeom_geos.c:pgis_union_geometry_array
------------------------+---------------------------------------------------
  Reporter:  dfuhriman  |       Owner:  robe         
      Type:  defect     |      Status:  assigned     
  Priority:  medium     |   Milestone:  postgis 1.3.7
 Component:  postgis    |     Version:  trunk        
Resolution:             |    Keywords:               
------------------------+---------------------------------------------------
Changes (by robe):

  * status:  new => assigned
  * owner:  pramsey => robe

Comment:

 Mark when you say reproduce, you mean just the orginal example or also the

 ST_MakeLine one.  For the ST_MakeLine I can make it consistently crash on
 my 8.3.7 EL 5 64-bit install.  That was actually how we noticed the issue
 originally -- when we switched from 32-bit EL 5 to 64-bit EL 5 was when
 the ST_MakeLine started crashing.

 But since I can produce that on 32-bit windows, I assume that is not
 strictly a 64-bit issue though 64-bit may be more sensitive.

 SELECT ST_Union(ARRAY[NULL,NULL,NULL,NULL]) ;

 That seems to behave consistently across of just giving the
 ERROR:  Unknown geometry type: 0

 To me this is a bug.  We should never be getting an unknown type error.
 That should just return NULL like the ST_MakeLine does when its not
 crashing the server.

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


More information about the postgis-devel mailing list