[GRASS5] [bug #2925] (grass) r.resamp.rst segfault

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

Subject: r.resamp.rst segfault

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.0.cvs_src_snapshot__2005_01_15

r.resamp.rst input=dem5 elev=dem1 ew_res=1 ns_res=1

mapset for input proba

Processing all selected output files will require
239700 bytes of disk space for temp files

zmin=-7441.180302,zmax=4027.909900
Temporarily changing the region to desired resolution...
Changing the region back to initial...
Percent complete: Segmentation fault

It works perfect in 5.4. Input dem is an output of r.surf.fractal. The region is very small:

g.region -p
projection: 99 (Transverse Mercator)
zone: 0
datum: etrs89
ellipsoid: grs80
north: 326715
south: 326480
west: 266920
east: 267175
nsres: 5
ewres: 5
rows: 47
cols: 51

Maciek

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

Request Tracker wrote:

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

Subject: r.resamp.rst segfault

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.0.cvs_src_snapshot__2005_01_15

r.resamp.rst input=dem5 elev=dem1 ew_res=1 ns_res=1

mapset for input proba

Processing all selected output files will require
239700 bytes of disk space for temp files

zmin=-7441.180302,zmax=4027.909900
Temporarily changing the region to desired resolution...
Changing the region back to initial...
Percent complete: Segmentation fault

It works perfect in 5.4. Input dem is an output of r.surf.fractal. The region is very small:

g.region -p
projection: 99 (Transverse Mercator)
zone: 0
datum: etrs89
ellipsoid: grs80
north: 326715
south: 326480
west: 266920
east: 267175
nsres: 5
ewres: 5
rows: 47
cols: 51

Maciek

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

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

It is probably related to the merge of WIND and WIND3. If you find out in the code
what needs to be changed and test it, I will submit the fix. It is probably simple.

Helena

From: "Helena" <hmitaso@unity.ncsu.edu>

Subject: r.resamp.rst segfault

It is probably related to the merge of WIND and WIND3. If you find out in
the code what needs to be changed and test it, I will submit the fix. It
is probably simple.
Helena

I don't know a thing about coding, sorry. If anybody would kindly be willing
to try to fix the bug, BTW please take a look if something can be easily
done about the "Resolution bug" decsibed in raster/r.resamp.rst/Bugs - if
that's not too much work.

Maciek