[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51214] statistics package linkage function fa
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51214] statistics package linkage function fails at modest recursion depths |
Date: |
Fri, 9 Jun 2017 21:53:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Update of bug #51214 (project octave):
Category: Interpreter => Octave Forge Package
Item Group: Segfault, Bus Error, etc. => Unexpected Error
Operating System: Microsoft Windows => Any
Summary: Recursion fails unexpectedly at modest depth =>
statistics package linkage function fails at modest recursion depths
_______________________________________________________
Follow-up Comment #1:
Octave is not a natural fit for recursive algorithms. For those algorithms
you might choose a language like Lisp.
However, Octave is no worse than other languages which don't have special
facilities for recursion. In the short term, increase the allowed recursion
depth using max_recursion_depth. The help text for the function is shown
below
-- VAL = max_recursion_depth ()
-- OLD_VAL = max_recursion_depth (NEW_VAL)
-- max_recursion_depth (NEW_VAL, "local")
Query or set the internal limit on the number of times a function
may be called recursively.
If the limit is exceeded, an error message is printed and control
returns to the top level.
When called from inside a function with the "local" option, the
variable is changed locally for the function and any subroutines it
calls. The original variable value is restored when exiting the
function.
If that doesn't work then the linkage function should be recoded to reduce or
eliminate the recursion.
I've re-titled the bug report to be about the issue with the linkage
function.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51214>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/