bugGNU Octave - Bugs: bug #31869, Segfault on real with complex...

 
 

bug #31869: Segfault on real with complex matrix multiplication

Submitter:  Judd Storrs <judd>
Submitted:  Mon 13 Dec 2010 10:41:17 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 14 Dec 2010 02:32:34 PM UTC, comment #2: 

Thank you. That works perfectly.

Judd Storrs <judd>
Tue 14 Dec 2010 02:10:54 AM UTC, comment #1: 
John W. Eaton <jwe>
Group administrator
Mon 13 Dec 2010 10:41:17 PM UTC, original submission:  

On a recent tip [Mon Dec 13 11350:f6d15ae003b8] the following matrix multiplication segfaults:

zeros(10,1) * complex(0, 1:10)

Octave 2.2.3, 3.0.1 do not have this problem.


--judd




judd@cuneus:/data/projects/development/octave/octave$ gdb octave
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/octave...done.
(gdb) run
Starting program: /usr/local/bin/octave
[Thread debugging using libthread_db enabled]
GNU Octave, version 3.3.54+
Copyright (C) 2010 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-unknown-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

octave:1> zeros(10,1) * complex(0, 1:10)

Program received signal SIGSEGV, Segmentation fault.
operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
3671            return m * ComplexMatrix (a);
(gdb) bt
#0  operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#1  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#2  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#3  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#4  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#5  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#6  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#7  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#8  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#9  0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
....
....
#46781 0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#46782 0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#46783 0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#46784 0x00007ffff6602d1f in operator* (m=..., a=...) at ../../octave/liboctave/CMatrix.cc:3671
#46785 0x00007ffff77f1844 in oct_binop_mul (a1=<value optimized out>, a2=<value optimized out>) at ../../octave/src/OPERATORS/op-m-cm.cc:50
#46786 0x00007ffff7569693 in do_binary_op (op=octave_value::op_mul, v1=..., v2=...) at ../../octave/src/ov.cc:1894
#46787 0x00007ffff75f87b2 in tree_binary_expression::rvalue1 (this=0xb09ac0) at ../../octave/src/pt-binop.cc:124
#46788 0x00007ffff76058da in tree_evaluator::visit_statement (this=<value optimized out>, stmt=<value optimized out>) at ../../octave/src/pt-eval.cc:737
#46789 0x00007ffff7604b28 in tree_evaluator::visit_statement_list (this=0x7ffff7ddb418, lst=...) at ../../octave/src/pt-eval.cc:773
#46790 0x00007ffff743394f in main_loop () at ../../octave/src/toplev.cc:574
#46791 0x00007ffff73e0fb8 in octave_main (argc=1, argv=0x7fffffffe2a8, embedded=<value optimized out>) at ../../octave/src/octave.cc:896
#46792 0x00007ffff0342c4d in __libc_start_main () from /lib/libc.so.6
#46793 0x00000000004007a9 in _start ()


Judd Storrs <judd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by judd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-14 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code