Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#469 closed patch (fixed)

st_union() in some queries produces segfaults and/or ERROR: array size exceeds the maximum allowed (134217727)

Reported by: mgleahy Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.2
Component: postgis Version: 1.5.X
Keywords: Cc:

Description

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.

Attachments (4)

finalfunc.patch (869 bytes) - added by mgleahy 6 years ago.
Patch that fixes this bug.
footer_bg.jpg (118.8 KB) - added by Slavon 2 years ago.
http://postnasaldripbadbreathby.blogspot.com/
footer-bg.gif (192 bytes) - added by Slavon 2 years ago.
www.eventbrite.com
body-content-bg.gif (184 bytes) - added by Slavon 2 years ago.
http://tonsilpnd.tumblr.com/

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by mgleahy

Patch that fixes this bug.

comment:1 Changed 6 years ago by mgleahy

P.S. - forgot to cc. the users list on my last reply. Thanks to everyone that helped solve this.

comment:2 Changed 6 years ago by pramsey

  • Resolution set to fixed
  • Status changed from new to closed

Patched in 1.5 at r5453 and in trunk at r5454

comment:3 Changed 6 years ago by pramsey

And in 1.4 at r5455.

Changed 2 years ago by Slavon

Note: See TracTickets for help on using tickets.