[GRASS-dev] [GRASS GIS] #319: v.to.rast segfaults in G_close_gdal_link()

GRASS GIS trac at osgeo.org
Mon Oct 6 01:24:03 EDT 2008


#319: v.to.rast segfaults in G_close_gdal_link()
-----------------------+----------------------------------------------------
 Reporter:  hamish     |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect     |      Status:  new                      
 Priority:  major      |   Milestone:  6.4.0                    
Component:  default    |     Version:  svn-develbranch6         
 Keywords:  gdal_link  |    Platform:  Linux                    
      Cpu:  x86-32     |  
-----------------------+----------------------------------------------------
 Hi,

 v.to.rast segfaults in G_close_gdal_link() when used with a FP
 attribute column.

 {{{
 #spearfish
 v.random out=rand1k_elev n=1000
 v.db.addtable map=rand1k_elev column='elevation double precision'
 v.what.rast vector=rand1k_elev raster=elevation.10m column=elevation
 v.to.rast in=rand1k_elev out=rand1k.elev use=attr column=elevation

 Converted areas: 0 of 0
 Converted points/lines: 1000 of 1000
 Segmentation fault
 }}}

 {{{
 (gdb) bt full
 #0  0xb7f165b2 in G_close_gdal_link (gdal=0x4091d861) at gdal.c:121
 No locals.
 #1  0xb7f09a20 in close_old (fd=6) at closecell.c:137
         fcb = (struct fileinfo *) 0x808c650
         i = 134516666
 #2  0xb7f09928 in G_close_cell (fd=6) at closecell.c:86
         fcb = (struct fileinfo *) 0x808c650
 #3  0x0804cc84 in update_labels (rast_name=0x8057d78 "rand1k.elev",
     vector_map=0x8057d68 "rand1k_elev", field=1, label_column=0x0, use=1,
     val=1, attr_column=0x8057d88 "elevation") at support.c:493
         i = 0
         fd = 6
         Map = {format = 0, temporary = -1076280840, dblnk = 0x808fe38,
 plus = {
 ...
 }}}


 output map looks ok on causal look.

 presumably introduced with r.external changes.


 ?
 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/319>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list