#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):

 What I did to produce a singular spkg that produces a malloc-libsingular:

  * Drop attachment:sage_trac_13731.patch into the spkg's `patches/`
 directory
  * Apply the following change to spkg-install:
    {{{
 #!patch
 diff --git a/spkg-install b/spkg-install
 --- a/spkg-install
 +++ b/spkg-install
 @@ -134,6 +134,7 @@
                  --libdir="$SAGE_LOCAL"/lib \
                  --with-apint=gmp \
                  --with-malloc=system \
 +                --with-emulate-omalloc \
                  --with-NTL \
                  --without-MP \
                  --without-lex \
    }}}

 With that, I seem to get a working libsingular, and I get the due segfault
 with `export MALLOC_CHECK_=3` in the example of the ticket description.
 However, I do not obtain a working Singular executable.

 I am now testing whether the spkg works on bsd.math as well.

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