[postgis-tickets] [PostGIS] #3651: ST_Orientation crashes the backend

PostGIS trac at osgeo.org
Fri Sep 30 09:29:57 PDT 2016


#3651: ST_Orientation crashes the backend
-------------------------+---------------------------
 Reporter:  postgispaul  |      Owner:  colivier
     Type:  defect       |     Status:  new
 Priority:  high         |  Milestone:  PostGIS 2.3.1
Component:  sfcgal       |    Version:  2.3.x
 Keywords:               |
-------------------------+---------------------------
 Don't know if it's the number of points (100000+), or that there is
 something unusual in the geometry itself (it is valid though), but I have
 a polygon which when calculating the ST_Orientation of it, crashes the
 backend.

 Tested on two systems:
 "POSTGIS="2.1.7 r13414" GEOS="3.5.0-CAPI-1.9.0 r4090" SFCGAL="1.2.0"
 PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.11.1, released 2014/09/24
 GDAL_DATA not found" LIBXML="2.7.8" LIBJSON="UNKNOWN" TOPOLOGY RASTER"
 "PostgreSQL 9.4.1, compiled by Visual C++ build 1800, 64-bit"

 and

 "POSTGIS="2.3.0 r15146" GEOS="3.5.0-CAPI-1.9.0 r4090" SFCGAL="1.3.0"
 PROJ="Rel. 4.9.1, 04 March 2015" GDAL="GDAL 2.1.1, released 2016/07/07
 GDAL_DATA not found" LIBXML="2.7.8" LIBJSON="0.12" RASTER"
 "PostgreSQL 9.6.0, compiled by Visual C++ build 1800, 64-bit"

 On both systems the postgres service crashes with a stack overflow.
 LOG:  server process (PID 2440) was terminated by exception 0xC00000FD

 My guess would be that some intermediate result is put on the stack
 instead of the heap (or passed by value instead of by reference).

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