[SciPy-User] Problem with scipy.special.chebyt

Ivo Maljevic ivo.maljevic at gmail.com
Fri Aug 28 07:15:49 EDT 2009


I can reproduce the original problem. Normally, I use Ubuntu, but recently I
swithced to openSUSE 11.1, 64 bit, just to see how it works.
The problem is, I cannot find python-dbg package under openSUSE, so I cannot
produce a proper backtrace.

However, I can illustrate what works, and what doesn't:

>>> from scipy.linalg import eig

>>> A=scipy.matrix([[1,1,1],[4,4,3],[7,8,5]])
>>> eig(A)
(array([ 10.57624887+0.j       ,  -0.28812444+0.1074048j,
        -0.28812444-0.1074048j]), array([[-0.14056873+0.j        ,
-0.58724949-0.17776272j,
        -0.58724949+0.17776272j],
       [-0.48042175+0.j        ,  0.00353210+0.16590709j,
         0.00353210-0.16590709j],
       [-0.86569936+0.j        ,  0.77201089+0.j        ,
0.77201089-0.j        ]]))


scipy.special.gamma(scipy.linspace(0,3,4),scipy.linspace(0,3,4))
array([  1.79769313e+308,   1.00000000e+000,   1.00000000e+000,
         2.00000000e+000])


>>> import scipy.special
>>> scipy.special.chebyt(12)(-0.5)
*** glibc detected *** python: malloc(): memory corruption:
0x0000000000afdf40 ***

Ivo


2009/8/28 Pauli Virtanen <pav at iki.fi>

> Thu, 27 Aug 2009 16:35:15 -0600, Kristian Hans Sandberg kirjoitti:
> [clip]
> > import scipy.special
> > scipy.special.chebyt(12)(-0.5)
> >
> > in IPython, IPython crashes. (If I put this snippet in a file and run it
> > outside IPython, Python also aborts, so it's not a problem with
> > IPython.)
> >
> > Can anyone else reproduce this?
> >
> > I'm using Python 2.6.1 and scipy 0.7.0 on Mandriva 2009.1, 64-bit.
>
> Some likely possibilities:
>
> - Your ATLAS build is broken. If so, also eig() should crash.
>
> - Your scipy.special build is broken. If so, special.gamma() should crash.
>
> --
> Pauli Virtanen
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20090828/09254eb6/attachment.html>


More information about the SciPy-User mailing list