Re: [cc65] CC65 Memory Corruption

Date view Thread view Subject view

From: Tim Vanderhoek (hoek_at_FreeBSD.org)
Date: 2003-01-03 00:23:17


On Thu, Jan 02, 2003 at 10:11:48PM +0100, Ullrich von Bassewitz wrote:
[...] 
> Just out of curiosity: How did you notice this bug? I think it is in the code
> for several versions now and did also survive tests using the Valgrind memory
> debugger.

The FreeBSD 'port' failed to build on FreeBSD 5.0 (not yet released).  The
malloc() and free() on FBSD 5.0 is set to by default overwrite memory
with 0xd0d0d0d0 whenever it's free()'d.  This will be disabled once 5.0
is officially released, so it would have built correctly on the final 5.0.

It's actually failed to build on FreeBSD -current for quite a while; it
just wasn't until now (Christmas vacation) that I had a chance to investigate.

I'm quite surprised the memory debugger didn't find it.  It shows-up
while compiling libsrc/common/ and libsrc/cbm/.


-- 
If I could think of a two-line witty aphorism for you to remember
me by, this would definitely be it.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-03 00:23:28 CET