[GRASS-dev] Re: [GRASS-user] Attempt to export (r.out.gdal) produces sometimes an error and sometimes not

Glynn Clements glynn at gclements.plus.com
Tue Sep 23 14:55:18 EDT 2008


Nikos Alexandris wrote:

> 1st attempt to export:
>  > r.out.gdal in=composite_b123 out=/home/nik/grassdb/peloponnese/data/exports/composite_b123.tif
> Exporting to GDAL data type: UInt16
> Segmentation fault

> Shouldn't the same error message (from the 1st attempt) remain?

It appears that there is a memory corruption bug somewhere, either in
r.out.gdal, the GRASS libraries, the GDAL library, or a library which
it uses.

The consequences of a memory corruption bug often depend upon the
exact memory layout, or even the exact contents of uninitialised
memory. Sometimes it will cause problems, sometimes it won't.

It doesn't help that such bugs often fail to manifest if the program
is run under a debugger (colloquially referred to as a "Heisenbug", in
reference to the quantum mechanics principle that simply observing a
system can change its behaviour).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list