[SERVER-25771] valgrind fails with boost::math::erfc_inv<long double>(long double, long double): Overflow Error Created: 24/Aug/16  Updated: 02/Apr/18  Resolved: 17/Nov/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.4.15, 3.5.1

Type: Improvement Priority: Major - P3
Reporter: Eric Milkie Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4, v3.2
Sprint: Platforms 2016-11-21
Participants:
Linked BF Score: 0

 Description   

When running 'mongod' under valgrind, the process immediately hits an exception while executing global initializers.
This is due to a bad interaction between Boost and Valgrind, where Valgrind does not fully support long doubles.

To work around this, use CPPDEFINES=BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS when compiling.

See https://svn.boost.org/trac/boost/ticket/10005



 Comments   
Comment by Githook User [ 29/Mar/18 ]

Author:

{'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto', 'username': 'markbenvenuto'}

Message: SERVER-25771 Set BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS to support valgrind

(cherry picked from commit dded0e36b171a0873008dd6c8b170353e56a309c)
Branch: v3.4
https://github.com/mongodb/mongo/commit/194c7a86b8e11265c83560652af1092c10f3b41a

Comment by Githook User [ 17/Nov/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-25771 Set BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS to support valgrind
Branch: master
https://github.com/mongodb/mongo/commit/dded0e36b171a0873008dd6c8b170353e56a309c

Comment by Githook User [ 14/Nov/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-25771 Disable boost long double functions
Branch: v3.2
https://github.com/mongodb/mongo/commit/da77a271e56e07256a9e346dc87c8fefc1b79268

Comment by Eric Milkie [ 24/Aug/16 ]

We could consider adding that flag for all our compiles.

Comment by Eric Milkie [ 24/Aug/16 ]

document_source_sample_from_random_cursor - beta_distribution() and quantile()

Comment by Andy Schwerin [ 24/Aug/16 ]

What are we using boost::math for?

Generated at Thu Feb 08 04:10:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.