bugMIT/GNU Scheme - Bugs: bug #59025, Parameters leak.

 
 

bug #59025: Parameters leak.

Submitted by:  Arthur A. Gleckler <aag>
Submitted on:  Thu 27 Aug 2020 11:19:40 PM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open
Keywords: 

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 27 Aug 2020 11:19:40 PM UTC, original submission:  

Jim Rees reported this bug to me privately, then gave me permission to use his message as part of a bug report:

> (let loop () (parameterize (((make-parameter #f) (make-vector 10000))) (loop)))

Goes kaboom due to unbounded memory usage on chibi, chicken, chez, mit-scheme, guile, & gauche (that's all I tested).

[My Scheme] happily chugs along gc'ing forever on my scheme without growing (as of yesterday) :-D

While fixing a bug recently,  I realized that parameterize is potentially a leak if parameters are being cons'ed up & forgotten a lot.    So, I made my continuation marks all based on ephemerons instead of pairs, and now there's no leak -- and I seem to be the only one who's noticed it and bothered to do something about it.

It's not really an issue because I know of no practical use for an unbounded number of created & forgotten parameter objects.

Arthur A. Gleckler <aag>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by aag (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5