[postgis-tickets] [PostGIS] #4031: ST_CurveToLine with small tolerance sometimes causes invalid memory alloc request size

PostGIS trac at osgeo.org
Wed Feb 28 04:30:08 PST 2018


#4031: ST_CurveToLine with small tolerance sometimes causes invalid memory alloc
request size
----------------------------+---------------------------
 Reporter:  kkgeodk         |      Owner:  strk
     Type:  defect          |     Status:  assigned
 Priority:  medium          |  Milestone:  PostGIS 2.4.4
Component:  postgis         |    Version:  2.2.x
 Keywords:  ST_CurveToLine  |
----------------------------+---------------------------
 ST_CurveToLine([geometry], 0.01, 1, 1) causes ERROR: invalid memory alloc
 request size 1073741824\\
 \\
 Same ERROR with:\\
   ST_CurveToLine([geometry], 0.05, 1, 1)\\
   ST_CurveToLine([geometry], 0.1, 1, 1)\\
   ST_CurveToLine([geometry], 1, 1, 1)\\
 \\
 With ST_CurveToLine([geometry], 32, 0, 1), this ERROR cannot be
 reproduced.\\
 \\
 Shared memory segment in bytes has been increased. This did not solve our
 issue:\\

   # Maximum size of a single shared memory segment in bytes\\
   #kernel.shmmax = 33554432\\
   kernel.shmmax = 3055017984\\
 \\
 Find test data attached. object t_id= 1727145 seems to be the issue.

 System:\\
   Ubuntu 14.04.5 LTS\\
   PostgreSQL 9.3\\
   PostGIS 2.2 with ST_CurveToLine backport from
 https://github.com/strk/postgis/tree/svn-2.2-curve-to-line-extended\\

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