Re: Possible bug in malloc-code
From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 05/31/04
- Previous message: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- In reply to: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- Next in thread: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- Reply: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "Willem Jan Withagen" <wjw@withagen.nl> Date: Mon, 31 May 2004 22:51:34 +0200
In message <0be501c4474f$bb115400$471b3dd4@dual>, "Willem Jan Withagen" writes:
>
> i = 11
>Alloc: n = 335544320, ADR = 0x00000000485D7000
>Alloc: n = 402653184, ADR = 0x000000005C5D7000
>Alloc: n = 469762048, ADR = 0x00000000745D7000
>Alloc: n = 536870912, ADR = 0xFFFFFFFF905D7000
>Free: n = 536870912, ADR = 0xFFFFFFFF905D7000
>rMemoryDrv in free(): error: junk pointer, too high to make sense
>Abort (core dumped)
As for this part: Does the program in fact have a prototype for
malloc(3) in sight ? Can you try to explicitly add a wrong prototype
to see that it complains ? Alternatively, #include <stdlib.h> to get
it a prototype.
I looked briefly at the source code of the test-program and while I am
in a position to say that it is doing something wrong with the casting,
it does look mightily bogus to me.
Poul-Henning
-- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- In reply to: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- Next in thread: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- Reply: Willem Jan Withagen: "Re: Possible bug in malloc-code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|