octave-bug-tracker
[Top][All Lists]
Advanced

[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:25:28 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #51214 (project octave):

Posted to the mailing list, not the tracker:

You are correct.  I have found no problem with the linkage function.  I only
used it as a realistic example of why one might want to use recursion to a
non-trivial depth.

The bug I was attempting to report was the unwarned/unexpected crash at what
seems to be a modest recursive depth.  A simple patch would be to have
max_recursion_depth () warn that "increasing the recursion depth may well
cause the interpreter to crash " or something like that, so the user at least
can save work while trying things out.  It would be nicer if the stack
overflow were caught and reported as an error without having the interpreter
crash, but that's probably a bit more work.  And yes, I realize it takes much
less time for users to dream up features than it does for programmers to
implement them!



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51214>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]