From owner-freebsd-hackers Thu Feb 22 5:13:14 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 371BE37B503 for ; Thu, 22 Feb 2001 05:13:12 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f1MDD2c04118; Thu, 22 Feb 2001 05:13:02 -0800 (PST) Date: Thu, 22 Feb 2001 05:13:02 -0800 From: Alfred Perlstein To: Madhavi Suram Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: warning in free(): Message-ID: <20010222051302.E29126@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from madhavis@sasken.com on Thu, Feb 22, 2001 at 06:38:32PM +0530 X-all-your-base: are belong to us. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Madhavi Suram [010222 05:09] wrote: > > Hi > > I am running a C program in user space on FreeBSD 3.3 release. I got a > warning like this: > > testing in free(): warning: modified (chunk-) pointer. > > testing is the name of the executable I am running. > > Could anyone tell me what this warning means? What may be the effect of > this code when I shift it to kernel with due modifications? It means you've most likely corrupted your malloc pool, meaning you've written past/before the edge of an allocation you've done. To fix it start being mor careful with pointers and checking array bounds. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message