[GRASS-dev] help porting GRASS-RaPlaT to GRASS7

Dylan Beaudette debeaudette at ucdavis.edu
Thu Nov 3 19:01:20 EDT 2011


Hi,

I have started tinkering around with porting some radio propagation tools 
(http://commsys.ijs.si/en/software/grass-raplat) to GRASS 7... However, I have 
run into a wall. Is there any documentation on the general approach for 
porting code from GRASS6 -> GRASS7 ? I have tried following along the source 
code in modules such as r.flow and r.slope.aspect... however my futile attempt 
has resulted in a segfault. The tail end of which looks like:

------------------------------------------------------------------------------------------------------------------
open("/home/dylan/grass/ca630/PERMANENT/cellhd/elev30", O_RDONLY|O_LARGEFILE) 
= 3
fcntl64(3, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(3, {st_mode=S_IFREG|0644, st_size=200, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb76f5000
_llseek(3, 0, [0], SEEK_CUR)            = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "proj:       1\nzone:       10\nnor"..., 4096) = 200
read(3, "", 4096)                       = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3, "proj:       1\nzone:       10\nnor"..., 4096) = 200
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb76f5000, 4096)                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
------------------------------------------------------------------------------------------------------------------

Any tips? The code in question is very clean and well documented... leading me 
to believe (erroneously?) that I may be up to the task. I have contacted the 
author of the code, but have not heard back yet. I suppose that I could 
continue to use this code with GRASS6... However, I was just starting to get 
used to all of the new features + better performance in GRASS7.

Cheers,
Dylan

-- 
Dylan E. Beaudette
USDA-NRCS Soil Scientist
California Soil Resource Lab
http://casoilresource.lawr.ucdavis.edu/


More information about the grass-dev mailing list