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

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

[Octave-bug-tracker] [bug #40218] Slow 24 byte memory leak in parser


From: Rik
Subject: [Octave-bug-tracker] [bug #40218] Slow 24 byte memory leak in parser
Date: Wed, 09 Oct 2013 15:16:53 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

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

                 Summary: Slow 24 byte memory leak in parser
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 09 Oct 2013 08:16:53 AM PDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: jwe
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The parser seems to repeatedly leak 24 bytes each time a function file is
parsed.  A representative loss summary from valgrind is:


==5818== 24 bytes in 1 blocks are definitely lost in loss record 94 of 586
==5818==    at 0x4C2B1C7: operator new(unsigned long) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==5818==    by 0x58B4BFC:
octave_base_parser::make_statement_list(tree_statement*) (oct-parse.yy:3170)
==5818==    by 0x58AA896: octave_push_parse(octave_pstate*, int, YYSTYPE
const*, octave_base_parser&) (oct-parse.yy:348)
==5818==    by 0x58A9CE2: octave_pull_parse(octave_pstate*,
octave_base_parser&) (oct-parse.cc:2099)
==5818==    by 0x58A9C5F: octave_parse(octave_base_parser&)
(oct-parse.cc:2067)
==5818==    by 0x58B4FAF: octave_parser::run() (oct-parse.yy:3235)
==5818==    by 0x58B535F: parse_fcn_file(std::string const&, std::string
const&, std::string const&, bool, bool, bool, bool, std::string const&)
(oct-parse.yy:3347)
==5818==    by 0x58B64BC: load_fcn_from_file(std::string const&, std::string
const&, std::string const&, std::string const&, bool) (oct-parse.yy:3529)
==5818==    by 0x5C54943:
symbol_table::fcn_info::fcn_info_rep::find_user_function() (symtab.cc:998)
==5818==    by 0x5C53C0F:
symbol_table::fcn_info::fcn_info_rep::xfind(octave_value_list const&, bool)
(symtab.cc:779)
==5818==    by 0x5C532BB:
symbol_table::fcn_info::fcn_info_rep::find(octave_value_list const&, bool)
(symtab.cc:616)
==5818==    by 0x5C581B5: symbol_table::fcn_info::find(octave_value_list
const&, bool) (symtab.h:988)
==5818==    by 0x5C563EC: symbol_table::do_find(std::string const&,
octave_value_list const&, bool, bool) (symtab.cc:1348)
==5818==    by 0x5C555F7: symbol_table::find(std::string const&,
octave_value_list const&, bool, bool) (symtab.cc:1149)
==5818==    by 0x5C5584B: symbol_table::find_function(std::string const&,
octave_value_list const&, bool) (symtab.cc:1184)
==5818==    by 0x5C5165D: symbol_table::symbol_record::find(octave_value_list
const&) const (symtab.cc:138)


The attached val.log contains everything from the valgrind run where the only
Octave commands issued were 'ls' and 'dir'.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 09 Oct 2013 08:16:53 AM PDT  Name: val.log  Size: 863kB   By: rik5

<http://savannah.gnu.org/bugs/download.php?file_id=29337>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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