[postgis-devel] Issue 112 in postgis: ST_CurveToLine sometimes crashes server

codesite-noreply at google.com codesite-noreply at google.com
Tue Feb 3 07:03:06 PST 2009


Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Milestone-1.3.X

New issue 112 by robe.... at cityofboston.gov: ST_CurveToLine sometimes  
crashes server
http://code.google.com/p/postgis/issues/detail?id=112

What steps will reproduce the problem?
1.

SELECT 'ST_CurveToLine GCSet3D: Start Testing GEOMETRYCOLLECTION';
         BEGIN;
         SELECT ST_AsEWKT(ST_CurveToLine(foo1.the_geom))

                         FROM ((SELECT
ST_Collect(ST_Collect(ST_SetSRID(ST_MakePoint(i,j,m),4326),ST_SetSRID(ST_MakePolygon(ST_AddPoint(ST_AddPoint(ST_MakeLine(ST_MakePoint(i+m,j,m),ST_MakePoint(j+m,i-m,m)),ST_MakePoint(i,j,m)),ST_MakePointM(i+m,j,m))),4326)))
  As the_geom
                 FROM generate_series(-10,50,20) As i
                         CROSS JOIN generate_series(50,70, 20) As j
                         CROSS JOIN generate_series(1,2) As m
                         GROUP BY m)) As foo1;
         COMMIT;
         SELECT 'ST_CurveToLine GCSet3D: End Testing GEOMETRYCOLLECTION';
What is the expected output?
It should do nothing and just return what I input since input contains no
curves.

What do you see instead?
psql:torturetest.sql:157312: server closed the connection unexpectedly
         This probably means the server terminated abnormally
         before or while processing the request.
psql:torturetest.sql:157312: connection to server was lost


Haven't test on 1.3 but assume same issue exists



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the postgis-devel mailing list