#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):
Replying to [comment:52 nbruin]:
> I think I can explain that: omalloc is written to work ''on top of''
another memory manager.
So, that is `--with-malloc=...`.
> There's an option that selects whether omalloc should offer the standard
'malloc/realloc/free' interface to its own allocators.
What does that mean? If one uses omalloc, why should one ''not'' want that
it offers `malloc/realloc/free`?
> There is also an option that selects how omalloc does its job: whether
it should do what it is designed for or whether it should just honour the
requests it receives by passing them on 1-1 to the underlying memory
allocator.
So, that's the option that we need, right? Is that `--with-emulate-
omalloc` that you added to spkg-install?
I guess I am now experiencing the same that you did: If `--with-emulate-
omalloc` is the ''only'' change, then installing the spkg fails with
{{{
In file included from ../kernel/bigintmat.h:13:0,
from bigintmat.cc:10:
../kernel/intvec.h: In constructor ‘intvec::intvec(int)’:
../kernel/intvec.h:26:18: error: ‘omEmulateAlloc0’ was not declared in
this scope
bigintmat.cc: In member function ‘int* bigintmat::getwid(int)’:
bigintmat.cc:379:31: error: ‘omStrDup’ was not declared in this scope
bigintmat.cc: In member function ‘void bigintmat::pprint(int)’:
bigintmat.cc:414:18: error: ‘omEmulateAlloc0’ was not declared in this
scope
bigintmat.cc:421:32: error: ‘omStrDup’ was not declared in this scope
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13731#comment:53>
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.