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

Add a New Comment Rich Markup
   

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

 

(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)
  •  

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code