bugGNU Octave - Bugs: bug #46608, error() always prints backtrace

 
 

bug #46608: error() always prints backtrace

Submitter:  Rik <rik5>
Submitted:  Sat 05 Dec 2015 01:15:22 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  jwe
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Dec 2015 02:46:27 PM UTC, comment #3: 

Verified fix.  Thanks jwe.  Closing report.

Rik <rik5>
Group administrator
Tue 08 Dec 2015 06:45:17 AM UTC, comment #2: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/40fc94a24a97

John W. Eaton <jwe>
Group administrator
Tue 08 Dec 2015 06:19:23 AM UTC, comment #1: 

This is an unintended change due to my recent work on errors with exception handling.  I'll try to take a look at it soon.

John W. Eaton <jwe>
Group administrator
Sat 05 Dec 2015 01:15:22 AM UTC, original submission:  

In 4.0.0, the backtrace from an error could be disabled by ending the error message with a newline.  That is no longer possible in the development version of Octave and the documentation for error() and warning() should be updated.

However, there is a new mechanism to disable backtraces.


warning ("off", "backtrace");


Unfortunately, this seems to be inoperative.

With the following function tst_err.m,


function [retval] = tst_err (x, y)
  error ("Format string ending in newline\n");
endfunction


the sample session is


octave:1> diary on
octave:2> warning ("off", "backtrace")
octave:3> tst_err
error: Format string ending in newline
error: called from
    tst_err at line 2 column 3
octave:3> diary off



Rik <rik5>
Group administrator

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by rik5 (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
    2015-12-08 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2015-12-08 jwe StatusNone Ready For Test
    2015-12-08 jwe Assigned toNone jwe

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code