[postgis-devel] [PostGIS] #690: Trying to make a line with a point and a linestring crashes the server

PostGIS trac at osgeo.org
Thu Dec 9 02:44:40 PST 2010


#690: Trying to make a line with a point and a linestring crashes the server
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 I know people shouldn't be doing this but it didn't crash the server in
 1.5


 {{{
 SELECT ST_MakeLine(ST_GeomFromText('POINT(-11.1111111 40)'),
 ST_GeomFromText('LINESTRING(-11.1111111 70,70 -11.1111111)')) As result
 }}}

 In 1.5 you get a nice harmless warning:

 {{{
 ERROR:  lwpoint_deserialize: attempt to deserialize a point which is
 really a LineString
 }}}

 In 2.0 your server crashes not so nicely.
 This is testing with the latest trunk.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/690>
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-devel mailing list