[PostGIS] #5946: FindTopology(toTopoGeom) crashing on berrie64 garden tests Infinite Point

PostGIS trac at osgeo.org
Fri Jul 18 00:31:00 PDT 2025


#5946: FindTopology(toTopoGeom) crashing on berrie64 garden tests Infinite Point
-----------------------+---------------------------
  Reporter:  robe      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  blocker   |  Milestone:  PostGIS 3.6.0
 Component:  topology  |    Version:  3.5.x
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by strk):

 It looks like I could reproduce locally, from the master branch, by
 running `make garden`:
 {{{
 -------------------------------------------------
 PostGIS Topology garden tests in progress (it will take time)
 -------------------------------------------------
 psql -X -ad postgis_garden < \
         ../doc/topology_gardentest_36.sql \
         > topology_garden_result.txt 2>&1 || { \
         tail -n 20 topology_garden_result.txt; false; }
                 SELECT 'GeometryFindTopology Infinite Point: Start
 Testing';
                       ?column?
 ----------------------------------------------------
  GeometryFindTopology Infinite Point: Start Testing
 (1 row)

         INSERT INTO topology_garden_log36(log_label, func, g1, log_start,
 log_sql)
                                 VALUES('FindTopology(topogeom)Geometry
 Infinite Point ','FindTopology', 'Infinite Point', clock_timestamp(),
                                 'SELECT
 FindTopology(topology.toTopoGeom(foo1.the_geom, ''topo_test'', 1, 0.001))
 As result
                                                         FROM ((SELECT
 ''0101000020E6100000000000000000F07F000000000000F07F''::geometry AS
 the_geom ) ) As foo1 LIMIT 10;');
 INSERT 0 1
 BEGIN;
 BEGIN
     INSERT INTO topology_garden_log36_output(logid, log_output)
                                 SELECT logid, query_to_xml(log_sql,
 false,false,'') As log_output
                                     FROM topology_garden_log36 ORDER BY
 logid DESC LIMIT 1;UPDATE topology_garden_log36 SET log_end =
 clock_timestamp()
 server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
 connection to server was lost
 make[1]: *** [Makefile:123: garden] Error 1
 }}}

 And then reducing:
 {{{
 strk at postgis_garden=*# SELECT
 FindTopology(topology.toTopoGeom(foo1.the_geom, 'topo_test', 1, 0.001))
 As result
 FROM ((SELECT
 '0101000020E6100000000000000000F07F000000000000F07F'::geometry AS the_geom
 ) ) As foo1 LIMIT 10;
 server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
 The connection to the server was lost. Attempting reset: Failed.
 }}}

 Will verify myself the fix is effective
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5946#comment:2>
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