[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47620] segfault when using eval and anoymous
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #47620] segfault when using eval and anoymous function |
Date: |
Fri, 9 Mar 2018 17:34:42 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Update of bug #47620 (project octave):
Status: Confirmed => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #5:
Is this code supposed to do something useful, or is the correct interpretation
that it generates an infinite recursion?
Octave can detect and prevent an infinite recursion if it sees the same
function executed recursively many times. But it doesn't have a protection on
an arbitrarily deep call stack. Maybe it should be doing that instead.
I pushed the following changeset to prevent deeply nested function calls from
crashing Octave:
http://hg.savannah.gnu.org/hgweb/octave/rev/41f80b9af274
Now the original example doesn't cause a crash for me, but reports an error
about max_stack_depth is exceeded and returns to the command prompt.
Closing as fixed since Octave no longer crashes.
If the real problem is that Octave is interpreting the expression incorrectly,
then please open a new bug report and clearly explain WTF this is supposed to
do.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47620>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #47620] segfault when using eval and anoymous function,
John W. Eaton <=