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

SciPy scipy-tickets at scipy.net
Mon Jan 15 09:02:21 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 nils):

 Here is a shorter version (without pylab)

 {{{
 from scipy import *
 n = 10

 B = sparse.lil_matrix((n,n)) # Construct a n x n lil_matrix and add some
 values to it

 B.setdiag(2*ones(n))
 B.setdiag(-ones(n-1),1)
 B.setdiag(-ones(n-1),-1)
 B[0,-1] = -1.0
 B[-1,0] = -1.0
 B = B.tocsr() # Convert to compressed sparse row format
 C = B.todense()
 print C
 }}}

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


More information about the Scipy-tickets mailing list