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

 
 

bug #30229: executing mex program causes segfault

Submitted by:  None
Submitted on:  Wed 23 Jun 2010 09:15:17 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Works For MeAssigned to: None
Originator Name: Jordan HuletOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.3
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.

 

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>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Jun 2010 04:37:46 PM UTCrik5StatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Mon 28 Jun 2010 07:34:43 AM UTCNoneAttached File-=>Added mex_func.cpp, #20840
    Thu 24 Jun 2010 08:36:11 PM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1