[PostGIS] #5728: 32bit builds crashing on topology topogeo_addpoint_merge_edges

PostGIS trac at osgeo.org
Thu May 16 08:53:40 PDT 2024


#5728: 32bit builds crashing on topology topogeo_addpoint_merge_edges
-----------------------+---------------------------
  Reporter:  robe      |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  blocker   |  Milestone:  PostGIS 3.5.0
 Component:  topology  |    Version:  master
Resolution:            |   Keywords:
-----------------------+---------------------------
Comment (by strk):

 I'm running on bessie32. This seems to be the culprit:
 {{{
 SELECT * FROM runTest('snap-CW-newface-sp',
   ARRAY[
     'LINESTRING(0 1, 100 1)',
     'LINESTRING(0 -10,50 0,100 -10)',
     'LINESTRING(0 1, 0 -10)'
   ], 'POINT(50 0)', 2
 );
 }}}

 Debug output:
 {{{
 DEBUG:  [topo/lwgeom_topo.c:_lwt_FirstDistinctVertex2D:1450] first point
 is index 1
 DEBUG:  [topo/lwgeom_topo.c:_lwt_FirstDistinctVertex2D:1454] testing point
 0
 DEBUG:  [topo/lwgeom_topo.c:_lwt_FindAdjacentEdges:1665] edge 3 ends on
 node 6, edgeend is [50 0,0 -10]
 DEBUG:  [topo/lwgeom_topo.c:_lwt_FindAdjacentEdges:1677] azimuth of edge
 3: 4.51499342053481 (diff: 2.96419442771306)
 DEBUG:  [topo/lwgeom_topo.c:_lwt_FindAdjacentEdges:1706] new nextCCW edge
 is 3, outgoing, from start point, with face_left 1 and face_right 1
 (previous had maxaz=0.217393, face_left is new ccwFace)
 DEBUG:  [topo/lwgeom_topo.c:_lwt_FindAdjacentEdges:1721] edges adjacent to
 azimuth 1.5508 (incident to node 6): CW:5(0.217393) CCW:-3(2.96419)
 DEBUG:  [topo/lwgeom_topo.c:_lwt_SnapEdgeToExistingNode:5231] Component 1
 of split edge 0 next CW is 2, next CCW is 0
 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.
 !?>
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5728#comment:3>
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