[GRASS-dev] Re: [GRASS GIS] #746: v.out.ascii with column parameter: segfault

GRASS GIS trac at osgeo.org
Wed Sep 9 22:39:22 EDT 2009

#746: v.out.ascii with column parameter: segfault
  Reporter:  neteler  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  new                      
  Priority:  normal   |   Milestone:  6.4.0                    
 Component:  Vector   |     Version:  6.4.0 RCs                
Resolution:           |    Keywords:                           
  Platform:  Linux    |         Cpu:  x86-64                   
Comment (by glynn):

 Replying to [comment:1 hamish]:

 > it seems to die on this in db_select_value():
 if (count == 0)
     db_copy_value(val, value);
 > I'm guessing that *val has not been allocated any memory?

 Various dbString functions expect the target value to have been
 initialised, but "value" is uninitialised. It needs to be initialised

     dbValue value = {0};

 Alternatively, the string part alone can be initialised later with:


Ticket URL: <https://trac.osgeo.org/grass/ticket/746#comment:4>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list