#668: Union crashes when there are EMPTY items inside MULTI- or
GEOMETRYCOLLECTION objects
-------------------+---------------------------
Reporter:  otan    |      Owner:  osgeo4w-dev@…
    Type:  defect  |     Status:  new
Priority:  minor   |  Component:  Package
 Version:          |   Keywords:
-------------------+---------------------------
 Found this using CockroachDB's randomised syntax generator. This crashes
 on postgres too, I can write a more GEOS specific repro if desired.


 {{{
 psql (13.2)
 Type "help" for help.
 otan=# select PostGIS_GEOS_Version();
  postgis_geos_version
 ----------------------
  3.9.1-CAPI-1.14.2
 (1 row)

 otan=# select st_union('POLYGON Z ((-8576813007.651572 -932867148.5664893
 -594332188.2168996, -9076378702.816006 -1058770692.353365
 -2286612467.79976, -8577214214.487094 -923078893.7098079
 -922845555.2543786, -8763948942.517227 3632693707.16387
 -1890400776.3303413, -7612818442.454826 3813396489.705141
 -376275881.4206352, -4258868082.9764023 2821219037.959036
 -7927470779.677084, -2376927148.576969 762393778.6277254
 -5185416958.8125515, 8374297972.826973 3684983643.201231
 -3159751777.281743, -2311638561.4350195 690968693.0169502
 -2246826599.5283184, 3511882417.12018 -5679907177.601899
 -7190612231.893617, -8305726872.755655 -7546563480.596777
 3891638858.362171, -8576813007.651572 -932867148.5664893
 -594332188.2168996))', ' GEOMETRYCOLLECTION ZM (MULTIPOINT ZM
 (-572200857.2088509 7909820002.898613 -5497698646.885041
 6664440051.466028, -429525248.49892807 9279013845.258144
 1865812608.4202595 -5627983850.52976, -8961875736.194313
 -3646093887.306757 6114061050.084791 7928242422.52462, -1658395500.6136656
 5463281975.551853 1226372454.8883152 -6033337335.334749, EMPTY),
 LINESTRING ZM (5640013450.60927 -4034194887.4798727 7233778169.767132
 -8214889161.72134, 9862309549.538734 5014594919.08839 -925144949.3365879
 -5659691769.45695), MULTIPOLYGON ZM EMPTY, MULTIPOINT ZM (EMPTY,
 4481472784.121752 -8278911850.336457 6955040725.022459 4792703658.978086,
 EMPTY))');
 server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
 The connection to the server was lost. Attempting reset: Failed.
 !?>
 }}}

 Cross reference https://github.com/cockroachdb/cockroach/issues/62184

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/668>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
_______________________________________________
osgeo4w-dev mailing list
osgeo4w-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

Reply via email to