octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64620] Nested functions handles make stack fr


From: Petter T.
Subject: [Octave-bug-tracker] [bug #64620] Nested functions handles make stack frames leak
Date: Mon, 4 Sep 2023 17:27:03 -0400 (EDT)

Follow-up Comment #1, bug #64620 (project octave):


Nested functions handles make stack frames leak (bug #64620)

If the handle is saved on parent frames.

* libinterp/corefcn/call-stack.cc: Clear static and parent link on frame pop
* libinterp/corefcn/stack-frame.h: Mark closure for all linked accesses.
                                   Fn to clear parent and static link.
* libinterp/octave-value/ov-fcn-handle.cc: Search access links for context
frame match
* test/bug-64620/: Tests


I was able to run of of memory by doing:

while true
  bug_64620_1;
end


,from the CLI (top scope).

(file #55108)

    _______________________________________________________

Additional Item Attachment:

File name: octave_32287.patch             Size:5 KB
    <https://file.savannah.gnu.org/file/octave_32287.patch?file_id=55108>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64620>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]