Opened 5 years ago

Closed 5 years ago

#4475 closed defect (fixed)

in_geojson regress failure on travis

Reported by: robe Owned by: komzpa
Priority: blocker Milestone: PostGIS 2.5.4
Component: postgis Version: 2.5.x -- EOL
Keywords: Cc:

Description

This is for both 2.4 and 2.5 —

in_geojson .. failed (diff expected obtained: /tmp/pgis_reg/test_119_diff)

-----------------------------------------------------------------------------

--- in_geojson_expected	2019-08-10 20:02:55.169398790 +0000

+++ /tmp/pgis_reg/test_119_out	2019-08-10 20:11:37.647269750 +0000

@@ -31,7 +31,7 @@

 geomfromgeojson_srs_4|GEOMETRYCOLLECTION(POINT(100 0),LINESTRING(101 0,102 1))

 #3583|MULTIPOLYGON Z (EMPTY)

 ERROR:  The 'coordinates' in GeoJSON polygon are not sufficiently nested

-#4470.a|POLYGON((0 0),())

+ERROR:  ptarray.c [1767] called outside of ptarray range (n=0, pa.npoints=0, pa.maxpoints=0)

 ERROR:  The 'coordinates' in GeoJSON polygon are not sufficiently nested

-#4470.c|MULTIPOLYGON(((0 0),()))

+ERROR:  ptarray.c [1767] called outside of ptarray range (n=0, pa.npoints=0, pa.maxpoints=0)

 #4470.d|MULTIPOLYGON Z (EMPTY)

-----------------------------------------------------------------------------

It is happening on:

CFLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage" CONFIGURE_FLAGS="--enable-debug"

and

I don't know what flags these are --  this one just says
-------------- Dependencies -------------- 

  GEOS config:          /usr/bin/geos-config

  GEOS version:         3.5.1

  GDAL config:          /usr/bin/gdal-config

  GDAL version:         2.2.2

  SFCGAL config:        /usr/bin/sfcgal-config

  SFCGAL version:       1.2.2

  PostgreSQL config:    /usr/lib/postgresql/9.6/bin/pg_config

  PostgreSQL version:   PostgreSQL 9.6.15

  PROJ4 version:        49

  Libxml2 config:       /usr/bin/xml2-config

  Libxml2 version:      2.9.3

  JSON-C support:       yes

  protobuf-c support:   yes

  protobuf-c version:   1.2.1

  PCRE support:         yes

  Perl:                 /usr/bin/perl


This seems to have been introduced at #4470

Change History (6)

comment:1 by robe, 5 years ago

Milestone: PostGIS 2.4.8PostGIS 2.5.4

comment:2 by robe, 5 years ago

Owner: changed from pramsey to komzpa

comment:3 by pramsey, 5 years ago

In 17720:

Avoid reading into empty pointarray
References #4475

comment:4 by pramsey, 5 years ago

In 17721:

Avoid reading into empty ptarray
References #4475

comment:5 by pramsey, 5 years ago

This has been fixed now back to 2.3

comment:6 by pramsey, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.