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

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

[Octave-bug-tracker] [bug #50014] Octave segmentation violation when dup


From: Rik
Subject: [Octave-bug-tracker] [bug #50014] Octave segmentation violation when duplicate nested functions exist
Date: Tue, 10 Jan 2017 17:08:26 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #2, bug #50014 (project octave):

Just created a backtrace to help debug things.  This is on the development
branch with cset f2456a17490c.


#0  std::local_Rb_tree_increment (__x=0x1e70370)
    at ../../../../../src/libstdc++-v3/src/c++98/tree.cc:71
#1  std::_Rb_tree_increment (__x=0x1e70370)
    at ../../../../../src/libstdc++-v3/src/c++98/tree.cc:91
#2  0x00007fdcc4bbe3cd in
std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
symbol_table::symbol_record> >::operator++ (this=0x7ffd64fc47e0)
    at /usr/include/c++/5/bits/stl_tree.h:205
#3  0x00007fdcc55f0049 in symbol_table::do_update_nest (this=0x1e6ff60)
    at libinterp/corefcn/symtab.cc:1618
#4  0x00007fdcc55f017d in symbol_table::do_update_nest (this=0x1e6f810)
    at libinterp/corefcn/symtab.cc:1646
#5  0x00007fdcc5131a30 in symbol_table::update_nest (scope=35)
    at libinterp/corefcn/symtab.h:1575
#6  0x00007fdcc51286f3 in octave::base_parser::finish_function (
    this=0x7ffd64fc4da0, ret_list=0x1dd3350, fcn=0x1e6aa10, lc=0x0, l=1, 
    c=1) at libinterp/parse-tree/oct-parse.yy:3293
#7  0x00007fdcc5121dc1 in octave_push_parse (yyps=0x1e6ec50, 
    yypushed_char=297, yypushed_val=0x7ffd64fc4c30, parser=...)
    at libinterp/parse-tree/oct-parse.yy:1457
#8  0x00007fdcc511d300 in octave_pull_parse (yyps=0x1e6ec50, parser=...)
    at libinterp/parse-tree/oct-parse.cc:2973
#9  0x00007fdcc512b317 in octave::parser::run (this=0x7ffd64fc4da0)
    at libinterp/parse-tree/oct-parse.yy:4039
#10 0x00007fdcc512ba08 in parse_fcn_file (
    full_file="/home/rik/wip/Projects_Mine/octave-dbg/testbug.m", 
    file="testbug", dispatch_type="", package_name="", 
    force_script=false, autoload=false, relative_lookup=true, warn_for="") at
libinterp/parse-tree/oct-parse.yy:4188
#11 0x00007fdcc512ce2f in load_fcn_from_file (file_name="./testbug.m",
dir_name=".", dispatch_type="", package_name="", fcn_name="", autoload=false)
    at libinterp/parse-tree/oct-parse.yy:4392                                 

#12 0x00007fdcc55ecfc2 in
symbol_table::fcn_info::fcn_info_rep::find_user_function (this=0x1b52130) at
libinterp/corefcn/symtab.cc:1049
#13 0x00007fdcc55eab77 in
symbol_table::fcn_info::fcn_info_rep::load_class_constructor (this=0x1b52130)
at libinterp/corefcn/symtab.cc:453
#14 0x00007fdcc55ebf0a in symbol_table::fcn_info::fcn_info_rep::xfind
(this=0x1b52130, args=..., local_funcs=true) at
libinterp/corefcn/symtab.cc:786
#15 0x00007fdcc55eb9fd in symbol_table::fcn_info::fcn_info_rep::find
(this=0x1b52130, args=..., local_funcs=true) at
libinterp/corefcn/symtab.cc:685
#16 0x00007fdcc55f1791 in symbol_table::fcn_info::find (this=0x7ffd64fc5590,
args=..., local_funcs=true) at libinterp/corefcn/symtab.h:993
#17 0x00007fdcc55ef19f in symbol_table::do_find (this=0x1b28bc0,
name="testbug", args=..., skip_variables=true, local_funcs=true)
    at libinterp/corefcn/symtab.cc:1465
#18 0x00007fdcc55edee7 in symbol_table::find (name="testbug", args=...,
skip_variables=true, local_funcs=true) at libinterp/corefcn/symtab.cc:1229
#19 0x00007fdcc55ee1d3 in symbol_table::find_function (name="testbug",
args=..., local_funcs=true) at libinterp/corefcn/symtab.cc:1265
#20 0x00007fdcc55e9653 in symbol_table::symbol_record::find (this=0x1d9bdf8,
args=...) at libinterp/corefcn/symtab.cc:145
#21 0x00007fdcc5154505 in tree_identifier::rvalue (this=0x1d9bdd0, nargout=0,
lvalue_list=0x0) at libinterp/parse-tree/pt-id.cc:66
#22 0x00007fdcc5133214 in tree_identifier::rvalue (this=0x1d9bdd0, nargout=0)
at libinterp/parse-tree/pt-id.h:117
#23 0x00007fdcc5154a1e in tree_identifier::rvalue1 (this=0x1d9bdd0, nargout=0)
at libinterp/parse-tree/pt-id.cc:124
#24 0x00007fdcc514f6c9 in octave::tree_evaluator::visit_statement
(this=0x19c7dc0, stmt=...) at libinterp/parse-tree/pt-eval.cc:685
#25 0x00007fdcc5171bea in tree_statement::accept (this=0x1d9bec0, tw=...) at
libinterp/parse-tree/pt-stmt.cc:187
#26 0x00007fdcc514f86d in octave::tree_evaluator::visit_statement_list
(this=0x19c7dc0, lst=...) at libinterp/parse-tree/pt-eval.cc:727
#27 0x00007fdcc5172650 in tree_statement_list::accept (this=0x1b4f910, tw=...)
at libinterp/parse-tree/pt-stmt.cc:322
#28 0x00007fdcc548af2c in octave::interpreter::main_loop (this=0x1a0f660) at
libinterp/corefcn/interpreter.cc:887
#29 0x00007fdcc548a70c in octave::interpreter::execute (this=0x1a0f660) at
libinterp/corefcn/interpreter.cc:755
#30 0x00007fdcc4bbad03 in octave::application::execute_interpreter
(this=0x7ffd64fc6040) at libinterp/octave.cc:382
#31 0x00007fdcc4bbaf6e in octave::cli_application::execute
(this=0x7ffd64fc6040) at libinterp/octave.cc:426
#32 0x0000000000401854 in main (argc=9, argv=0x7ffd64fc6298) at
src/main-cli.cc:90




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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