Re: [Boost-bugs] [Boost C++ Libraries] #10005: erf_inv_initializer crashes under valgrind

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10005: erf_inv_initializer crashes under valgrind
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-04 23:27:51

#10005: erf_inv_initializer crashes under valgrind
  Reporter: Marcin Wojdyr <wojdyr@…> | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: math
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:

Comment (by Marcin Wojdyr <wojdyr@…>):

 I haven't realized it before, but it depends on compiler flags.
 I'm using now Fedora 20, valgrind 3.9.0, GCC 4.8 and boost 1.54 and 1.55
 (both give the same result).
 I can reproduce the problem only with `g++ -Og`.

 But I've seen it with previous GCC versions (4.6 or 4.7, I'm not sure) and
 valgrind 3.8.1.
 I don't remember what optimization flags I used, but there was no `-Og` in
 previous versions.

 The minimal program I now use for testing is:

 #include <stdio.h>
 #include <stdlib.h>
 #include <boost/math/special_functions.hpp>
 int main(int argc, char **argv) {
     double x = strtod(argv[1], NULL);
     printf("%g\n", boost::math::erfc_inv(x));

 So as a workaround I'll just use a different compilation flags.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC