[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33216] cell2struct does not allow to create a

From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #33216] cell2struct does not allow to create an empty struct
Date: Wed, 09 May 2012 06:24:34 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110109 Lakechicken/3.6.13

Update of bug #33216 (project octave):

                  Status:               Confirmed => In Progress            
             Assigned to:                    None => jordigh                
                 Release:                   3.4.0 => 3.6.1                  
        Operating System:                  Mac OS => Any                    


Follow-up Comment #6:

Happy belated birthday, bug #33216

This is a very, very corner case. I'd be surprised if anyone other than Jochen
Weber has ever run into this.

The issue is that dim_vector::redim will pad with 0 instead of 1 if all of the
dimensions of the dim_vector are 0. When you do cell(0,0,1), this in fact is
equivalent to cell(0,0) since singleton dimensions are chopped, so it's a cell
with all zero dimension vector. The rest of the cell2struct code assumes redim
will pad with ones, but in this case it won't. When this assumption breaks in
the assertion, you get a SIGABRT or whatever the OS in question does with
failed assertions.

I'm working on a fix.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]