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

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

[Octave-bug-tracker] [bug #34431] process memory grows without bounds w/


From: anonymous
Subject: [Octave-bug-tracker] [bug #34431] process memory grows without bounds w/repeated .oct calls
Date: Thu, 29 Sep 2011 02:47:18 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Ubuntu/10.10 Chromium/12.0.742.112 Chrome/12.0.742.112 Safari/534.30

URL:
  <http://savannah.gnu.org/bugs/?34431>

                 Summary: process memory grows without bounds w/repeated .oct
calls
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 29 Sep 2011 02:47:16 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Dirk
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.2
        Operating System: Any

    _______________________________________________________

Details:

Repeated .oct file calls causes octave process to accumulate memory and
(eventually) crash, on both a Dell M4400 Win7 using v3.2 sourceforge binary
and Toshiba Satellite Ubuntu 10/v3.4.2 compiled from source. 



string = [ ...
  "\n" '#include <octave/oct.h>' ...
  "\n" 'DEFUN_DLD (helloworld, args, nargout, "Hello World Help String")' ...
  "\n" '{' ...
  "\n\t" 'int nargin = args.length ();' ...
  "\n\t" 'octave_stdout << "Hello World has " << nargin' ...
  "\n\t" '   << " input arguments and "' ...
  "\n\t" '<< nargout << " output arguments.\n";' ...
  "\n\t" 'return octave_value_list ();' ...
  "\n" '}' ...
  "\n"
  ];

fid = fopen('helloworld.cc', 'w');
fputs(fid, string);
fclose(fid);

mkoctfile helloworld.cc

for (i=1:1000000000)  % set = 1 billion --> crash
  helloworld;
end




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 29 Sep 2011 02:47:16 AM UTC  Name: OctaveMemUseTest.m  Size: 604B  
By: None
thanks very much for this great tool! 
<http://savannah.gnu.org/bugs/download.php?file_id=24041>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34431>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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