[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62459] Severe memory leak when functions are
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested |
Date: |
Mon, 16 May 2022 17:27:04 -0400 (EDT) |
Follow-up Comment #4, bug #62459 (project octave):
I also did some minor reworking of the test case which are attached as
memory_leak_script.m
for k = 0:10
mem = memory();
printf ("iter: %d, mem_used: %g\n", k, mem.mem_used_octave);
fflush (stdout);
leak_main_fcn (rand (4000));
endfor
printf ("------------------------------------------------------\n");
mem = memory();
printf ("iter: %d, mem_used: %g\n", k, mem.mem_used_octave);
and leak_main_fcn.m
function retval = leak_main_fcn (p)
R = p*rand(1);
leak_anon_fcn = @() 1./ R;
function retval = leak_nested_fcn ()
retval = leak_anon_fcn () ;
endfunction
retval = leak_nested_fcn ();
endfunction
I also confirm increasing memory leakage with each function invocation and
that "clear all" does not remedy the situation.
(file #53214, file #53215)
_______________________________________________________
Additional Item Attachment:
File name: memory_leak_script.m Size:0 KB
<https://file.savannah.gnu.org/file/memory_leak_script.m?file_id=53214>
File name: leak_main_fcn.m Size:0 KB
<https://file.savannah.gnu.org/file/leak_main_fcn.m?file_id=53215>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62459>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, PIERRE LABRECHE, 2022/05/14
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Arun Giridhar, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Arun Giridhar, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Arun Giridhar, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested,
Rik <=
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Rik, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Rik, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Rik, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Rik, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Arun Giridhar, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Arun Giridhar, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Arun Giridhar, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, John W. Eaton, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, Rik, 2022/05/17
- [Octave-bug-tracker] [bug #62459] Severe memory leak when functions are nested, John W. Eaton, 2022/05/24