[PostGIS] #5850: TopoGeo_AddLinestring crash when built with debug on

PostGIS trac at osgeo.org
Thu Feb 13 09:01:44 PST 2025


#5850: TopoGeo_AddLinestring crash when built with debug on
----------------------+---------------------------
 Reporter:  strk      |      Owner:  strk
     Type:  defect    |     Status:  new
 Priority:  medium    |  Milestone:  PostGIS 3.5.3
Component:  topology  |    Version:  master
 Keywords:            |
----------------------+---------------------------
 {{{
 (gdb) bt
 #0  0x00007f81de4fd63a in coordinate_to_wkt_sb (precision=15,
 dimensions=<optimized out>, sb=0x560f1a987090, coords=0xc01a000000000000)
 at .././../liblwgeom/lwout_wkt.c:83
 #1  ptarray_to_wkt_sb (ptarray=0x560f1a987358, sb=sb at entry=0x560f1a987090,
 precision=precision at entry=15, variant=variant at entry=44 ',') at
 .././../liblwgeom/lwout_wkt.c:117
 #2  0x00007f81de4fdd7c in lwline_to_wkt_sb (line=<optimized out>,
 sb=sb at entry=0x560f1a987090, precision=precision at entry=15,
 variant=variant at entry=44 ',') at .././../liblwgeom/lwout_wkt.c:175
 #3  0x00007f81de4feb4d in lwmline_to_wkt_sb (variant=<optimized out>,
 precision=15, sb=0x560f1a987090, mline=0x560f1a9874e8) at
 .././../liblwgeom/lwout_wkt.c:282
 #4  lwgeom_to_wkt_sb (geom=0x560f1a9874e8, sb=0x560f1a987090,
 precision=15, variant=<optimized out>) at
 .././../liblwgeom/lwout_wkt.c:637
 #5  0x00007f81de4ff84d in lwgeom_to_wkt_internal
 (geom=geom at entry=0x560f1a9874e8, variant=variant at entry=4 '\004',
 precision=precision at entry=15) at .././../liblwgeom/lwout_wkt.c:687
 #6  0x00007f81de4ff8c0 in lwgeom_to_wkt (geom=geom at entry=0x560f1a9874e8,
 variant=variant at entry=4 '\004', precision=precision at entry=15,
 size_out=size_out at entry=0x7fffee898ee0)
     at .././../liblwgeom/lwout_wkt.c:710
 #7  0x00007f81de52c563 in _lwt_AddLine (topo=topo at entry=0x560f1aa0b960,
 line=line at entry=0x560f1a430dc0, tol=2.8800000000000014e-14, tol at entry=0,
 nedges=nedges at entry=0x7fffee898fcc,
     handleFaceSplit=handleFaceSplit at entry=1) at
 .././../liblwgeom/topo/lwgeom_topo.c:7350
 #8  0x00007f81de52c69a in lwt_AddLine (topo=topo at entry=0x560f1aa0b960,
 line=line at entry=0x560f1a430dc0, tol=tol at entry=0,
 nedges=nedges at entry=0x7fffee898fcc)
     at .././../liblwgeom/topo/lwgeom_topo.c:7474
 #9  0x00007f81de4e485b in TopoGeo_AddLinestring (fcinfo=0x560f1a5c4038) at
 .././../topology/postgis_topology.c:5142
 #10 0x0000560ee7889aaf in ExecMakeTableFunctionResult ()
 }}}

 This is with running a regression test downstream here:
 https://gitlab.com/nibioopensource/pgtopo_update_sql/-/blob/develop/test/regress/add_border_split_surface.sql
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5850>
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