[GRASS5] Re: [bug #2767] (grass) r.stats bug (due to recent G_store() fix?)

Glynn Clements glynn at gclements.plus.com
Fri Dec 10 10:57:18 EST 2004


Markus Neteler wrote:

> > > For the crashing map title="" (so above if condition used).
> > > Reverting locally store.c (G_store() function) didn't help.
> > 
> > G_store() calls G_malloc() which calls malloc().
> > 
> > If a program crashes in either malloc (or calloc, realloc etc) or
> > free, it's usually because the heap has become corrupted, typically
> > because something wrote beyond the bounds of a dynamically-allocated
> > block, overwriting the header of either the current block or the one
> > after it.
> > 
> > IOW, the crash is just a symptom; the bug lies elsewhere.
> 
> First question:
> 
> Is nobody able to reproduce this bug in GRASS 5.7/Spearfish 5.7:
> 
>  r.stats -anC fields,elevation.10m
> 
> If no, maybe my gcc version is corrupted?
>  gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)
> 
> ? 

It works for me, but a memory-overwrite bug will only have
consequences if the memory which is being overwritten is actually used
for something.

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




More information about the grass-dev mailing list