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 16:24:17


#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 johnmaddock):

 Oh boy this sucks :-(

 You could work around the problem by defining
 BOOST_MATH_PROMOTE_DOUBLE_POLICY=false when building I guess.

 I don't really understand why this is being triggered, the code checks
 that 1e-800 is non-zero before calling erc_inv(1e-800) at which point it
 apparently is zero after all! The argument values can't be changed BTW -
 they're cunningly chosen to take specific code paths and force
 initialization of all the static data. Or I could add some try/catch
 blocks I guess, I will probably experiment with that.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10005#comment:1>
Boost C++ Libraries <http://www.boost.org/>
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