|
From: | PIERRE LABRECHE |
Subject: | [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested |
Date: | Sat, 14 May 2022 12:34:26 -0400 (EDT) |
URL: <https://savannah.gnu.org/bugs/?62459> Summary: Severe memory leak when functions are nested Project: GNU Octave Submitted by: pierre5018 Submitted on: sam. 14 mai 2022 12:34:24 EDT Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: PIERRE LABRECHE Originator Email: Open/Closed: Open Release: 7.1.0 Discussion Lock: Any Operating System: Microsoft Windows _______________________________________________________ Details: Memory leaks when using nested functions. Had to shut down and reboot windows when using larger array dimension. Control-C would not abort script execution. See example below : function memory_leak_driver() for k = 1:10000 k f( rand(4000) ) ; endfor endfunction The misbehaving function "f" is defined as: function retval = f( p ) R = p*rand(1) ; f_blah = @( ) 1./ R ; function retval = g() retval = f_blah( ) ; endfunction retval = g() ; endfunction _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?62459> _______________________________________________ Message posté via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |