Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 1999 10:49:38 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        hackers@FreeBSD.ORG, phk@FreeBSD.ORG
Subject:   Re: "warning: malloc wrapped" 
Message-ID:  <199901301849.KAA01025@dingo.cdrom.com>
In-Reply-To: Your message of "Fri, 29 Jan 1999 09:53:44 %2B0100." <199901290853.JAA12795@labinfo.iet.unipi.it> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
> 
> while loading a rather large PicoBSD image (leaving only some
> 50KB free on a 1.44MB floppy; the in-kernel fs size is 2400KB) i
> get the following message:
> 
>     Booting 0:fd(0,a)kernel @ 0x333000
>     text=0x138000 data=0x0 bss=0xa00 symbols=[+0x600+0x4+0x270+0x4+0x1e2]
>     total=0x46c45a entry point=0x333000
>     Uncompressing kernel...warning: malloc wrapped
>     done
>     Booting the kernel
> 
> (this is on 2.2.X, the image is a.out format, and i see it on both
> an 8MB and a 128MB machine.)
> 
> I am concerned by the "malloc wrapped" message -- what is exactly
> happening, and can i fix it in some way ? I haven't seen any problem so
> far but it might just be that it corrupts some pieces of code/mfs that
> i have not used yet.

The malloc() pretender in the kzip code just increments a pointer 
around a small ring.  When the pointer gets back to the beginning of 
the ring, you get that message; it means that a newly allocated region 
may overlap one that was allocated before.

This is one of the reasons that kzip must die.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901301849.KAA01025>