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

SciPy scipy-tickets at scipy.net
Mon Jan 15 10:30:04 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 the output of a slightly modified test


 {{{
 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[n-1,0] = -1.0
 B[0,-1] = -1.0 # B[0,n-1] works fine
 B = B.tocsc() # Convert to compressed sparse column format
 C = B.todense()
 print C
 }}}


 {{{
 Program received signal SIGABRT, Aborted.
 [Switching to Thread 46912509653888 (LWP 6218)]
 0x00002aaaab59543a in raise () from /lib64/tls/libc.so.6
 (gdb) bt
 #0  0x00002aaaab59543a in raise () from /lib64/tls/libc.so.6
 #1  0x00002aaaab596870 in abort () from /lib64/tls/libc.so.6
 #2  0x00002aaaab5cb06e in __libc_message () from /lib64/tls/libc.so.6
 #3  0x00002aaaab5d040c in malloc_printerr () from /lib64/tls/libc.so.6
 #4  0x00002aaaab5d0e9c in free () from /lib64/tls/libc.so.6
 #5  0x00002aaaafe7a9aa in ~vector (this=0x7fffffe1fcc0) at
 new_allocator.h:96
 #6  0x00002aaaafe7fa3a in csrtocsc<int, double> (n_row=10, n_col=10,
 Ap=0x999cd0, Aj=0x96e4e0, Ax=0x8819c0, Bp=0x999d10,
     Bi=0x9611f0, Bx=0x8b0550) at sparsetools.h:113
 #7  0x00002aaaafe48aba in _wrap_csrtocsc__SWIG_4 (args=<value optimized
 out>) at sparsetools_wrap.cxx:3529
 }}}

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


More information about the Scipy-tickets mailing list