[postgis-tickets] [PostGIS] #5145: segfault with select ST_Node(ST_GeomFromText('LINESTRING EMPTY'))

PostGIS trac at osgeo.org
Sun May 15 07:23:28 PDT 2022


#5145: segfault with select ST_Node(ST_GeomFromText('LINESTRING EMPTY'))
-------------------------+--------------------------
  Reporter:  cactusbone  |      Owner:  pramsey
      Type:  defect      |     Status:  closed
  Priority:  medium      |  Milestone:  PostGIS GEOS
 Component:  postgis     |    Version:  3.2.x
Resolution:  fixed       |   Keywords:
-------------------------+--------------------------
Comment (by robe):

 Okay I discovered how this got past the garden tests.

 The garden test does this:


 {{{
 SELECT ST_Node(foo1.the_geom)  As result
  FROM ((SELECT ST_GeomFromText('POINT EMPTY',4326) As the_geom
                         UNION ALL SELECT ST_GeomFromText('LINESTRING
 EMPTY',4326) As the_geom
                         UNION ALL SELECT ST_GeomFromText('MULTILINESTRING
 EMPTY',4326) As the_geom ) ) As foo1 LIMIT 10;
 }}}


 Which errors out before it gets to the noding part, with this error:

 {{{
 ERROR:  Noding geometries of dimension != 1 is unsupported
 }}}

 So I guess I need to add some tests that have these as standalone as well.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5145#comment:4>
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