bugGNU Octave - Bugs: bug #45843, Feature Request: Special handling...

 
 

bug #45843: Feature Request: Special handling for max_recursion_depth error stack

Submitted by:  Rik <rik5>
Submitted on:  Sat 29 Aug 2015 02:14:48 PM UTC  
 
Category: InterpreterSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 23 Sep 2015 01:48:36 PM UTC, comment #2:

@Stefan: Thanks for the patch. I added spaces between the function name and the open parentheses to follow Octave coding conventions and committed it here (http://hg.savannah.gnu.org/hgweb/octave/rev/9502e0142c19).

Rik <rik5>
Project Administrator
Fri 04 Sep 2015 11:02:09 PM UTC, comment #1:

I attached a small changeset that removes consecutive identical error messages from the stack before writing the output.

(file #34814)

Stefan Miereis <stefanm>
Sat 29 Aug 2015 02:14:48 PM UTC, original submission:

When max recursion depth is exceeded, Octave prints an error stack that is as long as the recursion depth all citing the same line number. It is a small point, but it would be nicer if Octave would tell you just once that the recursion depth had been exceeded.

I've attached a script, tstrecurse.m, which shows the issue. The script body is

And the output is

It would be nicer if duplicate error messages could be collapsed into a single message so the output was

It's more of an issue when max_recursion_depth is set at its default of 256. On the other hand, this doesn't happen very offen so I've made the severity of the report Minor.

Rik <rik5>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #34814:  bug_45843.cset added by stefanm (2KiB - application/octet-stream)
file #34766:  tstrecurse.m added by rik5 (591B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by stefanm (Updated the item)
  • -unavailable- added by rik5 (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
    Wed 23 Sep 2015 01:51:48 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 04 Sep 2015 11:02:09 PM UTCstefanmAttached File-=>Added bug_45843.cset, #34814
    Sat 29 Aug 2015 02:14:48 PM UTCrik5Attached File-=>Added tstrecurse.m, #34766

    Back to the top


    Powered by Savane 3.1-cleanup1