URL:
<http://savannah.gnu.org/bugs/?29139>
Summary: segfault in Chebyshev series derivatives for n=1
Project: GNU Scientific Library
Submitted by: bjg
Submitted on: Tue 09 Mar 2010 03:35:04 PM GMT
Category: Runtime error
Severity: 3 - Normal
Operating System:
Status: Confirmed
Assigned to: None
Open/Closed: Open
Release: 1.13
Discussion Lock: Any
_______________________________________________________
Details:
From: Jerry Gagelman <[email protected]>
To: [email protected]
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;
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29139>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl