[Q] Assertion failure on Linux/Alpha - resolved
abnay at altavista.com
abnay at altavista.com
Wed Oct 11 14:09:46 PDT 2000
On Wed, 11 October 2000, Jason Baker wrote:
> To clarify: gcRealloc was copying sizeof(gc_unit) many extra bytes
> from oldmem to mem. This bug is innocuous unless either:
> a. sizeof(gc_unit) (2 pointers) > the difference between the sizes
> of mem and oldmem (at least 8 bytes) (writing the extra bytes
> trashes the next header), or
.... and that's what happened. Before applying your
fix,
osize was 32 (which presumably is actual size +
sizeof(gc_unit))
size was 20; sizeof(gc_unit) is 16 (2pointers) and
16 > (32 - 20) was true.
After applying your fix, make check runs fine;
ofcourse it fails on 19 tests. But, *this* I believe
is the right fix :-) (as opposed to my previous "fix")
Thanks for your help.
Bharadwaj
(On to why those 19 tests are failing)
Personal e-mail : abnay at altavista.com
or abnay at altavista.net
_______________________________________________________________________
Free Unlimited Internet Access! Try it now!
http://www.zdnet.com/downloads/altavista/index.html
_______________________________________________________________________
More information about the kaffe
mailing list