[GRASS-dev] [GRASS GIS] #403: Using barin option in r.flow produce segmentation fault

#403: Using barin option in r.flow produce segmentation fault
----------------------------+-----------------------------------------------
Reporter: lucacasagrande | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: Raster | Version: svn-trunk
Keywords: raster r.flow | Platform: Linux
      Cpu: x86-64 |
----------------------------+-----------------------------------------------
Using barin input produce a segmentation fault also if the map has got
only 1/0 values (no null data).

This is how to replicate the problem:

{{{
g.region rast=elevation.10m
v.to.rast input=streams@PERMANENT output=streamTest use=val type=line
layer=1 value=1 rows=4096
r.null map=streamTest null=0
r.report units=me map=streamTest | grep "no data"
r.flow elevin=elevation.10m barin=streamTest skip=37 bound=9432
flout=testvector lgout=testraster
}}}

Notice that without the barin option, the process works fine.

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

#403: Using barin option in r.flow produce segmentation fault
-----------------------------+----------------------------------------------
  Reporter: lucacasagrande | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.0
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords: raster r.flow
  Platform: Linux | Cpu: x86-64
-----------------------------+----------------------------------------------
Changes (by lucacasagrande):

  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in 7.svn, 6.4.svn, 6.4.0svn, 6.3.svn.

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