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

 
 

bug #59025: Parameters leak.

Submitter:  Arthur A. Gleckler <aag>
Submitted:  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: 
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>
Group Member

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code