Red Hat Bugzilla – Bug 1252934
RFE: mpfr without TLS support for GC
Last modified: 2018-02-25 17:18:19 EST
Description of problem:
Macaulay2 sometimes crashes with backtraces that include calls into mpfr. The Macaulay2 developers identified the problem:
"Compiling mpfr with thread local variables is incompatible with libgc,
because some libgc pointers are cached in the variables
gmpfr_cache_const_pi, __gmpfr_cache_const_log2, __gmpfr_cache_const_euler,
They say that Macaulay2 must be linked with an mpfr that has been configured with --disable-thread-safe. We do not have such a library in Fedora. Is it possible that two versions of the mpfr library could be built, the optimized one as now, and also perhaps libmpfr-gc.so.<version>?
Note that this will also be a problem for any other application that uses both mpfr and gc. (Not that I know that there are any such applications...)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run the Macaulay2 test suite
Sometimes the test suite completes normally, sometimes it segfaults with a backtrace that includes mpfr calls.
Normal completion, always.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Is this still needed? If yes, is there a prior art for this in other distributions?