bugGNU Octave - Bugs: bug #46559, Crash with mexErrMsgTxt

 
 

bug #46559: Crash with mexErrMsgTxt

Submitter:  Guillaume <gyom>
Submitted:  Fri 27 Nov 2015 05:26:49 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 27 Nov 2015 09:13:30 PM UTC, comment #2: 

Thanks John! It all seems to work fine now.

Guillaume <gyom>
Fri 27 Nov 2015 09:01:19 PM UTC, comment #1: 
John W. Eaton <jwe>
Group administrator
Fri 27 Nov 2015 05:26:49 PM UTC, original submission:  

On recent builds, I observe that Octave freezes or crashes when an error is triggered within a MEX file. If you run the code below without any input argument, it returns an error as expected but if you call it with a numeric value, Octave crashes:


#include "mex.h"

void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
    if (nrhs != 1)
            mexErrMsgTxt("One input argument.");
    if (!mxIsChar(prhs[0])) {
        mexErrMsgTxt("Input must be a string.");
    }
}


Guillaume <gyom>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by gyom (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-01 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-11-27 jwe StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code