[postgis-devel] Garden test is failing on 1.4

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Fri Dec 12 05:56:23 PST 2008


Obe, Regina wrote:

> Ah okay.  More scary - I was able to crash my 1.3.5SVN test with this
> garden test.  But my 1.3.5SVN has a mishmush of stuff so hopefully its
> just isolated to me.  
> 
> Well its good we are going thru this exercise.  I've just revised the
> garden script so when you output the results its easier to see where it
> failed. Also cleaned up the xsl garden sql generator to use an array of
> geometry sets so much less repetitive and easier to expand on.

Yeah, some sort of "torture test" that we can use just before release 
would be a good thing to have.

> I was testing the script with
> psql -U postgres -d testpostgis -f gardentest.sql -o gardenoutput.txt
> 
> and it failed as it was getting to here
> 
> SELECT 'ST_LineMerge LineSet: Start Testing Multi/LINESTRING'; 
> BEGIN; 
> 		
> SELECT ST_AsEWKT(ST_LineMerge(the_geom)),
> 	ST_AsEWKT(ST_LineMerge(ST_Multi(the_geom)))
> 		  
> 		FROM ((SELECT
> ST_MakeLine(ST_SetSRID(ST_Point(i,j),4326),ST_SetSRID(ST_Point(j,i),4326
> ))  As the_geom 
> 		FROM generate_series(-60,50,10) As i 
> 			CROSS JOIN generate_series(40,70, 10) As j)) As
> foo;  
> COMMIT;
> SELECT 'ST_LineMerge LineSet: End Testing Multi/LINESTRING';

Hmmm. A backtrace on my workstation here strongly points the finger at GEOS:


(gdb) bt
#0  0x00007f4d3495aed5 in raise () from /lib/libc.so.6
#1  0x00007f4d3495c3f3 in abort () from /lib/libc.so.6
#2  0x00007f4d34953dc9 in __assert_fail () from /lib/libc.so.6
#3  0x00007f4d31e7cfa5 in geos::geom::CoordinateArraySequence::getAt () 
from /usr/lib/libgeos-3.0.0.so
#4  0x00007f4d31ee08d0 in 
geos::operation::linemerge::LineMergeGraph::addEdge () from 
/usr/lib/libgeos-3.0.0.so
#5  0x00007f4d31ee1bbd in geos::operation::linemerge::LineMerger::add () 
from /usr/lib/libgeos-3.0.0.so
#6  0x00007f4d3238f4c5 in GEOSLineMerge () from /usr/lib/libgeos_c.so.1
#7  0x00007f4d325c2e91 in linemerge (fcinfo=0x7fff3d556050) at 
lwgeom_geos_c.c:3433
#8  0x000000000052778a in ExecMakeFunctionResultNoSets ()
#9  0x0000000000527709 in ExecMakeFunctionResultNoSets ()
#10 0x00000000005273ce in ExecProject ()
#11 0x0000000000537ab2 in ExecNestLoop ()
#12 0x00000000005269c0 in ExecProcNode ()
#13 0x0000000000524905 in ExecutorRun ()
#14 0x00000000005be5a0 in PortalRunSelect ()
#15 0x00000000005bfc09 in PortalRun ()
#16 0x00000000005baeac in exec_simple_query ()
#17 0x00000000005bc3d7 in PostgresMain ()
#18 0x00000000005907b2 in ServerLoop ()
#19 0x0000000000591494 in PostmasterMain ()
#20 0x0000000000546b48 in main ()
(gdb)


ATB,

Mark.

-- 
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063



More information about the postgis-devel mailing list