[GRASS-dev] [bug #4546] (grass) r.sim.water segmentation fault

this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
-------------------------------------------------------------------------

Subject: r.sim.water segmentation fault

Platform: GNU/Linux/x86_64
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03

when running r.sim.water by:
-----------------
GRASS 6.1.cvs (spearfish60):~ > r.sim.water elevin=elevation.10m
dxin=elevation.10m_dx dyin=elevation.10m_dy rain=elevation.10m_rain
manin=elevation.10m_manin infil=elevation.10m_infil depth=elevation.10m_depth
disch=elevation.10m_disch
-----------------
  
it stops with output:
------------------
Authors: original version L.Mitas, H.Mitasova
         GRASS implementation J. Hofierka
see references in manual page or at:
http://www2.gis.uiuc.edu:2280/modviz/papers/listsj.html
  
Running MAY 10 version
Segmentation fault
-------------------

This applies to many 6.x versions (including stable) and also to 32bit
installations (including precompiled ones).

The input maps "rain", "manin" and "infil" have been created artificially as
constant fields by the following script:
-------------------
#!/bin/sh
dem=elevation.10m
g.region rast=${dem}
r.slope.aspect --o elevation=$dem dx=${dem}_dx dy=${dem}_dy
r.mapcalc "${dem}_rain=if(${dem},0.0001,null())"
r.mapcalc "${dem}_manin=if(${dem},0.04,null())"
r.mapcalc "${dem}_infil=if(${dem},0.9,null())"
  
echo r.sim.water elevin=${dem} dxin=${dem}_dx dyin=${dem}_dy \
rain=${dem}_rain manin=${dem}_manin infil=${dem}_infil \
depth=${dem}_depth disch=${dem}_disch
  
r.sim.water elevin=${dem} dxin=${dem}_dx dyin=${dem}_dy \
rain=${dem}_rain manin=${dem}_manin infil=${dem}_infil \
depth=${dem}_depth disch=${dem}_disch
---------------------

Many thanks for looking at it,
Andreas

-------------------------------------------- Managed by Request Tracker

this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
---------------------------------------------------------------------

Subject: r.sim.water segmentation fault

Platform: GNU/Linux/x86_64
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03

try with today's CVS -- Glynn fixed the startup problem yesterday.

cd raster/simwe/
cvs update
make

Hamish

Hamish wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=4546
> ---------------------------------------------------------------------
>
> Subject: r.sim.water segmentation fault
>
> Platform: GNU/Linux/x86_64
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: grass-6.1.cvs_src_snapshot_2006_06_03

try with today's CVS -- Glynn fixed the startup problem yesterday.

I doubt that's relevant here.

My fix simply removed a "banner" which was being printed even when the
--tcltk switch was used, thus interfering with gis.m.

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