* John W. Eaton <j...@octave.org> [2009-06-11 15:42]: > Did you compile the simpler program with the same options used to > build Octave?
Probably not. > Can you run Octave under gdb and find where it hangs, either by > running > > log2 (complex (0, inf)) > > and interrupting it when the hang happens and getting a stack trace, > or by stepping through the log2 function (and the functions it calls) > to find where it hangs? When I run it through "./run-octave -g", the command above does not hang, but gives immediately this, even when I set a breakpoint at log2: octave:1> log2 (complex (0, inf)) Program received signal SIGBUS, Bus error. [Switching to Thread 0x2aad4d80 (LWP 11231)] 0x2e17ae24 in std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_float<double> () from /usr/lib/libstdc++.so.6 Here is the stack: (gdb) bt #0 0x2e17ae24 in std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_float<double> () from /usr/lib/libstdc++.so.6 #1 0x2e17b048 in std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::do_put () from /usr/lib/libstdc++.so.6 #2 0x2e18fd44 in std::ostream::_M_insert<double> () from /usr/lib/libstdc++.so.6 #3 0x2b04e65c in operator<< (o...@0x4328b0, pff=<value optimized out>) at /usr/include/c++/4.3/ostream:214 #4 0x2b054160 in pr_any_float (fmt=0x2bac0d40, o...@0x4328b0, d=2.2661800709135971, fw=0) at pr-output.cc:1394 #5 0x2b055ca4 in pr_complex (o...@0x4328b0, c=<value optimized out>, r_fw=<value optimized out>, i_fw=0, scale=<value optimized out>) at pr-output.cc:1412 #6 0x2b057a98 in octave_print_internal (o...@0x4328b0, c...@0x455cc8) at pr-output.cc:1958 #7 0x2b17d504 in octave_base_scalar<std::complex<double> >::print (this=0x2e1fcd60, o...@0x20, pr_as_read_syntax=<value optimized out>) at ov-base-scalar.cc:121 #8 0x2b114d14 in octave_base_value::print_with_name (this=0x455cc0, output_b...@0x4328b0, name=<value optimized out>, print_padding=true) at ov-base.cc:358 #9 0x2b0d1450 in bind_ans (v...@0x7faa61a8, print=true) at ov.h:961 #10 0x2b36a1a0 in tree_evaluator::visit_statement (this=0x2bac17dc, stmt=<value optimized out>) at pt-eval.cc:698 #11 0x2b366174 in tree_evaluator::visit_statement_list (this=0x2bac17dc, l...@0x595ca0) at pt-eval.cc:731 #12 0x2b0bba84 in main_loop () at toplev.cc:570 #13 0x2b02bd1c in octave_main (argc=6, argv=0x7faa6544, embedded=0) at octave.cc:878 #14 0x2e266bac in __libc_start_main () from /lib/libc.so.6 #15 0x004009e8 in _ftext () -- Rafael -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org