#13447: Make libsingular multivariate polynomial rings collectable
----------------------------------------------------------------+-----------
       Reporter:  nbruin                                        |         
Owner:                                                                          
 
           Type:  defect                                        |        
Status:  needs_work                                                             
  
       Priority:  major                                         |     
Milestone:  sage-5.4                                                            
     
      Component:  memleak                                       |    
Resolution:                                                                     
      
       Keywords:                                                |   Work 
issues:  Understand why sometimes `new_RingWrap` needs an incref and sometimes 
not
Report Upstream:  None of the above - read trac for reasoning.  |     
Reviewers:  Simon King                                                          
     
        Authors:  Nils Bruin, Simon King                        |     Merged 
in:                                                                           
   Dependencies:  #11521                                        |      
Stopgaps:                                                                       
    
----------------------------------------------------------------+-----------

Comment (by SimonKing):

 I guess the recreation of my_awesome_sage_ring can be avoided, because
 Singular certainly has methods to return a previously defined ring when
 you know the name of that ring. So, no need that ''Sage'' keeps a pointer
 to it, because Singular already does.

 The segfault in sage/rings/polynomial/multi_polynomial_ideal.pyx can be
 avoided by setting `ref=1` rather than `ref=0` in the function
 `singular_ring_new`. However, I wouldn't call it a "fix", because I think
 this would mean the ring could never be `rKill`ed.

 So, I suspect that the reference count goes wrong in a different location.

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