[GRASS-dev] i.find broken in CVS
Hamish
hamish_nospam at yahoo.com
Tue Jun 27 04:30:59 EDT 2006
Hi,
a recent change makes i.find segfault.
http://freegis.org/cgi-bin/viewcvs.cgi/grass6/imagery/i.find/main.c.diff?r1=2.4&r2=2.5
e.g. startup i.vpoints, click "vector" and you'll get a G_fatal_error():
ERROR: ask_gis_files: can't read tempfile
[from i.vpoints/ask.c]
as i.find segfaulted didn't create the tempfile.
I've just added a return value test to the system("i.find") call in
i.vpoints (find.c), so you won't see that error after a cvs update.
it seems to break here:
imagery/i.find/main.c line 111, in find()
while ((dp = readdir(dfd)) != NULL)
usage: (writes elements to a file)
i.find [location] [mapset] [element] [output file]
e.g. list of spearfish raster maps:
G61> $GISBASE/etc/i.find spearfish60 PERMANENT cell /tmp/cellmaps.txt
Segmentation fault
thanks,
Hamish
More information about the grass-dev
mailing list