[GRASS-dev] Re: r.external

Glynn Clements glynn at gclements.plus.com
Wed Sep 17 12:45:00 EDT 2008


Markus Neteler wrote:

> using the DTM map registered with r.external, I get sometimes (not sure on
> what it depends), a Segmentation fault:

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 47745198216448 (LWP 24661)]
> 0x00002b6c8556ebcb in free () from /lib64/libc.so.6
> (gdb) bt
> #0  0x00002b6c8556ebcb in free () from /lib64/libc.so.6
> #1  0x00002b6c83f0c09b in G_free (buf=0x7c7c668c) at alloc.c:130
> #2  0x00002b6c83f112e5 in close_old (fd=8) at closecell.c:144

143	    if (fcb->cellhd.compressed)
144		G_free(fcb->row_ptr);

The compressed field should always be zero.

r.external should always set it to zero in the cellhd file, and for a
map opened for read, the cellhd structure should contain exactly what
is in the file.

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


More information about the grass-dev mailing list