[postgis-tickets] [PostGIS] #2631: Crash on Windows x64 reading geometry from invalid string

PostGIS trac at osgeo.org
Sun Feb 2 13:36:53 PST 2014


#2631: Crash on Windows x64 reading geometry from invalid string
---------------------------+------------------------------------------------
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  defect         |      Status:  new          
 Priority:  high           |   Milestone:  PostGIS 2.1.2
Component:  postgis        |     Version:  2.1.x        
 Keywords:                 |  
---------------------------+------------------------------------------------
 Run this a few times:

 {{{
 SELECT * FROM (
         WITH test AS
         (
            SELECT ST_MakeLine('0 0'::geometry, '0 0'::geometry) AS
 test_line
         )
         SELECT test_line
 FROM test) sub
 }}}

 The first couple of times it returns an error, as expected ("Invalid hex
 string, length (3) has to be a multiple of two!"). The third time Postgres
 crashes with exception 0xC0000409!

 PostgreSQL 9.2.6, compiled by Visual C++ build 1600, 64-bit
 POSTGIS="2.1.1 r12113" GEOS="3.4.2-CAPI-1.8.2 r0" PROJ="Rel. 4.8.0, 6
 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.7.8"
 LIBJSON="UNKNOWN" RASTER

 Running on Windows 7 x64 SP1. I couldn't repro this on 32-bit Linux.

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