bugGNU Octave - Bugs: bug #49028, Selecting items from a struct...

 
 

bug #49028: Selecting items from a struct array without the first element produces garbage

Submitted by:  None
Submitted on:  Thu 08 Sep 2016 01:53:11 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Pekka PaalanenOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.2
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 08 Sep 2016 02:19:18 PM UTC, comment #2:

After discussion on IRC, closing as invalid.

Carnë Draug <carandraug>
Project Member
Thu 08 Sep 2016 02:14:55 PM UTC, comment #1:

The issue seems to be there on development version as well. The issue seems to be on logical indexing a struct array when one of the elements is empty:

I'm thinking this may not be a bug after all.

Carnë Draug <carandraug>
Project Member
Thu 08 Sep 2016 01:53:11 PM UTC, original submission:

See the attached script for an repeatable test case. I would expect it to print a series of 'B' characters, but it prints instead e.g.
ans = ACBBCBBCBBACABBBAACBACAABBBAAAAC

This happens only when the first element of the struct array is not set.

I wrote this on octave 3.8.2, but JordiGH on #octave said it is also happening on 4.0.3. He may or may not have taken a look at fixing it.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38449:  struct_array_nul_bug.m added by None (601B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -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
    Thu 08 Sep 2016 02:19:18 PM UTCcarandraugStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Thu 08 Sep 2016 01:53:11 PM UTCNoneAttached File-=>Added struct_array_nul_bug.m, #38449

    Back to the top


    Powered by Savane 3.1-cleanup1