[GRASS-user] r.terraflow usage (segfault)

Glynn Clements glynn at gclements.plus.com
Fri Nov 14 07:36:57 EST 2008


Markus Neteler wrote:

> On Thu, Nov 13, 2008 at 7:23 PM, Massimo Di Stefano
> <massimodisasha at yahoo.it> wrote:
> > Hi
> >
> > i'm tring to use "r.terraflow"
> >
> > following the help page i see :
> >
> > r.terraflow elev=spearfish filled=spearfish-filled \
> >    dir=spearfish-mfdir swatershed=spearfish-watershed \
> >    accumulation=spearfish-accu tci=spearfish-tci
> >
> >
> > but i can't find any "spearfish" elevation data in the spearfish dataset
> > so i used elevation.dem insted,
> 
> I have fixed the nonsense example to
> 
> r.terraflow elev=elevation.10m filled=elevation10m.filled \
>     dir=elevation10m.mfdir swatershed=elevation10m.watershed \
>     accumulation=elevation10m.accu tci=elevation10m.tci
> 
> 
> > but i've a segfault :-/
> 
> Me, too.

This was introduced by r34198, which was back-ported in r34205.

> This hack seems to cure the problem:

region is being allocated, but not until after that point.

Fixed in r34285.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list