[GRASS-dev] Re: [GRASS GIS] #746: v.out.ascii with column
parameter: segfault
GRASS GIS
trac at osgeo.org
Wed Sep 9 19:26:49 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 hamish):
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?
in v.out.ascii/b2a.c bin_to_asc() there is
dbValue value;
but dbValue is a struct (see include/dbmi.h) which contains a
dbString which contains char *string, which needs an alloc...
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/746#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list