[Scipy-tickets] [SciPy] #1210: crash during sparse matrix slicing with Python 2.7

SciPy Trac scipy-tickets@scipy....
Sat Jun 26 13:06:05 CDT 2010


#1210: crash during sparse matrix slicing with Python 2.7
--------------------------+-------------------------------------------------
 Reporter:  cjgohlke      |       Owner:  wnbell
     Type:  defect        |      Status:  new   
 Priority:  normal        |   Milestone:  0.8.0 
Component:  scipy.sparse  |     Version:  devel 
 Keywords:                |  
--------------------------+-------------------------------------------------
 Using scipy 0.8b1 and numpy 1.4.1 on Python 2.7rc2 for Windows, the
 test_get_horiz_slice and test_get_vert_slice tests in
 scipy/sparse/tests/test_base.py crash. A minimal example that crashes is:

 {{{
 from scipy.sparse import csc_matrix
 m = csc_matrix([[1, 2, 1], [4, 0, 0], [0, 0, 0], [0, 0, 1]])
 m[1, 1:3]
 }}}

 The crash occurs in the get_csr_submatrix() function of the
 scipy/sparse/sparsetools/_csr.pyd extension.

 I tried regenerating the csr_wrap.cxx code with SWIG versions 1.3.40 and
 2.0.0 to no avail.

 Using exactly the same scipy/numpy source code and msvc9/ifort/mkl build
 environment on Python 2.6.5 for Windows, the slicing tests pass without
 crash.

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


More information about the Scipy-tickets mailing list