bugGNU Octave - Bugs: bug #33178, Wrong construction of a struct...

 
 

bug #33178: Wrong construction of a struct array

Submitted by:  None
Submitted on:  Thu 28 Apr 2011 04:36:28 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.4.0
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.

 

Tue 17 Apr 2012 05:20:09 PM UTC, comment #5:

I checked in the following change to the stable branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/82449d607d20

I think this fixes the immediate problem of incorrect filling for assignments that cause resizing to occur, so I'm closing this report.

We still need to solve the more general resize fill value problem, but that will have to be done on the default branch.

John W. Eaton <jwe>
Project Administrator
Tue 17 Apr 2012 02:54:10 AM UTC, comment #4:

I'm attaching a preliminary patch for this problem that applies to the default branch. I'm not sure that we can use this approach for fixing the problem on the stable branch as I think it will break binary compatibility in the 3.6.x release series.

(file #25667)

John W. Eaton <jwe>
Project Administrator
Mon 16 Apr 2012 10:45:30 PM UTC, comment #3:

This problem is a symptom of a bigger design problem with filling arrays when they are resized. I'm not sure what the proper fix is.

John W. Eaton <jwe>
Project Administrator
Fri 13 Apr 2012 05:28:53 AM UTC, comment #2:

Confirmed that this is a regression between 3.2.4 and 3.4.0.

Rik <rik5>
Project Administrator
Sun 01 May 2011 04:19:37 PM UTC, comment #1:

Confirmed on a recent tip of the development branch (9bfc37e699da). Additional information which may help is that the first and last elements of the struct array are correctly initialized but the range in between is not. For the example posted, A(1) and A(5) are okay while A(2:4) are not.

Rik <rik5>
Project Administrator
Thu 28 Apr 2011 04:36:28 PM UTC, original submission:

Consider the following construction of a struct array: the first and
the last elements are correctly defined, but the intermediate ones are
not.

version: 3.4.0
(I think that this used to work on some older version)

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25667:  diffs.txt added by jwe (23KiB - text/plain)

 

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
    Tue 17 Apr 2012 05:20:09 PM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 17 Apr 2012 02:54:10 AM UTCjweAttached File-=>Added diffs.txt, #25667
    Fri 13 Apr 2012 05:28:53 AM UTCrik5Item GroupNone=>Regression
    Sun 01 May 2011 04:19:37 PM UTCrik5CategoryNone=>Interpreter
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1