From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-02 22:11:48
Hi! On Thu, Jan 02, 2003 at 01:00:05AM -0500, Tim Vanderhoek wrote: > I ran into some trouble with the cc65 compiler trying to access memory > that had already been free()'d. [...] > This problem causes cc65 to crash while compiling libsrc in any > environment where free() by default trashes memory that is freed. Thanks a lot for reporting this bug! Older code in the optimizer modules mixes the creation of replacement code and deletions of old code. After a few bad experiences, I switched to a new strategy, doing all additions first and then all deletes. I will rewrite the OptPtrStore stuff using the latter method once I have some more time. 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. Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-02 22:11:52 CET