[postgis-tickets] [PostGIS] #4157: ST_3DIntersects segfaults on some geometries

PostGIS trac at osgeo.org
Fri Aug 24 09:27:15 PDT 2018


#4157: ST_3DIntersects segfaults on some geometries
--------------------+---------------------------
 Reporter:  tilt    |      Owner:  colivier
     Type:  defect  |     Status:  new
 Priority:  medium  |  Milestone:  PostGIS 3.0.0
Component:  sfcgal  |    Version:  trunk
 Keywords:          |
--------------------+---------------------------
 Postgres crashes with a segfault when using certain combinations, though
 it seems a rare occasion. It only seems to happen when at least one of the
 two geometries is a polyhedralsurfacez, with multiple surfaces.

 Reproduced on:

 {{{
 "POSTGIS="2.5.0rc1dev r16693" [EXTENSION] PGSQL="100"
 GEOS="3.7.0beta2-CAPI-1.11.0 e7d54545" SFCGAL="1.3.5"
 }}}

 AND

 {{{
 POSTGIS="2.4.4 r16526" GEOS="3.7.0dev-CAPI-1.11.0 084542e5" SFCGAL="1.3.0"
 }}}

 Reproducable with:


 {{{
 WITH data as (
 SELECT
 ST_GeometryFromText(
 'POLYGON Z ((
 122395.299 489126.697 8.61546664325712,
 122389.298 489128.73 8.55588025324629,
 122391.489 489135.198 8.5526708028059,
 122397.49 489133.165 8.61225719281685,
 122395.299 489126.697 8.61546664325712))'
 ) as geoma,
 ST_GeometryFromText(
 'POLYHEDRALSURFACE Z (((
 122390.998245685 489133.068537491 0,
 122391.003145022 489133.066423547 0,
 122391.003145022 489133.066423547 10,
 122390.998245685 489133.068537491 10,
 122390.998245685 489133.068537491 0
 )),((
 122391.003145022 489133.066423547 0,
 122383.269575402 489114.842869866 0,
 122383.269575402 489114.842869866 10,
 122391.003145022 489133.066423547 10,
 122391.003145022 489133.066423547 0
 )))'
 ) as geomb
 )
 SELECT ST_3DIntersection(geoma, geomb)
 FROM data
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4157>
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