In message: <[EMAIL PROTECTED]>
Aurelien Nephtali <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message