[GRASS5] r.fill.dir segfaults

Markus Neteler neteler at itc.it
Thu Jun 26 05:14:18 EDT 2003

On Thu, Jun 26, 2003 at 08:39:47AM +0200, Stephan Holl wrote:
> Dear developers,
> can anybody confirm the segfault during operation of r.fill.dir ? After
> the third wtershed-pass it exits with segfault.

I was able to reproduce the bug:

g.region rast=elevation.dem
r.mapcalc "elev.float = elevation.dem * 1.0"
r.fill.dir in=elev.float elev=blah dir=dir

The bug appears in get_min() which is called in
row 134

The second parameter to get_min() seems to be empty when
it crashes.

However, I don't know how to fix it.


More information about the grass-dev mailing list