[postgis-tickets] [PostGIS] #5050: TopoGeo_AddPolygon() make postgres instance crash

PostGIS trac at osgeo.org
Thu Jan 13 23:59:47 PST 2022


#5050: TopoGeo_AddPolygon() make postgres instance crash
----------------------+---------------------------
 Reporter:  wimned    |      Owner:  strk
     Type:  defect    |     Status:  new
 Priority:  medium    |  Milestone:  PostGIS 3.1.5
Component:  topology  |    Version:  3.1.x
 Keywords:            |
----------------------+---------------------------
 Adding a polygon results the postgres cluster to be crashed.
 Raising an exception would be expected, not a crash.

 Error message:
 {{{
 NOTICE:  Corrupted topology: face 2 could not be constructed only from
 edges knowing about it (like edge 24).
 server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
 connection to server was lost
 }}}

 I attached a short script building op a topology with edges. Two of the
 edges 'lay very close' to each other. Adding a polygon, with ring also
 partly overlapping these edges, results in the crash

 I attached the polygon and edge data in geojson files.

 Version info:
 {{{
 ---------------------------------------------------------------------------------------------------------------------------------
  PostgreSQL 12.9 (Ubuntu 12.9-2.pgdg20.04+1) on x86_64-pc-linux-gnu,
 compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
 (1 row)

             postgis_version
 ---------------------------------------
  3.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
 (1 row)
 }}}

 Could be problems are already solved in newer versions, this input could
 be added to the regression tests.

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