[Coco] Memory leak in OS-9 Level Two

Boisy G. Pitre boisy at boisypitre.com
Sun Aug 15 17:54:09 EDT 2004


Messages of this nature are usually posted to the NitrOS-9 list, but I 
wanted to post this to the CoCo list in the hopes that someone could 
verify this.

While working on some bugs in NitrOS-9 cc3io today, I noticed a memory 
leak that appears to go back to the OS-9 Level Two package.  Here's how 
to duplicate it:

(1) Boot into OS-9 Level Two, get past the setime program and to the 
shell prompt
(2) Type: iniz w1 w4     Wait for the system to load grfdrv and the 
shell prompt reappears
(3) Type: mfree   You should get 432K on a 512K system
(4) Now type: echo>/w1;echo>/w4;mfree    You should see 424K free.
(5)Now type: deiniz w1 w4; mfree   You will still see 424K

At step 5, mfree should be 432K, but 8K seems to get lost.  In fact, if 
you follow steps 2-5 again, you will see mfree at step 5 go to 416K.  
You can do this every time, and 8K is lost each time.

I don't recall anyone ever mentioning this particular problem.  Can 
someone verify that this is happening on their system?

Boisy




More information about the Coco mailing list