bugGNU Octave - Bugs: bug #50934, Strange cell initialization for...

 
 

bug #50934: Strange cell initialization for out-of-memory conditions:

Submitter:  None
Submitted:  Wed 03 May 2017 10:12:20 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  DAVE GOEL Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Release:  Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 04 May 2017 03:57:05 PM UTC, comment #3: 

Verified the fix on the default branch.  Closing report.

Rik <rik5>
Group administrator
Thu 04 May 2017 02:31:22 PM UTC, comment #2: 

I checked in the following changeset on stable and merged with default:

http://hg.savannah.gnu.org/hgweb/octave/rev/0ada77ed24dd

John W. Eaton <jwe>
Group administrator
Thu 04 May 2017 01:17:04 AM UTC, comment #1: 

Confirmed.  And I moved the version up to the development branch since it is still present in the latest code.

It's clearly something specifically with cell.  An array function like zeros works correctly.


zeros (1e10,1)
error: out of memory or dimension too large for Octave's index type


The dimension that is too large, which should be triggering an exception and an error message, instead is getting set to 0.  For example:


b = cell (1e10, 2, 2)
b = {0x2x2 Cell Array}



Rik <rik5>
Group administrator
Wed 03 May 2017 10:12:20 PM UTC, original submission:  

octave:4> version
ans = 4.0.3

octave:5> a=cell(1e8,100);
error: out of memory or dimension too large for Octave's index type

octave:5> b = cell(1e10,1);
octave:6> b
b = {}(0x1)

b is the same size as a, just shaped different.
It should have reported out-of-memory instead.


(Confirmed by THE JWE HIMSELF @ irc)

Anonymous

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by None (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-05-04 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2017-05-04 jwe StatusConfirmed Ready For Test
    2017-05-04 rik5 Item GroupNone Incorrect Result
        StatusNone Confirmed
        Release4.0.3 dev

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code