segfault with eig(x)

View: New views
2 Messages — Rating Filter:   Alert me  

segfault with eig(x)

by Muhali :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I get a segfault when using eig(x), as follows:

octave:> whos x
Variables in the current scope:

  Attr Name        Size                     Bytes  Class
  ==== ====        ====                     =====  =====
       x         135x135                   291600  double

Total is 18225 elements using 291600 bytes

octave:> eig(x)
warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fb25893f710 (LWP 4531)]
warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

Array<std::complex<double> >::operator= (this=warning: (Internal error: pc 0x7fb256e407a0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

0x7fffd04e9190, a=@0x0) at Array.cc:88
88      rep = a.rep;
warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

Current language:  auto; currently c++
warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

(gdb) where
warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

#0  Array<std::complex<double> >::operator= (this=0x7fffd04e9190, a=@0x0) at Array.cc:88
#1  0x00007fb24d2abc0e in EIG::operator= (this=0x7fffd04e9190, a=@0x0) at ../liboctave/MArray.h:62
#2  0x00007fb24d2aa97a in Feig (args=<value optimized out>, nargout=0) at ./DLD-FUNCTIONS/eig.cc:208
#3  0x00007fb257f7d257 in octave_builtin::do_multi_index_op (this=0xc59f48, nargout=0, args=@0xd2fe60) at ov-builtin.cc:107
#4  0x00007fb257f7cbdb in octave_builtin::subsref (this=0xc59f48, type=@0x7fffd04ea020, idx=@0x7fffd04ea000, nargout=0) at ov-builtin.cc:55
#5  0x00007fb257f33b30 in octave_value::subsref (this=<value optimized out>, type=@0x21, idx=@0x0, nargout=13794720) at ov.cc:1061
#6  0x00007fb258052f1a in tree_index_expression::rvalue (this=0xd45910, nargout=0) at pt-idx.cc:387
#7  0x00007fb25805084c in tree_index_expression::rvalue1 (this=0xd45910, nargout=0) at pt-idx.cc:398
#8  0x00007fb258044834 in tree_evaluator::visit_statement (this=0x7fb258851678, stmt=<value optimized out>) at pt-eval.cc:695
#9  0x00007fb258042dd3 in tree_evaluator::visit_statement_list (this=0x7fb258851678, lst=@0x11ae400) at pt-eval.cc:731
#10 0x00007fb257e7205a in main_loop () at toplev.cc:572
#11 0x00007fb257e09fe5 in octave_main (argc=1, argv=0x7fffd04ea838, embedded=0) at octave.cc:877
#12 0x00007fb252b275c6 in __libc_start_main () from /lib/libc.so.6
#13 0x0000000000400789 in _start () at ../sysdeps/x86_64/elf/start.S:113
warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in symtab.)

----------------------------------------------------------------------
GNU Octave Version 3.2.2
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.30-1-amd64 #1 SMP Wed Jul 8 12:20:34 UTC 2009 x86_64

Re: segfault with eig(x)

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Aug 24, 2009 at 5:14 AM, Muhali<muhali@...> wrote:

>
> I get a segfault when using eig(x), as follows:
>
> octave:> whos x
> Variables in the current scope:
>
>  Attr Name        Size                     Bytes  Class
>  ==== ====        ====                     =====  =====
>       x         135x135                   291600  double
>
> Total is 18225 elements using 291600 bytes
>
> octave:> eig(x)
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fb25893f710 (LWP 4531)]
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> Array<std::complex<double> >::operator= (this=warning: (Internal error: pc
> 0x7fb256e407a0 in read in psymtab, but not in symtab.)
>
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> 0x7fffd04e9190, a=@0x0) at Array.cc:88
> 88            rep = a.rep;
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> Current language:  auto; currently c++
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> (gdb) where
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> #0  Array<std::complex<double> >::operator= (this=0x7fffd04e9190, a=@0x0) at
> Array.cc:88
> #1  0x00007fb24d2abc0e in EIG::operator= (this=0x7fffd04e9190, a=@0x0) at
> ../liboctave/MArray.h:62
> #2  0x00007fb24d2aa97a in Feig (args=<value optimized out>, nargout=0) at
> ./DLD-FUNCTIONS/eig.cc:208
> #3  0x00007fb257f7d257 in octave_builtin::do_multi_index_op (this=0xc59f48,
> nargout=0, args=@0xd2fe60) at ov-builtin.cc:107
> #4  0x00007fb257f7cbdb in octave_builtin::subsref (this=0xc59f48,
> type=@0x7fffd04ea020, idx=@0x7fffd04ea000, nargout=0) at ov-builtin.cc:55
> #5  0x00007fb257f33b30 in octave_value::subsref (this=<value optimized out>,
> type=@0x21, idx=@0x0, nargout=13794720) at ov.cc:1061
> #6  0x00007fb258052f1a in tree_index_expression::rvalue (this=0xd45910,
> nargout=0) at pt-idx.cc:387
> #7  0x00007fb25805084c in tree_index_expression::rvalue1 (this=0xd45910,
> nargout=0) at pt-idx.cc:398
> #8  0x00007fb258044834 in tree_evaluator::visit_statement
> (this=0x7fb258851678, stmt=<value optimized out>) at pt-eval.cc:695
> #9  0x00007fb258042dd3 in tree_evaluator::visit_statement_list
> (this=0x7fb258851678, lst=@0x11ae400) at pt-eval.cc:731
> #10 0x00007fb257e7205a in main_loop () at toplev.cc:572
> #11 0x00007fb257e09fe5 in octave_main (argc=1, argv=0x7fffd04ea838,
> embedded=0) at octave.cc:877
> #12 0x00007fb252b275c6 in __libc_start_main () from /lib/libc.so.6
> #13 0x0000000000400789 in _start () at ../sysdeps/x86_64/elf/start.S:113
> warning: (Internal error: pc 0x7fb256e407cf in read in psymtab, but not in
> symtab.)
>
> ----------------------------------------------------------------------
> GNU Octave Version 3.2.2
> GNU Octave License: GNU General Public License
> Operating System: Linux 2.6.30-1-amd64 #1 SMP Wed Jul 8 12:20:34 UTC 2009
> x86_64
>

A miscompilation, most likely. If you compiled Octave yourself, you'll
need to share the config info to get any further help.
Also, please read the manual on how to submit a useful bug report.

regards

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave