bugGNU Octave - Bugs: bug #49516, mexCallMatlab returns 0 when...

 
 

bug #49516: mexCallMatlab returns 0 when called with non valid name

Submitted by:  John Donoghue <lostbard>
Submitted on:  Wed 02 Nov 2016 04:53:03 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: JohnDOpen/Closed: Closed
Release: 4.2.0-rc3Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 03 Nov 2016 03:28:35 PM UTC, comment #5:

I checked in a change to fix the regression in feval (http://hg.savannah.gnu.org/hgweb/octave/rev/e07fa946f763). This change also fixes this bug report. Marking as fixed and closing.

Rik <rik5>
Project Administrator
Wed 02 Nov 2016 10:16:21 PM UTC, comment #4:

The cset that caused this was

Marking bus as a regression and adding jwe to the CC list.

The behavior under 4.0.3, to issue an error, seems like the right action.

Rik <rik5>
Project Administrator
Wed 02 Nov 2016 09:43:02 PM UTC, comment #3:

Messed comment 2 up:

4.0.3:

4.2.0:

John Donoghue <lostbard>
Project Member
Wed 02 Nov 2016 09:39:16 PM UTC, comment #2:

Also it behaves a little differently in 4.0.3 vs 4.2.0 vs with/without return variable:

4.0.3:

John Donoghue <lostbard>
Project Member
Wed 02 Nov 2016 09:25:34 PM UTC, comment #1:

I have a workaround in mex.cc, but this brings up a larger question. What should feval() do when it fails. Currently, it is utterly silent which is what leads mexCallMATLAB to report that all is well.

Example:

I'll ask on the octave-maintainers list.

Rik <rik5>
Project Administrator
Wed 02 Nov 2016 04:53:03 PM UTC, original submission:

Not sure what matlab does, but it appears that something lie:

returns 0 which means the function worked ok.

John Donoghue <lostbard>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by lostbard (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Nov 2016 03:28:35 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 02 Nov 2016 10:16:21 PM UTCrik5Item GroupIncorrect Result=>Regression
      Carbon-Copy-=>Added jwe
    Wed 02 Nov 2016 09:25:34 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1