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

 
 

bug #37199: dot() segfaults with integers

Submitted by:  Carnë Draug <carandraug>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.4