Date: Sun, 10 Nov 2002 20:57:44 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: aurelien.nephtali@wanadoo.fr Cc: current@FreeBSD.ORG Subject: Re: Value 0xd0d0d0d0 ? Message-ID: <20021110.205744.31819780.imp@bsdimp.com> In-Reply-To: <20021109124930.GA1429@nebula.wanadoo.fr> References: <20021109124930.GA1429@nebula.wanadoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20021109124930.GA1429@nebula.wanadoo.fr> Aurelien Nephtali <aurelien.nephtali@wanadoo.fr> writes: : I would like to know where/when the value 0xd0d0d0d0 is assigned to a pointer ? : Sometimes I have some pointers which have a correct value before and suddenly : they got this odd 0xd0d0d0d0 value :/ That's a feature of FreeBSD's malloc. On free, the old memory is overwritten with 0xd0 to preclude access after free (which is undefined and a source of many bugs). This is a bug in your program almost certainly. man malloc will show you how to turn this off. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021110.205744.31819780.imp>