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


bug #40429: struct array in MEX file

Submitted by:  Guillaume <gyom>
Submitted on:  Wed Oct 30 19:08:01 2013  
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: John W. Eaton <jwe>
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Thu Oct 31 19:29:40 2013, comment #9:

Sorry about the confusion with pushing the patch...

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

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

Guillaume <gyom>
Thu Oct 31 18:24:53 2013, comment #7:

Argh, sorry, it really is there now.

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

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

Guillaume <gyom>
Thu Oct 31 17:29:46 2013, 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 Oct 31 16:44:44 2013, comment #4:

My hg id is 0a887758d1cc.
That's the most recent I can see here:
(note that I am compiling in the source tree).

Guillaume <gyom>
Thu Oct 31 16:37:44 2013, 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 Oct 31 12:09:23 2013, 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:
but the changeset does not fix it for me.
I compile with --disable-gui.

Guillaume <gyom>
Wed Oct 30 23:08:10 2013, comment #1:

I checked in the following changeset:


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 Oct 30 19:08:01 2013, 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 File(s):

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
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by gyom (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 Oct 31 19:29:40 2013jweStatusReady For Test=>Fixed
    Wed Oct 30 23:08:10 2013jweItem GroupOther=>Incorrect Result
      StatusNone=>Ready For Test
      Assigned toNone=>jwe
    Wed Oct 30 19:08:01 2013gyomAttached File-=>Added teststruct.c, #29510

    Back to the top

    Powered by Savane 3.1-cleanup1