[Gc] a bug in v.7.1 ?
Bruce Hoult
bruce at hoult.org
Tue Mar 1 09:38:45 PST 2011
On Wed, Mar 2, 2011 at 5:35 AM, Glauco Masotti <glauco.masotti at libero.it> wrote:
> It happens that I get an allocated array overwritten when writing another
> array!
> They should have nothing to do with each other, but in fact they map to
> overlapping addresses in memory!
> Well, I don't see how this can happen if not for the fact that the collector
> considers erroneously the space of the former array as no more used
> and thus frees it, so that this space is allocated to the latter array.
Disable GC_free() (for example with "#define GC_free(p) 0") and see if
it still happens.
More information about the Gc
mailing list