[postgis-tickets] [PostGIS] #2697: ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process, possibly corrupts shared memory
PostGIS
trac at osgeo.org
Thu Apr 3 11:25:44 PDT 2014
#2697: ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process,
possibly corrupts shared memory
---------------------+------------------------------------------------------
Reporter: kochb | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone:
Component: postgis | Version: 2.1.x
Keywords: |
---------------------+------------------------------------------------------
When trying to ST_GeomFromGeoJSON certain invalid geojson strings, the
server process crashes and forces other clients to disconnect.
Though this is certainly errant geojson, I would expect any error
generated by a query to not affect unrelated server connections.
'''To Reproduce'''
Open two psql connections. In the first, run the following query:
{{{
test=> SELECT
ST_GeomFromGeoJSON('{"type":"Polygon","coordinates":[1,1]}');
}}}
You should receive the following error:
{{{
SSL SYSCALL error: EOF detected
The connection to the server was lost. Attempting reset: Failed.
!>
}}}
In the second, run any query:
{{{
test=> \dt
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.
SSL SYSCALL error: EOF detected
The connection to the server was lost. Attempting reset: Failed.
!>
}}}
'''Version Info'''
Postgres version: PostgreSQL 9.3.3 on x86_64-unknown-linux-gnu, compiled
by gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3, 64-bit
PostGIS full version: POSTGIS="2.1.1 r12113" GEOS="3.4.2-CAPI-1.8.2 r3921"
PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24"
LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2697>
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