bugGNU Scientific Library - Bugs: bug #29139, segfault in Chebyshev series...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #29139: segfault in Chebyshev series derivatives for n=1

Submitter:  -Deleted Account- <bjg>
Submitted:  Tue 09 Mar 2010 03:35:04 PM UTC
   
 
Category:  Runtime error Severity:  3 - Normal
Operating System:  Status:  Fixed
Assigned to:  None Open/Closed:  Closed
Release:  1.13

Fri 12 Mar 2010 08:53:43 PM UTC, comment #1: 

fixed by commit ebcba871a642f4fdc88e4ed2873e9703dd530bf1

-Deleted Account- <bjg>
Tue 09 Mar 2010 03:35:04 PM UTC, original submission:  

From: Jerry Gagelman <gagelman@gmail.com>
To: -email is unavailable-
Subject: [Bug-gsl] Chebyshev series derivatives
Date: Wed, 3 Mar 2010 10:03:27 +0100

Dear bug list,

I have found that the function gsl_cheb_calc_deriv() issues a segmentation
fault when both the Chebyshev series and the series for its derivative are
allocated for order N=1. No other value of N seems to effect the same error.
There are two different installations of the GSL that I use at home versus
at work: GSL 1.11 on Linux OpenSUSE 11.0, and GSL 1.12 on OS X 10.6
(installed via macports). The test code that I have included below produces
the same error on both systems.

Yours,
Jerry Gagelman


/* gsl_cheb_bug.c */

#include <stdlib.h>
#include <gsl/gsl_chebyshev.h>

int
main(int argc, char** argv)
{
    int N = 1;
    double c[2] = {0, 1};     /* initialize series as T_N */

    gsl_cheb_series S = {c, N, -1, 1};
    gsl_cheb_series* DS = gsl_cheb_alloc(N);
    gsl_cheb_calc_deriv(DS, &S);

    gsl_cheb_free(DS);
    return 0;
}

-Deleted Account- <bjg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2010-03-12 bjg StatusConfirmed Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code