[postgis-tickets] [PostGIS] #2697: ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process, possibly corrupts shared memory
PostGIS
trac at osgeo.org
Tue Sep 9 03:46:09 PDT 2014
#2697: ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process,
possibly corrupts shared memory
----------------------+-----------------------------------------------------
Reporter: kochb | Owner: pramsey
Type: defect | Status: reopened
Priority: high | Milestone: PostGIS 2.1.3
Component: postgis | Version: 2.1.x
Resolution: | Keywords: history
----------------------+-----------------------------------------------------
Changes (by tusharahuja):
* cc: tusharahuja (added)
* status: closed => reopened
* resolution: fixed =>
Comment:
Hi,
This issue is reproducible on postGIS 2.0.6 against PG 9.2.9 (Linux32/64)
--PG Version
postgres=# select version();
version
-------------------------------------------------------------------------------------------------------
PostgreSQL 9.2.9 on i686-pc-linux-gnu, compiled by gcc (GCC) 4.5.1
20100924 (Red Hat 4.5.1-4), 32-bit
(1 row)
--postGIS version -
postgres=# select postgis_full_version();
postgis_full_version
-----------------------------------------------------------------------------------------------------------------
POSTGIS="2.0.6 r12554" GEOS="3.3.8-CAPI-1.7.8" PROJ="Rel. 4.8.0, 6 March
2012" LIBXML="2.7.7" LIBJSON="UNKNOWN"
(1 row)
--crash Query -
postgres=# SELECT '#2697',
ST_GeomFromGeoJSON('{"type":"Polygon","coordinates":[1]}');
The connection to the server was lost. Attempting reset: WARNING:
terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the
current transaction and exit, because another server process exited
abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and
repeat your command.
Failed.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2697#comment:9>
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