bugGNU Octave - Bugs: bug #50575, Integer overflow in whos when...

 
 

bug #50575: Integer overflow in whos when calculating total elements in matrix

Submitted by:  None
Submitted on:  Sat 18 Mar 2017 12:22:04 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Mark YagnatinskyOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.1
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.

 

Sat 18 Mar 2017 05:28:35 PM UTC, comment #2:

This has been a problem in the past, but has already been fixed on the development branch (which will eventually become release 4.4).

To access the fix you will need to build from the development sources available in a Mercurial repository, or wait for the 4.4 release. The development version is actually very stable and I use it every day.

Rik <rik5>
Project Administrator
Sat 18 Mar 2017 12:28:59 PM UTC, comment #1:

Also, numel seems to have a similar issue.

Anonymous
Sat 18 Mar 2017 12:22:04 PM UTC, original submission:

On Ubuntu 14.04, the following occurs; worth noting that
46340^2 < 2^31 < 46341^2. Might also be worth checking if the bytes calculation is correct; I can't seem to allocate a matrix big enough to test this: magic(3e4) fails for me.

octave:1> eye(46340);whos;eye(46341);whos
Variables in the current scope:

Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 46340x46340 370720 double

Total is 2147395600 elements using 370720 bytes

Variables in the current scope:

Attr Name Size Bytes Class
==== ==== ==== ===== =====
ans 46341x46341 370728 double

Total is 18446744071562072601 elements using 370728 bytes

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 18 Mar 2017 05:28:35 PM UTCrik5CategoryNone=>Interpreter
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1