[postgis-tickets] [PostGIS] #4731: Garden crash ST_WrapX

PostGIS trac at osgeo.org
Wed Jul 29 16:03:04 PDT 2020


#4731: Garden crash ST_WrapX
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  blocker  |  Milestone:  PostGIS 3.1.0
Component:  postgis  |    Version:  master
 Keywords:           |
---------------------+---------------------------
 I'm guessing this has nothing to do with my GEOS 3.9 overlay switch turn
 on, but I ran my garden test after and it's crashing


 {{{
 SELECT ST_WrapX(foo1.the_geom, 20.1, 20.1) As result FROM ((SELECT
 ST_MakeLine(ST_SetSRID(ST_Point(i,j),4326),ST_SetSRID(ST_Point(j,i),4326))
 As the_geom FROM (SELECT a*1.11111111 FROM generate_series(-10,50,10) As
 a) As i(i) CROSS JOIN generate_series(40,70, 15) As j WHERE NOT(i = j)
 ORDER BY i, i*j)) As foo1 LIMIT 10;
 }}}

 The reduced form


 {{{
 SELECT ST_WrapX('LINESTRING(-11.1111111 70,70 -11.1111111)'::geometry,
 20.1,20.1);
 }}}

 Also crashes for me:

 I'm running
 {{{
 PostgreSQL 13beta2 on x86_64-w64-mingw32, compiled by gcc.exe (x86_64
 -posix-seh-rev0, Built by MinGW-W64 project) 8.1.0, 64-bit
 POSTGIS="3.1.0dev 3.1.0alpha2-5-gdcfb1258c" [EXTENSION] PGSQL="130"
 GEOS="3.9.0-CAPI-1.14.0" SFCGAL="1.3.8" PROJ="6.2.1" GDAL="GDAL 3.0.2,
 released 2019/10/28" LIBXML="2.9.9" LIBJSON="0.12" LIBPROTOBUF="1.2.1"
 WAGYU="0.5.0 (Internal)" RASTER
 }}}

 Works fine in my PostGIS 3.0.1 so must be recent change

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