[Top][All Lists]

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

[Bug-gsl] [bug #55687] Bad error handling in gsl_sf_hyperg_1F1_e with Na

From: Simon Byrne
Subject: [Bug-gsl] [bug #55687] Bad error handling in gsl_sf_hyperg_1F1_e with NaN arguments
Date: Sat, 9 Feb 2019 23:20:12 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36


                 Summary: Bad error handling in gsl_sf_hyperg_1F1_e with NaN
                 Project: GNU Scientific Library
            Submitted by: simonbyrne
            Submitted on: Sun 10 Feb 2019 04:20:09 AM UTC
                Category: None
                Severity: 3 - Normal
        Operating System: 
                  Status: None
             Assigned to: None
             Open/Closed: Open
                 Release: 2.5
         Discussion Lock: Any



The following gives a segfault:

#include <stdio.h>
#include <math.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_sf_hyperg.h>

int main (void)
  gsl_sf_result result;
  int status = gsl_sf_hyperg_1F1_e(1.0,NAN,-1.0, &result);
  if (status == GSL_SUCCESS) {
    printf ("success: %.18e\n", result.val);
  } else {
    printf ("failure");
  return 0;

>From my understanding of the error handling, the _e functions should return an
invalid error code instead of crashing in such cases.

Downstream issue: https://github.com/JuliaMath/GSL.jl/issues/96


Reply to this item at:


  Message sent via Savannah

reply via email to

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