bugGNU Scientific Library - Bugs: bug #55687, Bad error handling in...


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

bug #55687: Bad error handling in gsl_sf_hyperg_1F1_e with NaN arguments

Submitter:  Simon Byrne <simonbyrne>
Submitted:  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

Sun 10 Feb 2019 04:20:09 AM UTC, original submission:  

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

Simon Byrne <simonbyrne>


(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


Carbon-Copy List
  • -email is unavailable- added by simonbyrne (Submitted the item)

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-9f0e.
    Corresponding source code