[postgis-devel] [PostGIS] #469: st_union() in some queries produces segfaults and/or ERROR: array size exceeds the maximum allowed (134217727)

PostGIS trac at osgeo.org
Mon Mar 22 16:26:24 PDT 2010


#469: st_union() in some queries produces segfaults and/or ERROR: array size
exceeds the maximum allowed (134217727)
---------------------+------------------------------------------------------
 Reporter:  mgleahy  |       Owner:  pramsey      
     Type:  patch    |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.5.2
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 As indicated in the subject, in some circumstances the st_union() function
 would result in either a segfault or a trapped error that would be
 reported as

 {{{
 ERROR: array size exceeds the maximum allowed (134217727)
 }}}

 Investigation that concluded on the users mailing list
 (http://postgis.refractions.net/pipermail/postgis-users/2010-
 March/026245.html) indicates that this is due to "some memory management
 changes which required changes to array_agg() and which had some risk of
 causing problems for other sites with similar coding"

 The patch attached appears to fix this.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/469>
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