[Scipy-tickets] [SciPy] #1141: orthogonal_eval crashes

SciPy Trac scipy-tickets@scipy....
Fri May 28 11:57:22 CDT 2010

#1141: orthogonal_eval crashes
 Reporter:  cjgohlke       |       Owner:  pv   
     Type:  defect         |      Status:  new  
 Priority:  normal         |   Milestone:  0.8.0
Component:  scipy.special  |     Version:  devel
 Keywords:                 |  

Comment(by cjgohlke):

 Well, that patch can fix a crash if Cython/msvc9 produce buggy code

 I did use a clean svn checkout with the patch from Ticket #1176 applied
 (otherwise scipy does not build using scons), and cythonized with Cython

 Your example crashes. The output is:

 I suspect a Cython 0.12.1 (the latest official release) issue. That
 version does not translate "for m in range(k+1, 0, -1)" into a C for loop
 but creates a Python tuple first and then calls the builtin range
 function; very inefficient. Cython 0.12 doesn't do that and in fact the
 eval_chebyt function does not crash when using Cython 0.12.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1141#comment:10>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list