#11666: Upgrade MPFR to 3.1.0
--------------------------------+-------------------------------------------
   Reporter:  leif              |          Owner:  leif                         
      
       Type:  enhancement       |         Status:  needs_info                   
      
   Priority:  major             |      Milestone:  sage-5.0                     
      
  Component:  packages          |       Keywords:  sd36 sd32 MPFR spkg wishlist 
sd35.5
Work_issues:  correct doctests  |       Upstream:  N/A                          
      
   Reviewer:  Paul Zimmermann   |         Author:  Mike Hansen, Jean-Pierre 
Flori     
     Merged:                    |   Dependencies:  #12171                       
      
--------------------------------+-------------------------------------------

Comment(by vbraun):

 The segfault is from
 {{{
 sage: R = RealField(2147483647)
 }}}
 because MPFR contains code like
 {{{
         _srcs  = (_srcprec  + GMP_NUMB_BITS-1)/GMP_NUMB_BITS;
         _dests = (_destprec + GMP_NUMB_BITS-1)/GMP_NUMB_BITS - _srcs;
 }}}
 This gives an int overflow when `prec=INT_MAX`, and soon after as segfault
 because the buffer sizes are wrong.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11666#comment:56>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to