Re: [cc65] calloc() not failing

From: Ullrich von Bassewitz <>
Date: 2012-11-12 19:46:17

On Mon, Nov 12, 2012 at 07:39:15PM +0100, Ullrich von Bassewitz wrote:
> On Mon, Nov 12, 2012 at 10:19:02AM +0100, Marc 'BlackJack' Rintsch wrote:
> > First time I run this, the program returns to the BASIC interpreter
> > without printing the "Error" I expect.  On the next run the system hangs
> > after half of the video memory is filled with @ signs, so it looks like
> > `calloc()` fills memory it clearly shouldn't.  This pattern of the two
> > runs is reproducible regardless of the compiler options for
> > optimizations.
> Sorry, but the program runs without errors here. Tried with the current
> snapshot and with 2.13.3 on Vice in C64 emulation. Is there anything special
> about your setup?

Is it possible that you restart the program without loading it into memory a
second time? This doesn't work, since initialized data doesn't have the
correct content.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Nov 12 19:46:25 2012

This archive was generated by hypermail 2.1.8 : 2012-11-12 19:46:29 CET