#7420: Fix uncaught infinite loop in coercion discovery
--------------------------------------------------+-------------------------
   Reporter:  nthiery                             |       Owner:  mhansen    
       Type:  defect                              |      Status:  new        
   Priority:  blocker                             |   Milestone:  sage-4.2.1 
  Component:  coercion                            |    Keywords:  coercion   
Work_issues:                                      |      Author:  Mike Hansen
   Reviewer:  Nicolas M. ThiƩry, Robert Bradshaw  |      Merged:             
--------------------------------------------------+-------------------------
 #5597 or #5598 introduced a potential infinite loop (and segfault) upon
 coercion discovery on a cyclic graph. The first occurence of such a graph
 was with the newly refactored symmetric functions.

 The attached patch fixes this. By the way, it uses a dictionary rather
 than a list to hold the marks used (register_pair) to detect cycles.

 The category patches #5981 depend on this!!!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7420>
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