bugGNU Octave - Bugs: bug #30229, executing mex program causes...

 
 

bug #30229: executing mex program causes segfault

Submitter:  None
Submitted:  Wed 23 Jun 2010 09:15:17 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  Jordan Hulet Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.3
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 Jun 2010 04:37:46 PM UTC, comment #3: 

The bug has been fixed in the development release of the code.  I ran through your test case with the latest code and there is now a warning message where the segfault would be.

Rik <rik5>
Group administrator
Mon 28 Jun 2010 07:36:02 AM UTC, comment #2: 

I attached the original .cpp file.

Anonymous
Thu 24 Jun 2010 08:36:11 PM UTC, comment #1: 

I can't verify this.  It's possible that the code fragment you placed in the comment box was modified by the HTML scrubbers.  That has happened before.  You might need to directly attach mex_func.cpp in that case.

When I run 'mex mex_func.cpp' I get:
mex_func.cpp:2: error: declaration of ‘plhs’ as array of void
mex_func.cpp:2: error: expected ‘)’ before ‘,’ token
mex_func.cpp:2: error: expected unqualified-id before ‘int’

Rik <rik5>
Group administrator
Wed 23 Jun 2010 09:15:17 AM UTC, original submission:  

Executing an empty mex program after loading data causes a segmentation fault.

OS: Ubuntu 10.4, octave from standard repository (3.2.3)

These steps reproduce the bug:

1. create and empty mex program: mex_func.cpp

#include "mex.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { }

2. run octave and execute:
mex mex_func.cpp

3. close octave, run octave again, and execute:
myvar = 1;
save myvar.mat myvar;
load myvar;
mex_func
mex mex_func.cpp
mex_func

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #20840:  mex_func.cpp added by None (99B - text/x-c++src - It looks like it took the asterisks out, here is the original .cpp file... )

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-28 rik5 StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2010-06-28 None Attached File- Added mex_func.cpp, #20840
    2010-06-24 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code