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

 
 

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

Submitted by:  None
Submitted on:  Wed 03 May 2017 10:12:20 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: DAVE GOELOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 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.

 

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

Verified the fix on the default branch. Closing report.

Rik <rik5>
Project 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>
Project 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.

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

Rik <rik5>
Project 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 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 jwe (Posted a comment)
  • -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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 04 May 2017 03:57:05 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 04 May 2017 02:31:22 PM UTCjweStatusConfirmed=>Ready For Test
    Thu 04 May 2017 01:17:04 AM UTCrik5Item GroupNone=>Incorrect Result
      StatusNone=>Confirmed
      Release4.0.3=>dev

    Back to the top


    Powered by Savane 3.1-cleanup1