Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#5850 closed defect (fixed)

TopoGeo_AddLinestring crash when built with debug on

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.5.3
Component: topology Version: master
Keywords: Cc:

Description

(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@entry=0x560f1a987090, precision=precision@entry=15, variant=variant@entry=44 ',') at .././../liblwgeom/lwout_wkt.c:117
#2  0x00007f81de4fdd7c in lwline_to_wkt_sb (line=<optimized out>, sb=sb@entry=0x560f1a987090, precision=precision@entry=15, variant=variant@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@entry=0x560f1a9874e8, variant=variant@entry=4 '\004', precision=precision@entry=15) at .././../liblwgeom/lwout_wkt.c:687
#6  0x00007f81de4ff8c0 in lwgeom_to_wkt (geom=geom@entry=0x560f1a9874e8, variant=variant@entry=4 '\004', precision=precision@entry=15, size_out=size_out@entry=0x7fffee898ee0)
    at .././../liblwgeom/lwout_wkt.c:710
#7  0x00007f81de52c563 in _lwt_AddLine (topo=topo@entry=0x560f1aa0b960, line=line@entry=0x560f1a430dc0, tol=2.8800000000000014e-14, tol@entry=0, nedges=nedges@entry=0x7fffee898fcc, 
    handleFaceSplit=handleFaceSplit@entry=1) at .././../liblwgeom/topo/lwgeom_topo.c:7350
#8  0x00007f81de52c69a in lwt_AddLine (topo=topo@entry=0x560f1aa0b960, line=line@entry=0x560f1a430dc0, tol=tol@entry=0, nedges=nedges@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

Change History (4)

comment:1 by Sandro Santilli <strk@…>, 5 weeks ago

Resolution: fixed
Status: newclosed

In 88cc93b4/git:

Fix topology crash in debug build

Closes #5850 in master branch

comment:2 by Sandro Santilli <strk@…>, 5 weeks ago

In 9b99cdc/git:

Fix topology crash in debug build

Closes #5850 in 3.5 branch (3.5.3dev)

comment:3 by Sandro Santilli <strk@…>, 5 weeks ago

In 6a66eda/git:

Fix topology crash in debug build

Closes #5850 in 3.4 branch ( 3.4.5dev )

comment:4 by Sandro Santilli <strk@…>, 5 weeks ago

In e259f9ec/git:

Fix topology crash in debug build

Closes #5850 in 3.3 branch ( 3.3.9dev )

Note: See TracTickets for help on using tickets.