Opened 14 years ago

Closed 14 years ago

#725 closed defect (fixed)

ST_RelateMatch crash

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

SELECT mat.name, pat.name, 
   ST_RelateMatch(mat.val, pat.val) As satisfied
	FROM 
		( VALUES ('Equality', 'T1FF1FFF1'),
			('Overlaps', 'T*T***T**'),
			('Within', 'T*F**F***') ) 
            As pat(name,val)
		CROSS JOIN 
		( VALUES ( 'pl', 
		ST_Relate(ST_Point(1,2),   
                   ST_GeomFromText('LINESTRING(1 2, 3 4)') 
                         )
				) ) 
				As mat(name,val);

Merry Christmas strk :)

I think it's the same problem as you had with sharedpath maybe — cause it seems to break if I have more than one compare but not if I just have one.

This is a fairly common pattern of failure I've noticed. We should probably in the regress tests have at least one multi-row case for each regress we do.

Change History (1)

comment:1 by strk, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in r6460. Thanks for your present.

Problem was I was getting rid of memory associated with arguments, which in this case are likely being reused.

Note: See TracTickets for help on using tickets.