[Q] Assertion failure on Linux/Alpha - resolved
kaffe@rufus.w3.org
kaffe@rufus.w3.org
11 Oct 2000 14:09:46 -0700
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@altavista.com
or abnay@altavista.net
_______________________________________________________________________
Free Unlimited Internet Access! Try it now!
http://www.zdnet.com/downloads/altavista/index.html
_______________________________________________________________________