#746: v.out.ascii with column parameter: segfault
----------------------+-----------------------------------------------------
Reporter: neteler | Owner: [email protected]
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
with:
{{{
dbValue value = {0};
}}}
Alternatively, the string part alone can be initialised later with:
{{{
db_init_string(&value.s);
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/746#comment:4>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev