[PostGIS] #5951: server process was terminated by signal 11: Segmentation fault, postgis topology

PostGIS trac at osgeo.org
Fri Jul 25 00:28:59 PDT 2025


#5951: server process was terminated by signal 11: Segmentation fault, postgis
topology
--------------------------------+---------------------------
  Reporter:  Lars Aksel Opsahl  |      Owner:  strk
      Type:  defect             |     Status:  assigned
  Priority:  blocker            |  Milestone:  PostGIS 3.6.0
 Component:  topology           |    Version:  master
Resolution:                     |   Keywords:
--------------------------------+---------------------------
Comment (by strk):

 I've found the problem (SRF state not initialized and not checked on
 second iteration) but it's tricky to write a regress test for it as the
 crash ONLY occurs when the query affects multiple rows.

 For example, this crashes the backend:
 > select ST_GetFaceEdges('grunnkart_03_topo_error_1', face_id) from
 grunnkart_03_topo_error_1.face where face_id > 260 and face_id < 280;

 While neither of these do:
 > select ST_GetFaceEdges('grunnkart_03_topo_error_1', face_id) from
 grunnkart_03_topo_error_1.face where face_id > 260 and face_id < 270;
 > select ST_GetFaceEdges('grunnkart_03_topo_error_1', face_id) from
 grunnkart_03_topo_error_1.face where face_id >= 270 and face_id < 280
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5951#comment:11>
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