[NumPy-Tickets] [NumPy] #1983: segmentation fault with dot product of sparse matrices

NumPy Trac numpy-tickets@scipy....
Fri Nov 18 15:43:36 CST 2011


#1983: segmentation fault with dot product of sparse matrices
------------------------+---------------------------------------------------
 Reporter:  fp4code     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  2.0.0   
Component:  numpy.core  |     Version:  devel   
 Keywords:              |  
------------------------+---------------------------------------------------
 The dot product of two sparse matrices crashes python.
 The defect has appeared with

 {{{
 commit 867cabefe92b127b765580432b4c05d92342e275
 Author: Mark Wiebe <mwiebe@enthought.com>
 Date:   Fri Jul 22 10:24:14 2011 -0500
 }}}

 Here an example:

 {{{
 ######################################
 import sys, numpy, scipy, scipy.sparse
 md = numpy.matrix(numpy.zeros((2,2))); md[0,1]=-1; md[1,0]=1
 ms = scipy.sparse.lil_matrix(md)
 print(sys.version)           # 2.7.2 [GCC 4.5.2]
 print(numpy.version.version) # 2.0.0.dev-867cabe to 7297785
 print(scipy.version.version) # 0.11.0.dev-badad3f or earlier
 print(md*md)                 # OK
 print(numpy.dot(md,md))      # OK
 print(ms*ms)                 # OK
 print(numpy.dot(ms,ms))      # Segmentation fault #
 ###################################################
 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1983>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list