[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51214] recursive function fails at modest rec
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #51214] recursive function fails at modest recursion depths, causes segmentation fault |
Date: |
Mon, 14 Aug 2017 14:26:04 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #51214 (project octave):
Category: Octave Forge Package => Interpreter
Summary: [octave forge] (statistics) linkage function fails
at modest recursion depths => recursive function fails at modest recursion
depths, causes segmentation fault
_______________________________________________________
Follow-up Comment #4:
Thanks, that's what I was reading into this report as well.
Octave's "soft landing" is the maximum recursion depth. When you intentionally
increase the maximum recursion depth, you are taking the safety off and may
cause Octave to crash, as shown here.
We do not have a way to recover gracefully from a stack recursion overflow,
which is why we have the maximum recursion limit check in place.
As a first easy step, what I would do is add warnings to the documentation of
max_recursion_depth that increasing the limit is dangerous and may cause
Octave to crash, and also add a warning when the user actually calls the
function to increase the current limit.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51214>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/