Polyfit crashes octave 3.0.0

John W. Eaton jwe at bevo.che.wisc.edu
Mon Apr 14 12:36:00 CDT 2008


On 10-Apr-2008, Jaroslaw Pychowski wrote:

| --------
| Bug report for Octave 3.0.0 configured for i486-pc-linux-gnu
| 
| Description:
| -----------
| 
|   Function polyfit causes segmentation fault.
|   51 is minimal affected value of n (see code below)
|   Messages emitted before segmentation fault:
|   octave:5> wn=polyfit(x,y,n);
|   warning: matrix singular to machine precision, rcond = 1.83429e-25
|   warning: attempting to find minimum norm solution
|   panic: Segmentation fault -- stopping myself...
|   attempting to save variables to `octave-core'...
|   save to `octave-core' complete
|   Segmentation fault
| 
| Repeat-By:
| ---------
| n=51
| step=2/n;
| x=-1:step:1;
| y=abs(5*x);
| wn=polyfit(x,y,n);

This bug should be fixed in 3.0.1.

jwe


More information about the Bug-octave mailing list