[SciPy-dev] ***[Possible UCE]*** Re: ***[Possible UCE]*** Re: Another segfault

Nils Wagner nwagner at mecha.uni-stuttgart.de
Sat Mar 4 01:31:46 CST 2006


On Fri, 03 Mar 2006 19:33:59 -0700
  Travis Oliphant <oliphant at ee.byu.edu> wrote:
> Nils Wagner wrote:
> 
>>On Fri, 03 Mar 2006 23:45:12 +0100
>>  "Nils Wagner" <nwagner at mecha.uni-stuttgart.de> wrote:
>>  
>>
>>>On Fri, 03 Mar 2006 15:39:14 -0700
>>> Travis Oliphant <oliphant at ee.byu.edu> wrote:
>>>    
>>>
>>>>Nils Wagner wrote:
>>>>
>>>>      
>>>>
>>>>> 
>>>>>Travis,
>>>>>
>>>>>On a 32 bit machine I obtain with
>>>>>
>>>>>gdb --exec=python
>>>>>GNU gdb 6.3
>>>>>Copyright 2004 Free Software Foundation, Inc.
>>>>>GDB is free software, covered by the GNU General Public 
>>>>>License, and you are
>>>>>welcome to change it and/or distribute copies of it under 
>>>>>certain conditions.
>>>>>Type "show copying" to see the conditions.
>>>>>There is absolutely no warranty for GDB.  Type "show 
>>>>>warranty" for details.
>>>>>This GDB was configured as "i586-suse-linux".
>>>>>(gdb) r 
>>>>>/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py
>>>>>Starting program: /usr/local/bin/python 
>>>>>/usr/local/lib/python2.4/site-packages/scipy/sparse/sparse.py
>>>>>
>>>>>snip
>>>>>Solve: single precision complex:
>>>>>Solve: double precision complex:
>>>>>        
>>>>>
> 
> This should work now.   Give it a try.
> 
> -Travis
> 
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev

  
Hi Travis,

No longer any segfault on 32/64 bit systems. w.r.t. to
sparse.py. Thank you very much !!
But on 64 bit systems scipy.test(1,10) still results
in

======================================================================
ERROR: Test whether the lu_solve command segfaults, as 
reported by Nils
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/tests/test_sparse.py", 
line 255, in check_solve
     xx = lu_factor(A.tocsc()).solve(r)
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/sparse.py", 
line 2521, in lu_factor
     diag_pivot_thresh, drop_tol, relax, panel_size)
TypeError: colptr and rowind must be of type cint

======================================================================
ERROR: Test whether the lu_solve command segfaults, as 
reported by Nils
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/tests/test_sparse.py", 
line 255, in check_solve
     xx = lu_factor(A.tocsc()).solve(r)
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/sparse.py", 
line 1353, in tocsc
     return self.tocoo().tocsc()
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/sparse.py", 
line 1349, in tocoo
     data, col, row = func(self.data, self.colind, 
self.indptr)
ValueError: failed to create intent(cache|hide)|optional 
array-- must have defined dimensions but got (0,)

======================================================================
ERROR: Test whether the lu_solve command segfaults, as 
reported by Nils
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/tests/test_sparse.py", 
line 255, in check_solve
     xx = lu_factor(A.tocsc()).solve(r)
   File 
"/usr/lib64/python2.4/site-packages/scipy/sparse/sparse.py", 
line 2521, in lu_factor
     diag_pivot_thresh, drop_tol, relax, panel_size)
TypeError: colptr and rowind must be of type cint

----------------------------------------------------------------------
Ran 1109 tests in 2.220s

FAILED (errors=3)


Nils




More information about the Scipy-dev mailing list