Occasional seg fault in make check at dispatch.cc
Ben Abbott
bpabbott at mac.com
Thu Feb 5 17:56:02 CST 2009
On Feb 5, 2009, at 1:51 PM, John W. Eaton wrote:
> On 5-Feb-2009, Ben Abbott wrote:
>
> | A fresh build (./autogen, ./configure, make, make check) today
> | produced no failures ... however a follow up "make check" produced
> the
> | seg-fault.
> |
> | So it would appear the problem remains.
>
> OK, can you please try the following?
>
> When running "make check", Octave prints the run-octave command that
> it is about to execute. It should look something like this:
>
> make -C test check
> make[2]: Entering directory `/scratch/jwe/build/octave/test'
> ../run-octave --norc --silent --no-history /home/jwe/src/octave/
> test/fntests.m /home/jwe/src/octave/test
>
> So instead of running this with Make, try
>
> cd test
> ../run-octave -g --norc --silent ...
>
> so that Octave runs under gdb. Then at the (gdb) prompt, type
>
> run
>
> and see if you can generate a segfault this way. If you can, then get
> a stack trace with
>
> where
>
> and post the result. Maybe it will give some clues.
>
> Thanks,
>
> jwe
The result was a rather long stream of info.
(gdb) where
#0 0x948b4d09 in __getcwd ()
#1 0x948b4844 in __private_getcwd ()
#2 0x948b47a4 in getcwd ()
#3 0x02410bb2 in octave_getcwd () at lo-sysdep.cc:65
#4 0x024132ab in octave_env::do_getcwd (this=0x311b790) at oct-env.cc:
397
#5 0x02414810 in octave_env::getcwd () at oct-env.cc:139
#6 0x013cbcb3 in load_path::dir_info::update (this=0xbf800638) at
load-path.cc:62
#7 0x013cc2cd in load_path::do_update (this=0x317a750) at load-
path.cc:794
#8 0x0152ed91 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at load-path.h:
86
#9 0x0152edc6 in octave_value::operator= () at ov.h:692
#10 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
[...]
#7097 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
#7098 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
#7099 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
#7100 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
#7101 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
#7102 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
[...]
#30701 0x0152edc6 in symbol_table::fcn_info::fcn_info_rep::find
(this=0x60d2b00, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:692
#30702 0x0152ef77 in symbol_table::fcn_info::find (this=0xbf8001ef,
args=0xbf8001ef, arg_names=@0xbf8001ef, evaluated_args=@0xbf8001ef,
args_evaluated=@0xbf8001ef) at symtab.cc:926
#30703 0x0152f12c in symbol_table::do_find (this=0x60d4d60,
name=@0xbfff6d28, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f,
skip_variables=true) at symtab.cc:1103
#30704 0x0152fcf0 in symbol_table::find (name=@0xbfff6d28,
args=0x60d72e0, arg_names=@0xbfff6ed0, evaluated_args=@0xbfff6de0,
args_evaluated=@0xbfff6f0f, skip_variables=true) at symtab.cc:940
#30705 0x0152fef6 in symbol_table::find_function (name=@0xbfff6d28,
args=0x60d72e0, arg_names=@0xbfff6ed0, evaluated_args=@0xbfff6de0,
args_evaluated=@0xbfff6f0f) at symtab.cc:969
#30706 0x01530e7e in ~basic_string [inlined] () at symtab.cc:118
#30707 0x01530e7e in ~basic_string [inlined] () at basic_string.h:472
#30708 0x01530e7e in symbol_table::symbol_record::find
(this=0x60d7588, args=0x60d72e0, arg_names=@0xbfff6ed0,
evaluated_args=@0xbfff6de0, args_evaluated=@0xbfff6f0f) at symtab.cc:786
#30709 0x017f6b31 in tree_identifier::do_lookup () at pt-id.h:295
#30710 0x017f6b31 in tree_index_expression::rvalue (this=0x60d75d0,
nargout=1) at pt-idx.cc:295
#30711 0x017f151f in tree_index_expression::rvalue1 (this=0x60d75d0,
nargout=-1082129937) at pt-idx.cc:393
#30712 0x017d6250 in tree_argument_list::convert_to_const_vector
(this=0x60d65d0, object=0x0) at pt-arg-list.cc:195
#30713 0x0152e1eb in symbol_table::fcn_info::fcn_info_rep::find
(this=0x35b7d60, args=0x60d65d0, arg_names=@0xbfff75d0,
evaluated_args=@0xbfff74e0, args_evaluated=@0xbfff760f) at symtab.cc:603
#30714 0x0152ef77 in symbol_table::fcn_info::find (this=0xbf8001ef,
args=0xbf8001ef, arg_names=@0xbf8001ef, evaluated_args=@0xbf8001ef,
args_evaluated=@0xbf8001ef) at symtab.cc:926
#30715 0x0152f12c in symbol_table::do_find (this=0x60d4d60,
name=@0xbfff7428, args=0x60d65d0, arg_names=@0xbfff75d0,
evaluated_args=@0xbfff74e0, args_evaluated=@0xbfff760f,
skip_variables=true) at symtab.cc:1103
#30716 0x0152fcf0 in symbol_table::find (name=@0xbfff7428,
args=0x60d65d0, arg_names=@0xbfff75d0, evaluated_args=@0xbfff74e0,
args_evaluated=@0xbfff760f, skip_variables=true) at symtab.cc:940
#30717 0x0152fef6 in symbol_table::find_function (name=@0xbfff7428,
args=0x60d65d0, arg_names=@0xbfff75d0, evaluated_args=@0xbfff74e0,
args_evaluated=@0xbfff760f) at symtab.cc:969
#30718 0x01530e7e in ~basic_string [inlined] () at symtab.cc:118
#30719 0x01530e7e in ~basic_string [inlined] () at basic_string.h:472
#30720 0x01530e7e in symbol_table::symbol_record::find
(this=0x60d25b8, args=0x60d65d0, arg_names=@0xbfff75d0,
evaluated_args=@0xbfff74e0, args_evaluated=@0xbfff760f) at symtab.cc:786
#30721 0x017f6b31 in tree_identifier::do_lookup () at pt-id.h:295
#30722 0x017f6b31 in tree_index_expression::rvalue (this=0x60d7900,
nargout=0) at pt-idx.cc:295
#30723 0x017f151f in tree_index_expression::rvalue1 (this=0x60d7900,
nargout=-1082129937) at pt-idx.cc:393
#30724 0x017e830b in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x60d79e0) at pt-eval.cc:693
#30725 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x60af740) at pt-eval.cc:729
#30726 0x0167881c in octave_user_function::do_multi_index_op
(this=0x904db4, nargout=0, args=@0x60d1f38) at ov-usr-fcn.cc:457
#30727 0x01674ad0 in octave_user_function::subsref (this=0x904db4,
type=@0xbfff7bd8, idx=@0xbfff7ba0, nargout=0) at ov-usr-fcn.cc:309
#30728 0x01620413 in octave_value::subsref (this=0xbfff7bb4,
type=@0xbfff7bd8, idx=@0xbfff7ba0, nargout=0) at ov.cc:1054
#30729 0x017f6d74 in tree_index_expression::rvalue (this=0x60d4a50,
nargout=0) at pt-idx.cc:382
#30730 0x014d7ec6 in eval_string (s=@0xbf8001ef, silent=false,
parse_status=@0xbfff7e18, nargout=0) at parse.y:3882
#30731 0x014d8669 in eval_string (arg=<value temporarily unavailable,
due to optimizations>, silent=false, parse_status=@0xbfff7e18,
nargout=0) at parse.y:3949
#30732 0x014db2b7 in ~octave_value [inlined] () at parse.y:3995
#30733 0x014db2b7 in ~octave_value [inlined] () at ov.h:286
#30734 0x014db2b7 in Feval (args=@0x60cf0a8, nargout=0) at parse.y:1685
#30735 0x0166e702 in octave_builtin::do_multi_index_op
(this=0x3885804, nargout=0, args=@0x60cf0a8) at ov-builtin.cc:107
#30736 0x0166dfa0 in octave_builtin::subsref (this=0x3885804,
type=@0xbfff81c8, idx=@0xbfff8190, nargout=0) at ov-builtin.cc:55
#30737 0x01620413 in octave_value::subsref (this=0xbfff81a4,
type=@0xbfff81c8, idx=@0xbfff8190, nargout=0) at ov.cc:1054
#30738 0x017f6d74 in tree_index_expression::rvalue (this=0x31c2df0,
nargout=0) at pt-idx.cc:382
#30739 0x017f151f in tree_index_expression::rvalue1 (this=0x31c2df0,
nargout=-1082129937) at pt-idx.cc:393
#30740 0x017e830b in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x31c2dc0) at pt-eval.cc:693
#30741 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x31c2a30) at pt-eval.cc:729
#30742 0x017e6fba in tree_evaluator::visit_try_catch_command
(this=0x1f16880, cmd=@0x31db2a0) at pt-eval.cc:878
#30743 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x31db2d0) at pt-eval.cc:667
#30744 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x31db2e0) at pt-eval.cc:729
#30745 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x31db320) at pt-eval.cc:667
#30746 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x3307730) at pt-eval.cc:729
#30747 0x017e5a4c in tree_evaluator::visit_simple_for_command
(this=0x1f16880, cmd=@0x31cd070) at pt-eval.cc:316
#30748 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x31cbe00) at pt-eval.cc:667
#30749 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x33305a0) at pt-eval.cc:729
#30750 0x0167881c in octave_user_function::do_multi_index_op
(this=0x9025a0, nargout=4, args=@0x609faa8) at ov-usr-fcn.cc:457
#30751 0x01674ad0 in octave_user_function::subsref (this=0x9025a0,
type=@0xbfff8b98, idx=@0xbfff8b60, nargout=4) at ov-usr-fcn.cc:309
#30752 0x01620413 in octave_value::subsref (this=0xbfff8b74,
type=@0xbfff8b98, idx=@0xbfff8b60, nargout=4) at ov.cc:1054
#30753 0x017f6d74 in tree_index_expression::rvalue (this=0x3332530,
nargout=4) at pt-idx.cc:382
#30754 0x017d8df5 in tree_multi_assignment::rvalue (this=0x3332620) at
pt-assign.cc:361
#30755 0x017d852f in tree_multi_assignment::rvalue1 (this=0x3332620,
nargout=-1082129937) at pt-assign.cc:316
#30756 0x017e830b in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x33325c0) at pt-eval.cc:693
#30757 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x33313b0) at pt-eval.cc:729
#30758 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x3333160) at pt-eval.cc:667
#30759 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x3330030) at pt-eval.cc:729
#30760 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x3333520) at pt-eval.cc:667
#30761 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x332f1b0) at pt-eval.cc:729
#30762 0x017e5a4c in tree_evaluator::visit_simple_for_command
(this=0x1f16880, cmd=@0x3333580) at pt-eval.cc:316
#30763 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x332f1c0) at pt-eval.cc:667
#30764 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x332bf40) at pt-eval.cc:729
#30765 0x0167881c in octave_user_function::do_multi_index_op
(this=0x902ec4, nargout=4, args=@0x3314848) at ov-usr-fcn.cc:457
#30766 0x01674ad0 in octave_user_function::subsref (this=0x902ec4,
type=@0xbfff9708, idx=@0xbfff96d0, nargout=4) at ov-usr-fcn.cc:309
#30767 0x01620413 in octave_value::subsref (this=0xbfff96e4,
type=@0xbfff9708, idx=@0xbfff96d0, nargout=4) at ov.cc:1054
#30768 0x017f6d74 in tree_index_expression::rvalue (this=0x332eb20,
nargout=4) at pt-idx.cc:382
#30769 0x017d8df5 in tree_multi_assignment::rvalue (this=0x332ec20) at
pt-assign.cc:361
#30770 0x017d852f in tree_multi_assignment::rvalue1 (this=0x332ec20,
nargout=-1082129937) at pt-assign.cc:316
#30771 0x017e830b in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x332eae0) at pt-eval.cc:693
#30772 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x332ec50) at pt-eval.cc:729
#30773 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x332f100) at pt-eval.cc:667
#30774 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x332d3b0) at pt-eval.cc:729
#30775 0x017e5a4c in tree_evaluator::visit_simple_for_command
(this=0x1f16880, cmd=@0x332f160) at pt-eval.cc:316
#30776 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x332caa0) at pt-eval.cc:667
#30777 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x332bf40) at pt-eval.cc:729
#30778 0x0167881c in octave_user_function::do_multi_index_op
(this=0x902ec4, nargout=4, args=@0x3309218) at ov-usr-fcn.cc:457
#30779 0x01674ad0 in octave_user_function::subsref (this=0x902ec4,
type=@0xbfffa1c8, idx=@0xbfffa190, nargout=4) at ov-usr-fcn.cc:309
#30780 0x01620413 in octave_value::subsref (this=0xbfffa1a4,
type=@0xbfffa1c8, idx=@0xbfffa190, nargout=4) at ov.cc:1054
#30781 0x017f6d74 in tree_index_expression::rvalue (this=0x333d780,
nargout=4) at pt-idx.cc:382
#30782 0x017d8df5 in tree_multi_assignment::rvalue (this=0x333d860) at
pt-assign.cc:361
#30783 0x017d852f in tree_multi_assignment::rvalue1 (this=0x333d860,
nargout=-1082129937) at pt-assign.cc:316
#30784 0x017e830b in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x333d770) at pt-eval.cc:693
#30785 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x333d890) at pt-eval.cc:729
#30786 0x017e5a4c in tree_evaluator::visit_simple_for_command
(this=0x1f16880, cmd=@0x333dd00) at pt-eval.cc:316
#30787 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x333cad0) at pt-eval.cc:667
#30788 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x333af70) at pt-eval.cc:729
#30789 0x017e6fba in tree_evaluator::visit_try_catch_command
(this=0x1f16880, cmd=@0x3343e10) at pt-eval.cc:878
#30790 0x017e83c1 in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x3344210) at pt-eval.cc:667
#30791 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x3313b50) at pt-eval.cc:729
#30792 0x01671e43 in octave_user_script::do_multi_index_op
(this=0x38a9a00, nargout=0, args=@0xbfffa9e4) at ov-usr-fcn.cc:134
#30793 0x0161dde9 in octave_value::do_multi_index_op (this=0xbf8001ef,
nargout=-1082129937, idx=@0xbf8001ef) at ov.cc:1108
#30794 0x017f0330 in tree_identifier::rvalue (this=0x319aa80,
nargout=0) at pt-id.cc:86
#30795 0x017ef31f in tree_identifier::rvalue1 (this=0x319aa80,
nargout=-1082129937) at pt-id.cc:107
#30796 0x017e830b in tree_evaluator::visit_statement (this=0x1f16880,
stmt=@0x31a6610) at pt-eval.cc:693
#30797 0x017e772f in tree_evaluator::visit_statement_list
(this=0x1f16880, lst=@0x3194280) at pt-eval.cc:729
#30798 0x0153913a in main_loop () at toplev.cc:559
#30799 0x014be304 in octave_main (argc=7, argv=0xbfffad50, embedded=0)
at octave.cc:857
#30800 0x00001ff0 in main (argc=-1082129937, argv=0xbf8001ef) at
main.c:35
#30801 0x00001f96 in start ()
Ben
More information about the Bug-octave
mailing list