bugGNU Octave - Bugs: bug #40429, struct array in MEX file

 
 

bug #40429: struct array in MEX file

Submitted by:  Guillaume <gyom>
Submitted on:  Wed 30 Oct 2013 07:08:01 PM UTC  
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  John W. Eaton <jwe>
Originator Name:  Guillaume Open/Closed:  Closed
Release:  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.

 

( Jump to the original submission)

Thu 31 Oct 2013 07:29:40 PM UTC, comment #9:

Sorry about the confusion with pushing the patch...

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Thu 31 Oct 2013 07:13:52 PM UTC, comment #8:

It works fine for me now.
Many, many thanks for your quick help.

Guillaume <gyom>
Thu 31 Oct 2013 06:24:53 PM UTC, comment #7:

Argh, sorry, it really is there now.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Thu 31 Oct 2013 05:41:33 PM UTC, comment #6:

I might be too impatient but I still don't see the changeset on savannah...

Guillaume <gyom>
Thu 31 Oct 2013 05:29:46 PM UTC, comment #5:

Oops, sorry, I forgot to push the changeset. It's on savannah now. Could you please update and try again?

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Thu 31 Oct 2013 04:44:44 PM UTC, comment #4:

My hg id is 0a887758d1cc.
That's the most recent I can see here:
http://hg.savannah.gnu.org/hgweb/octave/shortlog/
(note that I am compiling in the source tree).

Guillaume <gyom>
Thu 31 Oct 2013 04:37:44 PM UTC, comment #3:

What is your hg id? I'm able to build with --disable-gui. I'm currently at this changeset:

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Thu 31 Oct 2013 12:09:23 PM UTC, comment #2:

Many thanks for this.

I haven't been able to test it yet as I have compilation problems with the latest version:

It is related to this:
https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2013-October/037125.html
but the changeset does not fix it for me.
I compile with --disable-gui.

Guillaume <gyom>
Wed 30 Oct 2013 11:08:10 PM UTC, comment #1:

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/6da521da1c70

It seems to fix the problem for me, but I'll wait for verification before closing this report.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Wed 30 Oct 2013 07:08:01 PM UTC, original submission:

I have a MEX file that works fine on MATLAB but not with Octave. I managed to minimise the code to illustrate the problem, see teststruct.c attached.

After compilation, with MATLAB:

while with Octave:

If any of the commented line is used instead of the dynamic allocation then it runs fine.

My apologies if the problem is with my code and not Octave but I am puzzled because of the difference of behaviour between Octave and MATLAB.

Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #29510:  teststruct.c added by gyom (484B - text/x-csrc)

 

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 gyom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-31 jwe StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2013-10-30 jwe Item GroupOther => Incorrect Result
        StatusNone => Ready For Test
        Assigned toNone => jwe
    2013-10-30 gyom Attached File- => Added teststruct.c, #29510

    Back to the top


    Powered by Savane 3.3