[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51214] recursive function fails at modest rec
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #51214] recursive function fails at modest recursion depths, causes segmentation fault |
Date: |
Mon, 28 Aug 2017 14:24:24 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #5, bug #51214 (project octave):
Posted to the mailing list, not the tracker:
Apparently I did not correctly describe the situation. The error has nothing
to do with the linkage function. If the posted function is on the path (say,
in the current directory) and one enters the two lines into the interpreter
max_recursion_depth(512)
TestSum(1:500)
Octave crashes. This seems like an outright bug if one can kill the
interpreter this easily. I'd be fine with the interpreter producing a warning
saying "Octave is not a natural fit for recursive algorithms " or the like,
but it shouldn't simply die.
The linkage function works correctly - I only mentioned it because it produces
output which is logically a binary tree and so a natural candidate for a
recursive treatment.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51214>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/