octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35835] Crash on error with pchip


From: Nir Krakauer
Subject: [Octave-bug-tracker] [bug #35835] Crash on error with pchip
Date: Wed, 14 Mar 2012 15:17:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

URL:
  <http://savannah.gnu.org/bugs/?35835>

                 Summary: Crash on error with pchip
                 Project: GNU Octave
            Submitted by: nir_krakauer
            Submitted on: Wed 14 Mar 2012 03:17:58 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Nir Krakauer
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Calling pchip with scalar input leads to segmentation fault:

> pchip(1, 2, 3)
 ***MESSAGE FROM ROUTINE DPCHIM IN LIBRARY SLATEC.
 ***POTENTIALLY RECOVERABLE ERROR, PROG ABORTED, TRACEBACK REQUESTED
 *  NUMBER OF DATA POINTS LESS THAN TWO
 *  ERROR NUMBER = -1
 *   
 ***END OF MESSAGE
 
 ***JOB ABORT DUE TO UNRECOVERED ERROR.
0          ERROR MESSAGE SUMMARY
 LIBRARY    SUBROUTINE MESSAGE START             NERR     LEVEL     COUNT
 SLATEC     DPCHIM     NUMBER OF DATA POINT        -1         1         1

Segmentation fault



interp1 with the same inputs returns an error message, which is a better
outcome:
> interp1(1, 2, 3, 'pchip')
error: interp1: table too short
error: called from:
error:   /usr/share/octave/3.6.1/m/general/interp1.m at line 162, column 5






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35835>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]