[postgis-devel] [PostGIS] #837: [raster] ST_MapAlgebra -- I think we have a memory leak

PostGIS trac at osgeo.org
Thu Mar 24 11:56:56 PDT 2011


#837: [raster] ST_MapAlgebra -- I think we have a memory leak
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  jorgearevalo 
     Type:  defect          |      Status:  assigned     
 Priority:  blocker         |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by jorgearevalo):

 Just for the record. Differents behaviors of the function in PostgreSQL
 8.4.7 and PostgreSQL 9.0.3 when uncommenting the SPI_finish call:

 - PostgreSQL 8.4.7: Crash caused by SIGSEV, segmentation fault.[[BR]]
 - PostgreSQL 9.0.3: Error deserializing raster (Unknown pixeltype: 15).
 And incorrect number of bands reported (32639 instead of 1)

 Link to SQL file with the raster table used, 14400 rows:
 http://dl.dropbox.com/u/6599273/srtm_35_04.tgz

 Query that causes different behaviours when SPI_finish is uncommented:
 select st_mapalgebra(rast, 1, 'rast + 10', '-1 * rast') from srtm_35_04
 where rid < 3651

 The where clause is not necessary. The problem simply appears when the
 query processes more than 3650 rows.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/837#comment:11>
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