[Scipy-tickets] [SciPy] #347: *** glibc detected *** double free or corruption (out)

SciPy scipy-tickets at scipy.net
Mon Jan 15 09:27:13 CST 2007


#347: *** glibc detected *** double free or corruption (out)
--------------------------+-------------------------------------------------
 Reporter:  nils          |        Owner:  somebody
     Type:  defect        |       Status:  new     
 Priority:  high          |    Milestone:          
Component:  scipy.sparse  |      Version:  devel   
 Severity:  critical      |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by wnbell):

 It appears that the line "B[0,-1] = -1.0" is actually putting something in
 column -1


 The lil_matrix B has the following:
 {{{
 In [11]: B.rows
 Out[11]:
 array([[-1, 0, 1], [0, 1, 2], [1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6],
        [5, 6, 7], [6, 7, 8], [7, 8, 9], [0, 8, 9]], dtype=object)
 }}}



 While the csr_matrix B has the following:
 {{{
 In [10]: B.indptr
 Out[10]: array([ 0,  3,  6,  9, 12, 15, 18, 21, 24, 27, 30])

 In [11]: B.data
 Out[11]:
 array([-1.,  2., -1., -1.,  2., -1., -1.,  2., -1., -1.,  2., -1., -1.,
         2., -1., -1.,  2., -1., -1.,  2., -1., -1.,  2., -1., -1.,  2.,
        -1., -1., -1.,  2.])

 In [12]: B.indices
 Out[12]:
 array([-1,  0,  1,  0,  1,  2,  1,  2,  3,  2,  3,  4,  3,  4,  5,  4,  5,
         6,  5,  6,  7,  6,  7,  8,  7,  8,  9,  0,  8,  9])
 }}}

 Sorry for the post above :)

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


More information about the Scipy-tickets mailing list