[GRASS-dev] [GRASS GIS] #536: memory corruption

GRASS GIS trac at osgeo.org
Thu Mar 19 14:19:23 EDT 2009

#536: memory corruption
 Reporter:  martinl  |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect   |      Status:  new                      
 Priority:  blocker  |   Milestone:  7.0.0                    
Component:  Vector   |     Version:  svn-trunk                
 Keywords:           |    Platform:  Linux                    
      Cpu:  x86-32   |  

 I discovered strange memory corruption in Vect_open_old_head(), e.g.

 Vect_open_old_head (Map=0xbffee630, name=0x87140f0 "bs", mapset=0x804aea8
 "") at open.c:475
 (gdb) p Map->head.line_3
 $21 = 0x87146e0 ""
 (gdb) n
 main (argc=2, argv=0xbffeeb84) at main.c:110
 (gdb) p Map->head.line_3
 $22 = 0x7b1ea71 <Address 0x7b1ea71 out of bounds>

 In the result all vector modules segfaults.


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

More information about the grass-dev mailing list