[Scipy-tickets] [SciPy] #311: The test results in a segmentation fault

SciPy scipy-tickets at scipy.net
Tue Jan 30 12:36:24 CST 2007


#311: The test results in a segmentation fault
----------------------------+-----------------------------------------------
 Reporter:  nils            |        Owner:  timl    
     Type:  defect          |       Status:  assigned
 Priority:  normal          |    Milestone:          
Component:  scipy.linsolve  |      Version:  devel   
 Severity:  normal          |   Resolution:          
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by nils):

 I have applied your patch. However I get another segfault with the
 following test

 {{{
 from scipy import *
 from pylab import spy, show
 n = 20
 A = sparse.lil_matrix((n,n))
 for i in arange(n):
   A[i,:] = random.rand(n)
 A = A.tocsc()
 B = sparse.speye(n,n)
 linsolve.splu(A - B)

 spy(A.todense())
 show()
 }}}

 The backtrace is


 {{{
 Use minimum degree ordering on A'+A.

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 47604505973136 (LWP 14064)]
 0x00002b4bd5f9e958 in genmmd_ (neqns=0x7fffe21251cc, xadj=0x1c26b60,
 adjncy=0x1f152d0, invp=0x1ee2d1c, perm=0x
     delta=0x7fffe21251c4, dhead=0x1703e3c, qsize=0x1702420,
 llist=0x1c954d0, marker=0x1701db0, maxint=0x7fffe2
     nofsub=0x7fffe21251bc) at Lib/linsolve/SuperLU/SRC/mmd.c:162
 162             perm[nextmd] = -mdeg;
 (gdb) bt
 #0  0x00002b4bd5f9e958 in genmmd_ (neqns=0x7fffe21251cc, xadj=0x1c26b60,
 adjncy=0x1f152d0, invp=0x1ee2d1c, per
     delta=0x7fffe21251c4, dhead=0x1703e3c, qsize=0x1702420,
 llist=0x1c954d0, marker=0x1701db0, maxint=0x7fffe2
     nofsub=0x7fffe21251bc) at Lib/linsolve/SuperLU/SRC/mmd.c:162
 #1  0x00002b4bd5f8d72c in get_perm_c (ispec=2, A=<value optimized out>,
 perm_c=0x1ee2d20)
     at Lib/linsolve/SuperLU/SRC/get_perm_c.c:423
 #2  0x00002b4bd5f8bb96 in newSciPyLUObject (A=0x7fffe21253b0,
 diag_pivot_thresh=1, drop_tol=0, relax=1, panel_
     permc_spec=2, intype=<value optimized out>) at
 Lib/linsolve/_superluobject.c:360
 #3  0x00002b4bd5f8b0a7 in Py_dgstrf (self=<value optimized out>,
 args=<value optimized out>, keywds=<value opt
     at Lib/linsolve/_dsuperlumodule.c:206
 #4  0x00002b4bc8c4d56a in PyEval_EvalFrameEx () from
 /usr/lib64/libpython2.5.so.1.0
 #5  0x00002b4bc8c4e5ac in PyEval_EvalCodeEx () from
 /usr/lib64/libpython2.5.so.1.0
 #6  0x00002b4bc8c4ccd4 in PyEval_EvalFrameEx () from
 /usr/lib64/libpython2.5.so.1.0
 #7  0x00002b4bc8c4e5ac in PyEval_EvalCodeEx () from
 /usr/lib64/libpython2.5.so.1.0
 #8  0x00002b4bc8c4e5f2 in PyEval_EvalCode () from
 /usr/lib64/libpython2.5.so.1.0
 #9  0x00002b4bc8c67022 in Py_CompileString () from
 /usr/lib64/libpython2.5.so.1.0
 #10 0x00002b4bc8c670f6 in PyRun_FileExFlags () from
 /usr/lib64/libpython2.5.so.1.0
 #11 0x00002b4bc8c685b8 in PyRun_SimpleFileExFlags () from
 /usr/lib64/libpython2.5.so.1.0
 #12 0x00002b4bc8c713c5 in Py_Main () from /usr/lib64/libpython2.5.so.1.0
 #13 0x00002b4bc978bae4 in __libc_start_main () from /lib64/libc.so.6
 #14 0x00000000004006a9 in _start ()
 }}}

 Can someone confirm the segfault (assuming that the patch is applied) ?

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


More information about the Scipy-tickets mailing list