bugGNU Octave - Bugs: bug #37199, dot() segfaults with integers

 
 

bug #37199: dot() segfaults with integers

Submitter:  Carnë Draug <carandraug>
Submitted:  Mon 27 Aug 2012 01:19:17 AM UTC
   
 
Category:  Libraries 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
   

Mon 27 Aug 2012 02:09:48 AM UTC, comment #1: 

It looks like that for the integer case, there is an out of bounds access to the third argument of dot. See
http://hg.savannah.gnu.org/hgweb/octave/rev/a38d5ed5b3d8

Do we also want to apply this change to stable?

Max Brister <fisheater>
Mon 27 Aug 2012 01:19:17 AM UTC, original submission:  

Hi

the function doesn't seem to like integers and segfaults when presented with them:


octave:1> a = int8 (randi (255, 10, 10));
octave:2> dot (a, a)
panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault


I can reproduce this with uint and int8/16/32/64. Also, it's enough for one of the entries to be of the integer classes, the following also segfaults:


octave:1> a = int8 (randi (255, 10, 10));
octave:2> dot (double (a), a)
panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault


Carnë

Carnë Draug <carandraug>
Group Member

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by fisheater (Posted a comment)
  • -email is unavailable- added by carandraug (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-05 mtmiller Dependencies- bugs #39952 is dependent
    2012-08-27 fisheater StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code