[GRASSLIST:5993] Re: s.to.rast problem

Glynn Clements glynn.clements at virgin.net
Wed Apr 9 14:28:02 EDT 2003


Stu wrote:

> Any ideas on what is causing this problem

No. There are two common approaches to finding out the cause. One is
trial-and-error (i.e. looking for specific factors which might cause
the problem). The other is to use a debugger.

One issue to consider when creating or editing text files on a Mac is
that historically the Mac has used CR (carriage return, ASCII code 13)
as the end-of-line character, while Unix (and hence GRASS) uses LF
(line feed, ASCII code 10). Text files which look correct in a text
editor may not be interpreted correctly by other problems.

You can convert CR to LF using:

	tr '\r' '\n' < oldfile > newfile

> and more fundamentally -- what is a 'segmentation fault'?

A segmentation fault corresponds to an invalid memory access; e.g. 
reading from a non-existent memory location, or writing to a read-only
memory location.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list