#13731: Fix libsingular memory management
------------------------------------------------------------------+---------
       Reporter:  nbruin                                          |         
Owner:  rlm     
           Type:  defect                                          |        
Status:  new     
       Priority:  major                                           |     
Milestone:  sage-5.6
      Component:  memleak                                         |    
Resolution:          
       Keywords:                                                  |   Work 
issues:          
Report Upstream:  Reported upstream. Developers acknowledge bug.  |     
Reviewers:          
        Authors:                                                  |     Merged 
in:          
   Dependencies:                                                  |      
Stopgaps:          
------------------------------------------------------------------+---------

Comment (by SimonKing):

 I have backported Singular changeset 15435.

 When I put attachment:sage_trac_13731.patch and
 attachment:singular_15435.patch into the spkg's patches/ directory and
 apply the change to spkg-install mentioned in comment:56, then I get
 {{{
 simon@linux-sqwp:~/SAGE/debug/sage-5.5.rc0> export MALLOC_CHECK_=3
 simon@linux-sqwp:~/SAGE/debug/sage-5.5.rc0> ./sage
 ...
 sage: A.<x,y> = FreeAlgebra(QQ, 2)
 sage: P.<x,y> = A.g_algebra({y*x:-x*y})
 sage: x._mul_(y)
 x*y
 }}}
 So, indeed the original problem got fixed upstream.

 Plans:

  * My suggestion is to put the second patch (the backported fix) into our
 standard Singular spkg.
  * We should of course follow the original plan and see whether we can
 find further sloppy allocations in Singular, so that #715 and friends can
 be made work in a reliable way.
  * Can someone tell me how to tell autoconf that it shall create a
 configure script that tells the preprocessor that we are on Darwin and
 hence must include malloc/malloc.h in place of malloc.h?

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