[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51214] statistics package linkage function fa
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #51214] statistics package linkage function fails at modest recursion depths |
Date: |
Mon, 12 Jun 2017 15:06:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #2, bug #51214 (project octave):
I don't think this bug is even really about the linkage function, it's about
the code that the OP has written to traverse the data that is returned by the
linkage function, using a recursive approach. I don't see the linkage function
calling itself recursively internally.
Unless the OP can demonstrate that there is something wrong here, maybe the
only bug is that the max_recursion_depth function should warn the user that
increasing the limit arbitrarily is dangerous and may cause Octave to crash
unexpectedly. The reason for this soft limit is to avoid crashes in the first
place.
$ ulimit -s 1200
$ octave -W
>>
>> testsum (1:255)
ans = 32640
>> testsum (1:280)
error: max_recursion_depth exceeded
error: called from
testsum at line 6 column 7
>> # ok, I'll just increase the limit
>> max_recursion_depth (300)
>> testsum (1:280)
Segmentation fault
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51214>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/