octave-maintainers
[Top][All Lists]
Advanced

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

Re: compiling development sources


From: Carlo de Falco
Subject: Re: compiling development sources
Date: Wed, 10 Feb 2010 18:52:56 +0100


On 10 Feb 2010, at 18:48, Carlo de Falco wrote:


On 10 Feb 2010, at 18:46, John W. Eaton wrote:

OK, then try running Octave with

./run-octave -g

then at the (gdb) prompt, type "run", then at the Octave prompt, cd to
the src/DLD-FUNCTIONS directory and type "test lu".  That should
result in the same segfault and you should be able to get information
about where the crash happens and examine the variables in scope at
the time of the crash.

jwe


>> cd src/
>> cd DLD-FUNCTIONS/
>> test lu
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x9b12d1e0
get_dispatch_type (address@hidden, address@hidden) at symtab.cc:528
528                 btyp = sup_table[btyp][args(i).builtin_type ()];
(gdb)

c.

and here's the backtrace

(gdb) backtrace
#0 get_dispatch_type (address@hidden, address@hidden) at symtab.cc:528
#1  0x017bee44 in get_dispatch_type (address@hidden) at symtab.cc:544
#2 0x017c335f in symbol_table::fcn_info::fcn_info_rep::xfind (this=0x39f4870, address@hidden, local_funcs=true) at symtab.cc:692
#3  0x017c3b06 in octave_value::is_defined () at ov.h:565
#4 0x017c3b06 in symbol_table::fcn_info::fcn_info_rep::find (this=0x39f4870, address@hidden, local_funcs=true) at symtab.cc:567
#5  0x017c5dbd in symbol_table::fcn_info::find () at symtab.h:113
#6 0x017c5dbd in symbol_table::symbol_record::find (this=0x1, address@hidden) at symtab.cc:113
#7  0x01aa2fe7 in tree_identifier::do_lookup () at symtab.h:91
#8 0x01aa2fe7 in tree_index_expression::rvalue (this=0x3a01330, nargout=0) at pt-id.h:307 #9 0x01a9ee2a in tree_index_expression::rvalue1 (this=0x3a01330, nargout=0) at pt-idx.cc:412 #10 0x01a8ec4b in tree_evaluator::visit_statement (this=0x23f62c0, address@hidden) at pt-eval.cc:718 #11 0x01a90b5f in tree_evaluator::visit_statement_list (this=0x23f62c0, address@hidden) at pt-eval.cc:754 #12 0x0198d0e7 in octave_user_function::do_multi_index_op (this=0x853100, nargout=0, address@hidden) at ov-usr-fcn.cc:427 #13 0x01986ecb in octave_user_function::subsref (this=0x853100, address@hidden, address@hidden, nargout=0) at ov-usr-fcn.cc:295 #14 0x019a87bd in octave_value::subsref (this=0xbffec150, address@hidden, address@hidden, nargout=0) at ov.cc:1174 #15 0x01aa3390 in tree_index_expression::rvalue (this=0x39bddc0, nargout=0) at pt-idx.cc:401 #16 0x016dc565 in eval_string (address@hidden, silent=false, address@hidden, nargout=0) at oct-parse.yy:4251 #17 0x016dd076 in eval_string (arg=<value temporarily unavailable, due to optimizations>, silent=false, address@hidden, nargout=0) at oct-parse.yy:4308 #18 0x016dde35 in Feval (address@hidden, nargout=0) at oct-parse.yy: 4354 #19 0x0187420e in octave_builtin::do_multi_index_op (this=0x407bd00, nargout=0, address@hidden) at ov-builtin.cc:107 #20 0x01872a49 in octave_builtin::subsref (this=0x407bd00, address@hidden, address@hidden, nargout=0) at ov-builtin.cc:55 #21 0x019a87bd in octave_value::subsref (this=0xbffec860, address@hidden, address@hidden, nargout=0) at ov.cc:1174 #22 0x01aa3390 in tree_index_expression::rvalue (this=0x39e0aa0, nargout=0) at pt-idx.cc:401 #23 0x01a9ee2a in tree_index_expression::rvalue1 (this=0x39e0aa0, nargout=0) at pt-idx.cc:412 #24 0x01a8ec4b in tree_evaluator::visit_statement (this=0x23f62c0, address@hidden) at pt-eval.cc:718 #25 0x01a90b5f in tree_evaluator::visit_statement_list (this=0x23f62c0, address@hidden) at pt-eval.cc:754 #26 0x01a94930 in tree_evaluator::visit_try_catch_command (this=0x23f62c0, address@hidden) at pt-eval.cc:867 #27 0x01a8ecff in tree_evaluator::visit_statement (this=0x23f62c0, address@hidden) at pt-eval.cc:689 #28 0x01a90b5f in tree_evaluator::visit_statement_list (this=0x23f62c0, address@hidden) at pt-eval.cc:754 #29 0x01a8ecff in tree_evaluator::visit_statement (this=0x23f62c0, address@hidden) at pt-eval.cc:689 #30 0x01a90b5f in tree_evaluator::visit_statement_list (this=0x23f62c0, address@hidden) at pt-eval.cc:754 #31 0x01a8f99d in tree_evaluator::visit_simple_for_command (this=0x23f62c0, address@hidden) at pt-eval.cc:345 #32 0x01a8ecff in tree_evaluator::visit_statement (this=0x23f62c0, address@hidden) at pt-eval.cc:689 #33 0x01a90b5f in tree_evaluator::visit_statement_list (this=0x23f62c0, address@hidden) at pt-eval.cc:754 #34 0x0198d0e7 in octave_user_function::do_multi_index_op (this=0x852da0, nargout=0, address@hidden) at ov-usr-fcn.cc:427 #35 0x01986ecb in octave_user_function::subsref (this=0x852da0, address@hidden, address@hidden, nargout=0) at ov-usr-fcn.cc:295 #36 0x019a87bd in octave_value::subsref (this=0xbffed260, address@hidden, address@hidden, nargout=0) at ov.cc:1174 #37 0x01aa3390 in tree_index_expression::rvalue (this=0x990b30, nargout=0) at pt-idx.cc:401 #38 0x01a9ee2a in tree_index_expression::rvalue1 (this=0x990b30, nargout=0) at pt-idx.cc:412 #39 0x01a8ec4b in tree_evaluator::visit_statement (this=0x23f62c0, address@hidden) at pt-eval.cc:718 #40 0x01a90b5f in tree_evaluator::visit_statement_list (this=0x23f62c0, address@hidden) at pt-eval.cc:754
#41 0x017e4ef9 in main_loop () at toplev.cc:575
#42 0x0176db51 in octave_main (argc=6, argv=0xbffed510, embedded=0) at octave.cc:868
#43 0x00001ff0 in main (argc=0, argv=0x0) at main.c:35

how do I examine variables in memory at the time of the segfault?
c.



reply via email to

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