[GRASS-dev] [grass-code I][431] g.copy segmentation fault
Glynn Clements
glynn at gclements.plus.com
Mon Jul 23 12:34:39 EDT 2007
Volker Wichmann wrote:
> Digging a little deeper, I found that the return values of the two
> 'open' commands (variables fd and fd2) are reasonable - but what about
> the return value of the read command (line 146, do_copy.c):
> len = read(fd, buf, 1024)
> Why is a 0 returned at the first call - my dataset is a valid raster, so
> why an EOF before reading anything?
Some of the files comprising the map may be empty, e.g. FP maps have
an empty "cell" file (the actual data is in the "fcell" file).
> Maybe this is an issue of file permission?
If you don't have the necessary permissions, the open() call will
fail; read() and write() can't fail due to permissions.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list