#13447: Make libsingular multivariate polynomial rings collectable
----------------------------------------------------------------+-----------
       Reporter:  nbruin                                        |         
Owner:  rlm                            
           Type:  defect                                        |        
Status:  needs_work                     
       Priority:  major                                         |     
Milestone:  sage-5.4                       
      Component:  memleak                                       |    
Resolution:                                 
       Keywords:                                                |   Work 
issues:  Input from a libsingular expert
Report Upstream:  None of the above - read trac for reasoning.  |     
Reviewers:                                 
        Authors:  Nils Bruin, Simon King                        |     Merged 
in:                                 
   Dependencies:  #11521                                        |      
Stopgaps:                                 
----------------------------------------------------------------+-----------

Comment (by SimonKing):

 There is one nasty detail with singular_function. If one sets `ring =
 singular_function('ring')` and then uses the singular_function to create a
 ring, then its reference counter is ''not'' incremented, even though the
 following function is called in this case:
 {{{
 cdef inline RingWrap new_RingWrap(ring* r):
     cdef RingWrap ring_wrap_result = PY_NEW(RingWrap)
     ring_wrap_result._ring = r
     ring_wrap_result._ring.ref += 1

     return ring_wrap_result
 }}}

 I do not understand it, yet. But anyway, that's the problem I am currently
 dealing with.

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