#13107: python long division causing infinite loop
------------------------------------------------+---------------------------
       Reporter:  titusn                        |         Owner:  burcin        
                  
           Type:  defect                        |        Status:  needs_review  
                  
       Priority:  critical                      |     Milestone:  sage-5.3      
                  
      Component:  symbolics                     |    Resolution:                
                  
       Keywords:  pynac division                |   Work issues:                
                  
Report Upstream:  N/A                           |     Reviewers:  Burcin 
Erocal, Jean-Pierre Flori
        Authors:  Titus Nicolae, Burcin Erocal  |     Merged in:                
                  
   Dependencies:  #13316                        |      Stopgaps:                
                  
------------------------------------------------+---------------------------
Changes (by jpflori):

  * status:  new => needs_review
  * reviewer:  Burcin Erocal => Burcin Erocal, Jean-Pierre Flori
  * dependencies:  => #13316
  * work_issues:  spkg for pynac 0.2.5 =>


Old description:

> {{{
>
> sage: ~SR(2L)
>
> local/bin/sage-sage: line 303:  9165 Segmentation fault      sage-ipython
> "$@" -i
>
> }}}
> {{{~SR(2L)}}}is evaluated to {{{ SR(2L)^(-1) }}}[[BR]]
>
> because of a faulty simplification in the power::eval function it
> generates power objects recursively

New description:

 {{{

 sage: ~SR(2L)

 local/bin/sage-sage: line 303:  9165 Segmentation fault      sage-ipython
 "$@" -i

 }}}
 {{{~SR(2L)}}}is evaluated to {{{ SR(2L)^(-1) }}}[[BR]]
 because of a faulty simplification in the power::eval function it
 generates power objects recursively.

 A Pynac update fixing that is available in #13316.
 Here are the corresponding doctests.

 Apply:
 * [attachment:power+review.patch]

--

Comment:

 I've just slightly homogenized the patch.
 I'll test it tomorrow and should then give positive review.
 I've opened another ticket for the update to pynac 0.2.5;
 maybe not the greatest idea, but at that time I thought that #13262 should
 be affected by 0.2.5 as well.
 Whatsoever, both this ticket and #13316 should be merged together.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13107#comment:4>
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