[GRASS-dev] [GRASS GIS] #506: v.out.ascii segfault when exporting columns from the attribute table

#506: v.out.ascii segfault when exporting columns from the attribute table
-------------------------+--------------------------------------------------
Reporter: dylan | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.5.0
Component: default | Version: svn-develbranch6
Keywords: v.out.ascii | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
v.out.ascii is giving a segfault when a column is supplied to the
'columns' argument. Example with the spearfish database:

{{{
v.out.ascii in=bugsites format=point columns=str1

[...]

D4/5: eval_node node_type = 2
D4/5: right = 2
D4/5: right_dval = 1.000000
D4/5: operator = 11
D4/5: condition = 0
D2/5: load_table_head(): tab = 2,
/home/dylan/grass/spearfish60/PERMANENT/dbf//bugsites.dbf
Segmentation fault
}}}

I have tried this with several vector files using the DBF backend, all
with the same result. Using the MySQL backend v.out.ascii appears to work
fine.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/506&gt;
GRASS GIS <http://grass.osgeo.org>

#506: v.out.ascii segfault when exporting columns from the attribute table
--------------------------+-------------------------------------------------
  Reporter: dylan | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.5.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords: v.out.ascii
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by hamish):

works for me.

{{{
/home/dylan/grass/spearfish60/PERMANENT/dbf//bugsites.dbf
}}}

I don't think it makes a difference, but //bugsites.dbf ?

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/506#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

On Tuesday 24 February 2009, GRASS GIS wrote:

#506: v.out.ascii segfault when exporting columns from the attribute table
--------------------------+------------------------------------------------
- Reporter: dylan | Owner: grass-dev@lists.osgeo.org Type:
defect | Status: new
  Priority: major | Milestone: 6.5.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords: v.out.ascii
  Platform: Unspecified | Cpu: Unspecified
--------------------------+------------------------------------------------
- Comment (by hamish):

works for me.

{{{
/home/dylan/grass/spearfish60/PERMANENT/dbf//bugsites.dbf
}}}

I don't think it makes a difference, but //bugsites.dbf ?

Hamish

Yeah that did look kind strange... is that something I can fix with
db.connect?

Cheers,
Dylan

--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341

#506: v.out.ascii segfault when exporting columns from the attribute table
--------------------------+-------------------------------------------------
  Reporter: dylan | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 6.5.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords: v.out.ascii dbf_driver
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by dylan):

  * keywords: v.out.ascii => v.out.ascii dbf_driver
  * priority: major => minor

Comment:

Updates: with a recent SVN update, I see that v.out.ascii columns=...
works as expected, except when the column name may be an SQL reserved
word.

This does not work:
{{{
v.out.ascii pits columns=Comment
}}}

This works:
{{{
v.out.ascii pits columns=Max_PDOP
}}}

I wonder if there is something that can be done about this...

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/506#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#506: v.out.ascii reserved words problem when exporting columns from the
attribute table
-------------------------------------+--------------------------------------
Reporter: dylan | Owner: grass-dev@…
     Type: defect | Status: new
Priority: minor | Milestone: 6.5.0
Component: Vector | Version: svn-develbranch6
Keywords: v.out.ascii, dbf_driver | Platform: Unspecified
      Cpu: Unspecified |
-------------------------------------+--------------------------------------
Changes (by hamish):

  * keywords: v.out.ascii dbf_driver => v.out.ascii, dbf_driver
  * component: Default => Vector

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/506#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>