[Scipy-tickets] [SciPy] #392: optimize.leastsq segfaults

SciPy scipy-tickets@scipy....
Mon Mar 26 10:22:19 CDT 2007


#392: optimize.leastsq segfaults
-----------------------------------------------+----------------------------
 Reporter:  pwuertz                            |        Owner:  somebody
     Type:  defect                             |       Status:  new     
 Priority:  normal                             |    Milestone:          
Component:  scipy.optimize                     |      Version:  0.5.2   
 Severity:  critical                           |   Resolution:          
 Keywords:  minpack optimize leastsq segfault  |  
-----------------------------------------------+----------------------------
Comment (by nils):

 I cannot confirm the crash

 {{{
 >>> numpy.__version__
 '1.0.2.dev3598'
 >>> scipy.__version__
 '0.5.3.dev2869'
 }}}

 {{{
 python -i ticket392.py
 these functions are working
 this one is crashing
 >>> result1
 (array([ 1.,  1.]), None, {'fvec': array([ 1.,  1.,  1., ...,  1.,  1.,
 1.]), 'qtf': array([ -2.56001953e+02,   2.84217094e-13]), 'nfev': 27,
 'ipvt': array([1, 2], dtype=int32), 'fjac': array([[ -2.56001953e+02,
 3.80124614e-02,   3.90622020e-03, ...,
           3.90622020e-03,   3.90622020e-03,   3.90622020e-03],
        [ -2.56001953e+02,   2.84217094e-13,   3.90625000e-03, ...,
           3.90625000e-03,   3.90625000e-03,   3.90625000e-03]]), 'njev':
 1}, 'The relative error between two consecutive iterates is at most
 0.000000', 2)
 >>> result2
 (array([ 1.,  1.]), None, {'qtf': array([ 1.,  1.]), 'nfev': 3, 'fjac':
 array([[-0.,  0.,  0., ...,  0.,  0.,  0.],
        [ 0., -0.,  0., ...,  0.,  0.,  0.]]), 'fvec': array([ 1.,  1.,
 1., ...,  1.,  1.,  1.]), 'ipvt': array([1, 2], dtype=int32)}, 'The cosine
 of the angle between func(x) and any column of the\n  Jacobian is at most
 0.000000 in absolute value', 4)
 >>> result3
 (array([ 1.,  1.]), 4)
 >>> result4
 (array([ 1.,  1.]), 2)
 }}}

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


More information about the Scipy-tickets mailing list