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

Dylan Beaudette debeaudette at ucdavis.edu
Mon Nov 7 11:54:05 EST 2011


On Friday, November 04, 2011, Glynn Clements wrote:
> 
> Dylan Beaudette wrote:
> 
> > however my futile attempt has resulted in a segfault. The tail end
> > of which looks like:
> 
> > Any tips?
> 
> Compile with debug info and without optimisation:
> 
> 	make clean
> 	make CFLAGS=-g &> build.log
> 
> Pay attention to any warnings which are generated.
> 
> Run the program under gdb; when it segfaults, you can view the call
> stack with "bt" (or "bt full" to see arguments). The top-most entry
> will be the source line where the segfault occurred.
> 

Thanks Gylnn,

Here is what I get:

Starting program: /usr/local/grass-7.0.svn/bin/r.fspl in=elev30 out=fspl30  
coordinate=695224,4232900 ant_height=10 frequency=445
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0xb7f44be8 in G_name_is_fully_qualified (fullname=0x0, name=0xbfffdd90 "", 
mapset=0xbfffdc90 "") at nme_in_mps.c:45
45          for (p = fullname; *p; p++)

#0  0xb7f44be8 in G_name_is_fully_qualified (fullname=0x0, name=0xbfffdd90 "", 
mapset=0xbfffdc90 "") at nme_in_mps.c:45
#1  0xb7f44dab in G__open (element=0xb7f88330 "cellhd", name=0x0, 
mapset=0x804c228 "PERMANENT", mode=0) at open.c:60
#2  0xb7f450e4 in G_fopen_old (element=0xb7f88330 "cellhd", name=0x0, 
mapset=0x804c228 "PERMANENT") at open.c:230
#3  0xb7f8449e in fopen_cellhd_old (name=0x0, mapset=0x804c228 "PERMANENT") at 
reclass.c:250
#4  0xb7f83e50 in Rast_is_reclass (name=0x0, mapset=0x804c228 "PERMANENT", 
    rname=0xbffff048 
"\342\303\376\267\364\360\377\277p\204\004\b\350\360\377\277d\372\377\267", 
rmapset=0xbfffef48 "-")
    at reclass.c:49
#5  0xb7f799db in Rast_get_cellhd (name=0x0, mapset=0x804c228 "PERMANENT", 
cellhd=0xbffff198) at get_cellhd.c:62
#6  0x08049203 in main (argc=6, argv=0xbffff434) at main.c:205



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


More information about the grass-dev mailing list