#11468: Memleak in singular.pyx
------------------------+---------------------------------------------------
   Reporter:  jpflori   |          Owner:  rlm                 
       Type:  defect    |         Status:  needs_review        
   Priority:  critical  |      Milestone:  sage-4.7.1          
  Component:  memleak   |       Keywords:  memleak, libsingular
Work_issues:            |       Upstream:  N/A                 
   Reviewer:            |         Author:                      
     Merged:            |   Dependencies:                      
------------------------+---------------------------------------------------

Old description:

> Using the following piece of code makes the memory footprint of sage
> [[BR]] grow indefinitely: [[BR]]
>
> sage: K = GF(1<<50,'t') [[BR]] sage: R.<x,y> = PolynomialRing(K)
>
> sage: a = K.random_element() [[BR]] sage: while 1: [[BR]] ....:
> R(a)[[BR]] ....:
>
> So there is some memleak while creating elements of multivariate
> polynomial ring implemented with libsingular.
>
> See http://groups.google.com/group/sage-
> support/browse_thread/thread/9a8e887df34a8e9a for further discussion.

New description:

 Using the following piece of code makes the memory footprint of sage
 [[BR]] grow indefinitely: [[BR]]

 sage: K = GF(1<<50,'t') [[BR]] sage: R.<x,y> = PolynomialRing(K)

 sage: a = K.random_element() [[BR]] sage: while 1: [[BR]] ....: R(a)[[BR]]
 ....:

 The memleak happens when different si2sa_* functions are called.

 See http://groups.google.com/group/sage-
 support/browse_thread/thread/9a8e887df34a8e9a for further discussion.

--

Comment(by jpflori):

 I finally found the memleaks in different si2sa_* functions.

 Potential fix provided.

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