Well, it is infinite recursion (though this is not a surprize, as the
error is a stack overflow). This is the test that causes the problem:
@XFAIL
def test_complex_2899():
# infinite recursion in coth,
https://code.google.com/p/sympy/issues/detail?id=2899
a,b = symbols('a,b', real=True)
for deep in [True,False]:
for func in [sinh, cosh, tanh, coth]:
assert func(a).expand(complex=True,deep=deep) == func(a)
The Python stack is never supposed to overflow, though. It should
raise a RecursionError.
A print statement (actually print function, since this is Python 3)
reveals that the error happens with deep=True, func=coth, which is
actually the first one to cause a recursion error.
I wonder if my patch caused the error simply because it added another
function call to the stack. I can't see how else it would affect it.
Aaron Meurer
On Fri, Apr 6, 2012 at 10:42 AM, Joachim Durchholz <[email protected]> wrote:
> Am 06.04.2012 09:19, schrieb Aaron Meurer:
>
>> Recently, we started getting "Fatal Python error: Cannot recover from
>> stack overflow." in the Python 3 tests (when running setup.py test),
>> which is immediately followed by "Abort trap: 6", which kills Python.
>> In Mac OS X, this generates a problem report automatically with
>> logging information. I've uploaded the test output and the logging
>> info at https://gist.github.com/2317869. This has shown up in at
>> least two other people's SymPy-Bot tests (see
>> https://github.com/sympy/sympy/pull/1208), so I'm pretty sure it's not
>> a problem on my end.
>>
>> Does anyone have any idea what could be causing this?
>
>
> My first bet would be an endless recursion, possibly in SymPy's test
> routines, possibly in the Python runtime.
> The stack depth is a bit small for that though.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.