[GRASS-dev] Re: r.external

Markus Neteler neteler at osgeo.org
Wed Sep 17 14:17:27 EDT 2008


On Wed, Sep 17, 2008 at 6:45 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> 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.

This seems to be the case:

[neteler at fep grassdata]$ cd patUTM32/PERMANENT/cellhd/
[neteler at fep cellhd]$ cat pat_DTM_5m
proj:       1
zone:       32
north:      5157086
south:      5059541
east:       730098
west:       612488
cols:       23522
rows:       19509
e-w resol:  5
n-s resol:  5
format:     -1
compressed: 0

Markus


More information about the grass-dev mailing list