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

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

[Octave-bug-tracker] [bug #40229] Memory leak in evalin


From: Rik
Subject: [Octave-bug-tracker] [bug #40229] Memory leak in evalin
Date: Thu, 10 Oct 2013 02:36:51 +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/?40229>

                 Summary: Memory leak in evalin
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 09 Oct 2013 07:36:50 PM PDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

>From valgrind,


==16089== 906 (24 direct, 882 indirect) bytes in 1 blocks are definitely lost
in loss record 1,001 of 1,172
==16089==    at 0x4C2B1C7: operator new(unsigned long) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==16089==    by 0x57B5F36:
__gnu_cxx::new_allocator<std::_List_node<tree_argument_list*>
>::allocate(unsigned long, void const*) (new_allocator.h:92)
==16089==    by 0x57B5AC9: std::_List_base<tree_argument_list*,
std::allocator<tree_argument_list*> >::_M_get_node() (stl_list.h:327)
==16089==    by 0x57B54FA: std::list<tree_argument_list*,
std::allocator<tree_argument_list*> >::_M_create_node(tree_argument_list*
const&) (stl_list.h:473)
==16089==    by 0x57B4CB4: std::list<tree_argument_list*,
std::allocator<tree_argument_list*>
>::_M_insert(std::_List_iterator<tree_argument_list*>, tree_argument_list*
const&) (stl_list.h:1515)
==16089==    by 0x57B3E13: std::list<tree_argument_list*,
std::allocator<tree_argument_list*> >::push_back(tree_argument_list* const&)
(stl_list.h:988)
==16089==    by 0x586494A:
octave_base_list<tree_argument_list*>::append(tree_argument_list* const&)
(base-list.h:103)
==16089==    by 0x5869400:
tree_array_list::tree_array_list(tree_argument_list*, int, int)
(pt-array-list.h:46)
==16089==    by 0x588570B: tree_matrix::tree_matrix(tree_argument_list*, int,
int) (pt-mat.h:48)
==16089==    by 0x58AAD6E: octave_push_parse(octave_pstate*, int, YYSTYPE
const*, octave_base_parser&) (oct-parse.yy:425)
==16089==    by 0x58A9CE2: octave_pull_parse(octave_pstate*,
octave_base_parser&) (oct-parse.cc:2099)
==16089==    by 0x58A9C5F: octave_parse(octave_base_parser&)
(oct-parse.cc:2067)
==16089==    by 0x58B4FDB: octave_parser::run() (oct-parse.yy:3245)
==16089==    by 0x58B86C0: eval_string(std::string const&, bool, int&, int)
(oct-parse.yy:4094)
==16089==    by 0x58B8B9E: eval_string(octave_value const&, bool, int&, int)
(oct-parse.yy:4179)
==16089==    by 0x58B9267: Fevalin(octave_value_list const&, int)
(oct-parse.yy:4401)
==16089==    by 0x57673B0: octave_builtin::do_multi_index_op(int,
octave_value_list const&, std::list<octave_lvalue,
std::allocator<octave_lvalue> > const*) (ov-builtin.cc:131)
==16089==    by 0x5767057: octave_builtin::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int,
std::list<octave_lvalue, std::allocator<octave_lvalue> > const*)
(ov-builtin.cc:64)
==16089==    by 0x5766F45: octave_builtin::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int)
(ov-builtin.cc:47)
==16089==    by 0x580DBC7: octave_value::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int)
(ov.cc:1269)
==16089==    by 0x580DC6F: octave_value::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int,
std::list<octave_lvalue, std::allocator<octave_lvalue> > const*) (ov.cc:1280)
==16089==    by 0x587696E: tree_index_expression::rvalue(int,
std::list<octave_lvalue, std::allocator<octave_lvalue> > const*)
(pt-idx.cc:414)
==16089==    by 0x58760C6: tree_index_expression::rvalue(int) (pt-idx.cc:284)
==16089==    by 0x5876BC5: tree_index_expression::rvalue1(int)
(pt-idx.cc:425)
==16089==    by 0x587016A: tree_evaluator::visit_statement(tree_statement&)
(pt-eval.cc:747)
==16089==    by 0x5890AD3: tree_statement::accept(tree_walker&)
(pt-stmt.cc:178)
==16089==    by 0x58703D5:
tree_evaluator::visit_statement_list(tree_statement_list&) (pt-eval.cc:797)
==16089==    by 0x58910F3: tree_statement_list::accept(tree_walker&)
(pt-stmt.cc:291)
==16089==    by 0x58707C1:
tree_evaluator::visit_try_catch_command(tree_try_catch_command&)
(pt-eval.cc:910)
==16089==    by 0x587221B: tree_try_catch_command::accept(tree_walker&)
(pt-except.cc:72)
==16089==    by 0x5870083: tree_evaluator::visit_statement(tree_statement&)
(pt-eval.cc:721)
==16089==    by 0x5890AD3: tree_statement::accept(tree_walker&)
(pt-stmt.cc:178)
==16089==    by 0x58703D5:
tree_evaluator::visit_statement_list(tree_statement_list&) (pt-eval.cc:797)
==16089==    by 0x58910F3: tree_statement_list::accept(tree_walker&)
(pt-stmt.cc:291)
==16089==    by 0x586FBE4:
tree_evaluator::visit_if_command_list(tree_if_command_list&) (pt-eval.cc:588)
==16089==    by 0x588E80F: tree_if_command_list::accept(tree_walker&)
(pt-select.cc:83)
==16089==    by 0x586FA77: tree_evaluator::visit_if_command(tree_if_command&)
(pt-eval.cc:563)
==16089==    by 0x588EA2B: tree_if_command::accept(tree_walker&)
(pt-select.cc:108)
==16089==    by 0x5870083: tree_evaluator::visit_statement(tree_statement&)
(pt-eval.cc:721)
==16089==    by 0x5890AD3: tree_statement::accept(tree_walker&)
(pt-stmt.cc:178)
==16089==    by 0x58703D5:
tree_evaluator::visit_statement_list(tree_statement_list&) (pt-eval.cc:797)
==16089==    by 0x58910F3: tree_statement_list::accept(tree_walker&)
(pt-stmt.cc:291)
==16089==    by 0x58033B6: octave_user_function::do_multi_index_op(int,
octave_value_list const&, std::list<octave_lvalue,
std::allocator<octave_lvalue> > const*) (ov-usr-fcn.cc:588)
==16089==    by 0x5802CA5: octave_user_function::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int,
std::list<octave_lvalue, std::allocator<octave_lvalue> > const*)
(ov-usr-fcn.cc:437)
==16089==    by 0x5802B93: octave_user_function::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int)
(ov-usr-fcn.cc:420)
==16089==    by 0x580DBC7: octave_value::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int)
(ov.cc:1269)
==16089==    by 0x580DC6F: octave_value::subsref(std::string const&,
std::list<octave_value_list, std::allocator<octave_value_list> > const&, int,
std::list<octave_lvalue, std::allocator<octave_lvalue> > const*) (ov.cc:1280)
==16089==    by 0x587696E: tree_index_expression::rvalue(int,
std::list<octave_lvalue, std::allocator<octave_lvalue> > const*)
(pt-idx.cc:414)
==16089==    by 0x58760C6: tree_index_expression::rvalue(int) (pt-idx.cc:284)
==16089==    by 0x5876BC5: tree_index_expression::rvalue1(int)
(pt-idx.cc:425)






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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