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

GRASS GIS trac at osgeo.org
Sun Mar 22 12:12:47 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                
Resolution:           |    Keywords:                           
  Platform:  Linux    |         Cpu:  x86-32                   
Comment (by martinl):

 Replying to [comment:7 mmetz]:
 > Is this only true for vector bs or for all vectors?

 No, for all vectors.

 > What are the contents of vector/bs/head, is there something specified

 empty string

 > I suspect Vect__read_head because according to the description of this
 ticket, something is wrong with setting Map->head.line_3 within
 Vect__read_head, and Vect__read_head reads the plain text file named head.

 When leaving Vect_open_old_head everything seems OK.

 Vect_open_old_head (Map=0xbffef630, name=0x8b200f0 "bs", mapset=0x804aea8
 "") at open.c:474
 (gdb) n
 (gdb) p Map->head.line_3
 $7 = 0x8b206e0 ""

 Next step -> memory corrupted

 (gdb) n
 main (argc=2, argv=0xbffefb84) at main.c:110
 (gdb) p Map->head.line_3
 $8 = 0x7b1ea71 <Address 0x7b1ea71 out of bounds>

 Sorry, no idea...

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

More information about the grass-dev mailing list